#909
If you know the "why" for your existence,

you will most asuredly be able to bear against any "how".

The Ugly Examples


I wrote in the last article that this week I would be giving some code samples to further explain my position on why I consider code to be ugly. That will probably be the last time I mention a follow up on a post inside the post. Anyway, here it is.

Kia Kroas :=: 13 Apr, 2010 09:29:44

Code is not Beautiful. Algorithms are Beautiful, Code is Ugly.


As a programmer, I've done a lot of coding over the years. I've come to the realization that most code is ugly. Not ugly enough that I'm repulsed by it, but ugly enough to be called ugly rather than just not pretty. Beautiful code does exist, but it's usually in tiny little snippets and very rare. Ugly is too strong of a four-letter word to describe the majority of code that I have not seen and probably will never see in my lifetime. However, I will use it here for lack of a better, more pronounced term.

Don't take me wrong, I'm not saying it's the formatting that's causing ugly code, I'm saying it's a fundamental property of all programming languages. (Written language to me is ugly as well, but that's for some other time.) The syntax, the grammar, the vocabulary, the keywords, and the punctuation are just so absolutely not beautiful. And...considering the hack-ish code necessary in order to parse and tokenize all that ugly, I really think I'm right to say code is ugly.

Kia Kroas :=: 04 Apr, 2010 06:47:07

Ruby on Rails, Paperclip, Uploadify and S3


I've been doing lots of work with Heroku. Since Heroku only deals with with application side and the filesystem is treated as though it were read-only, file storing has been done through Amazon S3. thoughtbot's Paperclip is being used to make file maintenance easier.

However, since clients nowadays want the fanciness of Web 2.0, the uploads were to have progress bars. So, because the sites were using jQuery the applications ended up being integrated with Uploadify.

Kia Kroas :=: 16 Mar, 2010 04:06:47

Life goes on


What do I have to say? This is just another of my ramblings.

I've been staying up too late these days. Need to start sleeping earlier again. My sleep schedule's so whacked up these days. Blah...

Work's slowed down, so I finally have some time to write for this blog. I might start blogging a lot more soon, very soon.

Kia Kroas :=: 16 Mar, 2010 01:44:29

Upgrade Early, Refactor Often


This can also be titled: Update Early, Rewrite Often

I've seen a bunch of really crappy code and in this post I'll give my take on code maintenance, refactoring and upgrades.

When you maintain code, the purpose is not just to keep the code working. Some people spend their time making sure the code is working properly. Working properly isn't good enough. When you maintain code, you have to make sure it will be working in the future. A metaphor would be maintaining a house. You make sure that all the appliances are working, the water is running, and the phone line has a tone. However, you must also make sure that the foundation of the house is strong and firm. You can't wait until the roof falls down before noticing that termites have eaten holes through the frame. Or for rats and cockroaches to bite your face before noticing them.

Kia Kroas :=: 16 Jan, 2010 06:11:36

Let's face it, you're fucked no matter what you do


In my short time working in the workforce, I've noticed a lot of things. I do not like working in the customer service industry. I do not like any work that deals with the general public directly. I can't handle people. Anyone that knows me knows that I'm not really a people person. But everyone's gotta work. So here's my take on it: Choose something you really like doing. Sounds pretty obvious doesn't it?

I can sum up this entire article in one sentence: You're fucked no matter what you choose, so you might as well choose something you like fucking.

This could apply to a lot of stuff. I am applying this to professions and careers.

And yes, I've become cynical. It seems being a nice, reserved and quiet good boy doesn't quite awe the girls.

Kia Kroas :=: 16 Jan, 2010 05:11:59

Happy Birthday Sir GHOST


Eh...it's been forever since I've written anything. I really should, but life has been way too busy. But in any case, happy birthday GHOST. Hope your day's going well.

Kia Kroas :=: 14 Jan, 2010 11:49:46

Copyright Kia Kroas 2009