hairylunch (hairylunch) wrote,
hairylunch
hairylunch

  • Music:

Code Like a Girl

So, Tony linked to this article titled "Code Like a Girl."

I find it interesting that while from how they describe things, I probably write "girl code" but in my mind, so do most engineer types - it's more pragmatic to write code that "looks right." It makes it easier to read, easier for others to read, and you spend less time trying to figure things out when you revisit the code months, or even years, later.

So, the crux of the article: "Things that aren't just functional, but easy to read, elegantly maintainable, easier--and more joyful--to use, and sometimes flat-out sexy." (Note this can be extended beyond code.) While I think there's definite beauty to physical objects where form follows function, I'm not sure if I agree that it applies to code . . .

I think a good example of my writing "girl code" was yesterday when I finally caved and rewrote the underlying code to one of our webpages. I ended up moving things to functions, removing all the superfluous tables, etc etc. Though, by adding some line breaks, I apparently screwed up the DOM, and the JavaScript that used childnodes() got broken, so I had to rewrite that as well. Unfortunately, I don't know anything about DOM, so the code is hacked - it works, but I really do need to sit down sometime and figure out how DOM works, and how nodal hierarchy is determined . . .
Subscribe

  • new digs

    I've moved to https://ernieseruditions.wordpress.com/! I've been on LiveJournal since the navel-gazing days of blogging, even paying for a…

  • Portland and Protests

    Truth is complicated. Memes and tweets serve as news for many today, and folks cherry pick their sources and the items they want to believe.…

  • Random Thoughts

    Lots of time to listen to podcasts and think/process these days . . . a few items that have been percolating in my brain ... Being a poet/imposter…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment