BlueThen

BlueThen

Joined
Mar 15, 2008
Occupation
MIT '17, Computer Science
Location
Cambridge, Massachusetts
Website
Interests
Programming

Activity Stream

BlueThen liked Hawkee's Thread  -  Oct 19, 2015
BlueThen commented on Sorasyn's Thread  -  Mar 31, 2015
BlueThen liked SReject's Thread  -  Mar 10, 2015
BlueThen commented on BlueThen's Thread  -  Jan 02, 2015
BlueThen   -  Dec 30, 2014

Added a page to my portfolio for "Dough", a real time soft material simulator.
http://jaredcounts.com/dough/

BlueThen commented on BlueThen's Thread  -  Dec 25, 2014
BlueThen commented on BlueThen's Thread  -  Dec 22, 2014
BlueThen   -  Dec 22, 2014

Just unburied a rigid-body physics engine that I made in 2012!

https://github.com/BlueThen/Gazelle-Java-Physics-Engine

It's probably uncompilable right now, but I might return to it and polish it up a bit. Meanwhile, I'll be adding a page to my portfolio on Gazelle!

BlueThen commented on Hawkee's Thread  -  Dec 09, 2014
BlueThen liked Hawkee's Thread  -  Dec 09, 2014
BlueThen commented on Hawkee's Thread  -  Dec 07, 2014
BlueThen liked Hawkee's Thread  -  Dec 06, 2014
BlueThen liked Hawkee's Thread  -  Dec 03, 2014
BlueThen commented on BlueThen's Thread  -  Dec 02, 2014
BlueThen liked a Comment, BlueThen  -  Dec 02, 2014
BlueThen commented on Hawkee's Thread  -  Dec 02, 2014
BlueThen commented on BlueThen's Thread  -  Dec 01, 2014
BlueThen   -  Dec 01, 2014

Finally published my newest portfolio: http://jaredcounts.com/

No more Java applets!

BlueThen commented on BlueThen's Thread  -  Nov 30, 2014
BlueThen commented on Hawkee's Thread  -  Nov 30, 2014
BlueThen   -  Nov 30, 2014

I've been spending my spare time for the past couple of months redoing my portfolio.

I'm not very experienced with design, but this is turning into something that I'm feeling pretty good about.

Any feedback/opinions appreciated!

Edit: You can view the website live at http://bluethen.com/portfolio4/

BlueThen liked a Page, CodePen Embeds with Parsedown and HTMLPurifier  -  Nov 05, 2014
BlueThen commented on BlueThen's Thread  -  Oct 26, 2014
BlueThen liked a Comment, BlueThen  -  Oct 26, 2014
BlueThen   -  Oct 26, 2014

Maintaining DRY HTML

Question to web developers out there. How do you maintain DRY HTML? DRY, as in, "Don't Repeat Yourself".

For example, if you have a navigation bar to be shared across every page, what do you do to avoid having to copy-paste this code 10-20 times?

Among the solutions, I found JQuery/JS, PHP, Server-sided includes, iframes, object element, and Python.

JQuery/JS

Is client-sided, so it relies on the client having JS enabled.

PHP

PHP has a handy include function which lets us compartmentalize web components.

Server-sided Includes

This is apparently the HTML equivalent to PHP's include. It requires setting certain flags in Apache, and marking HTML files for parsing in HTML. I think this might be slower than PHP, because I read somewhere that it involves the server re-parsing and updating HTML files every single time they're being delivered.

iframes

This is useful for sandboxing HTML, but not so useful when you want JS and CSS to work cleanly across the entire page.

object

I couldn't find as much information about using object to embed HTML. This might have the same issue as iframe?

Python

Really one could use any scripting language. Basically place special tags in your HTML file, like $$$header$$$, and then perform a find-replace in Python with the appropriate HTML whenever you wish to deploy or run the HTML file.

I had a dream about HTML last night, so this is really bothering me. What do you all think?

BlueThen   -  Oct 26, 2014

@Hawkee

Can you add a dialog to "confirm navigation away from page" on the Create Page page? I just spent half an hour writing a page and accidentally backspaced out of the page when the text box wasn't in focus. Now all of the content is lost!

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.