BlueThen

BlueThen

Joined
Mar 15, 2008
Occupation
MIT '17, Computer Science
Location
St. Louis, Missouri
Website
About me
MIT student, programmer.
Interests
Programming

Threads

BlueThen   -  27 days ago

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   -  27 days ago

@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!

BlueThen   -  Oct 06, 2014

@Hawkee I'm not sure what your views are on this, but do you think Hawkee.com could display full names rather than aliases (perhaps, as an option)? I can see Hawkee.com becoming another website people refer to on their resumes, portfolios, etc.

It's always a little awkward explaining to people (esp. potential employers) that BlueThen was an alias I chose during my gamer days when I was 9 or 10.

Another thought along this line is unique URLs for users. For example, Hawkee.com/JohnCarmack vs Hawkee.com/profile/941249

BlueThen   -  Sep 29, 2014

Some screenshots from a series of music visualizers I wrote for our dorm parties.

BlueThen   -  Jul 08, 2013

Hi.

I made a video showing the progression of my algorithms.

http://www.youtube.com/watch?v=TQJbJVCMIH8

BlueThen   -  Feb 06, 2013
BlueThen   -  Jan 31, 2013

I made a 3D simulation of the Solar System... then hurled a sun-massed object through it

https://www.youtube.com/watch?v=MPfpLDsvOVQ

BlueThen   -  Jan 22, 2013

More destruction of the solar system: http://imgur.com/iiozsnA http://imgur.com/mxFJ5sy

In my opinion, these are all turning out very beautifully.

 Respond  
BlueThen   -  Jan 21, 2013

Here's what the solar system would look like if we were to move the sun over by about 112 million miles (180 million km or 1.2 AUs).

BlueThen   -  Jan 21, 2013

This is what the solar system would look like if a sun sized spaceship were to just casually pass through.

BlueThen   -  Jan 15, 2013

600,000 asteroid time lapse: https://www.youtube.com/watch?v=OKq6iwJ4E4E

BlueThen   -  Jan 13, 2013

Every asteroid known to man. I'll be rendering a time-lapse pretty soon.

BlueThen   -  Jan 06, 2013

@Hawkee I just noticed that most of my Processing applet demos aren't working. (eg. http://www.hawkee.com/apps/17128918/)

BlueThen   -  Dec 10, 2012

What is Hawkee.com's opinion on YouTube's new design?

BlueThen   -  Dec 08, 2012

@Hawkee I uploaded a new avatar quite awhile ago, and it hasn't changed. In fact, the avatar on my profile doesn't match the one in my account settings (which has the newer one).

BlueThen   -  Nov 11, 2012

@Hawkee I guess this is only inevitable. You should add a "report" button.

http://www.hawkee.com/profile/234913/

BlueThen   -  Nov 09, 2012

Alright, I made larger icons and removed the descriptions.

I'd like to make the banner javascript, but I'm having issues getting Processing to export working code.

http://bluethen.com/portfolio/

I'm thinking about hiding the applets on the pages, and instead showing the gallery first (with maybe an expandable box containing the applet?)

More ideas/feedback/critiques appreciated.

BlueThen   -  Nov 06, 2012

I made a portfolio. Please give any feedback.

http://bluethen.com/portfolio/

BlueThen   -  Nov 06, 2012

Hawkee, your notices are a bit funky now.

"Hawkee responded to a Status Update, Hawkee"

Clicking either the first or second Hawkee will bring me to your profile page (the second just having me scrolled down arbitrarily). I end up having to find the comment thread manually.

BlueThen   -  Oct 22, 2012

@Hawkee You should make comment threads linkable.

BlueThen   -  Sep 29, 2012

What would you recommend for VPS or web hosting?

BlueThen   -  Sep 07, 2012

Another tutorial I wrote. An attempt to make linear simulations of ragdolls and fabrics as easy as possible to understand and follow. Let me know what you think!

http://gamedev.tutsplus.com/tutorials/implementation/simulate-fabric-and-ragdolls-with-simple-verlet-integration/

BlueThen   -  Jul 13, 2012

Hawkee.com: What are your favorite books on coding?

BlueThen   -  Jul 10, 2012
BlueThen   -  Jun 06, 2012

Did some changes to the design at http://bluethen.com

Any thoughts?

BlueThen   -  May 30, 2012

@Hawkee might find this relevant.

http://www.webmonkey.com/2012/05/twitter-declares-everything-old-new-again/

Twitter getting rid of hashbang URLs and javascript generated pages

BlueThen   -  May 11, 2012

I wonder if this uses BB code

BlueThen   -  Mar 21, 2012

Hello world!

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.