5 ms·
When I first started hacking away at the Hackety source, I was referring to it as "software archeology." _why's personal coding style, his distaste for comments
by steveklabnik 16y ago
When I first started hacking away at the Hackety source, I was referring to it as "software archeology." _why's personal coding style, his distaste for comments, and his advanced Ruby knowledge made fixing bugs a real treat. (I say this non-sarcastically: I love puzzles.)
I don't have a citation, but I remember seeing something where he said he never learned as much about Ruby internals as he did when creating Shoes. I feel the same way... doing more than just building Rails apps has made me learn more about Ruby than I would have otherwise, and I'm becoming increasingly appreciative of it.
Here's another screenshot of drawing stuff with the editor, and a color picker: http://imgur.com/2jEEm.png http://imgur.com/2jEEm.png I'm adding it to the article, but just in case you've already checked it out.
- RodgerTheGreat 16y agoJust in case it isn't clear, the color picker is a standard OSX dialog box.
- steveklabnik 16y agoTotally. Shoes uses native widgets on every platform.
- Xuzz 16y agoNot for the buttons in the bottom-right, though?
- steveklabnik 16y agoThose are specially styled. A regular 'button' call would give you a native one. https://github.com/hacketyhack/hacketyhack/blob/master/app/ui/widgets.rb#L10 https://github.com/hacketyhack/hacketyhack/blob/master/app/u...
- dan00 16y ago"... and his advanced Ruby knowledge made fixing bugs a real treat." Well, features of a language should be used to made the code easier to read, not the other way around.
- thenduks 16y agoI don't think I agree with a blanket statement like this. Features of a language can be used to make the code easier to read, if that's your goal (eg, to have other people read it and understand it -- including your future self). Sometimes, though, your goal is just experimentation and exploration. Why do you think obfuscated code contests exist?
- grammaton 16y agoDevil's advocate here: isn't a quirky, idiosyncratic coding style with no documentation generally considered a liability just about anywhere else?
- steveklabnik 16y agoAbsolutely. Generally, we're talking about building robust, reliable systems, though. _why specifically thought this hampered creativity. I can't find a citation for you right now, though. Part of making his projects my own? Adding this stuff. I can see _why's point, but I don't think it's right for Shoes/Hackety themselves.
- judofyr 16y agoYou might be thinking about this quote from camping-list? No, let's not have rules. I don't feel comfortable with having coding standards or any protocol on Camping. The point of Camping is to have very ugly, tricky code that goes against all the rules that people make for "beautiful" code these days. To show that ugly code can do beautiful things, maybe. I don't want to demonize anyone here, I just want to express the ideas that make Camping different. Camping's personality is 80x50. It is like the little gears of a watch that are all meshed together into a tight little mind-bending machine. The challenge of Camping isn't to figure out how to automate obfuscation. The challenge is to bring new tricks into the code that push Ruby's parser and make everyone look twice. Not all code needs to be a factory, some of it can just be origami.
- steveklabnik 16y agoNot the exact one, but gets the point across nicely. :)
- grammaton 16y agoThen "creativity" kind of misses the point of software engineering, doesn't it? I respect _why's abilities and contributions - he's done a hell of a lot more for the Ruby community than I have - but I don't take much truck with the "coding as art" mindset. It's a field of engineering with creative overtones. It should be treated as such. Of course, I'm a nobody, so no one cares much what I think :)