53 points · by reedlaw · 17y ago · 92 comments
Later, I purchased an Amiga and was full of excitement and joy when I learned how to use AMOS BASIC. It was more powerful than Apple BASIC, and I could use a mouse and graphics utilities such as Digi Paint to create bitmaps for sprites.
In recent years there have been few programming experiences that rival those early days. Ruby on Rails was a joy to discover after Perl and PHP. But as it evolves, I find keeping up with new features and best practices tiresome.
Yesterday I downloaded the Android SDK and followed the "hello world" tutorial. After completing it I had almost no desire to continue developing on that platform. The emulator took several minutes to load and many of the instructions on the developer site were confusing or plain wrong.
Are there any modern programming environments that are simple, fun, and a joy to use? It seems strange to me that as computer hardware has grown increasingly powerful and software tools more sophisticated, making programs that take advantage of these advances has not become easier or more enjoyable. On the contrary, programming seems to become more frustrating as it advances, like always trying to keep up with a frantically moving target. Am I missing something that can bring back my early joy or discovery, or am I just being nostalgic?
I'm also trying Pygame and Pyglet and for a hobbyist game programmer it's very enjoyable not having to deal with C/C++ memory management crap.
PS: I think most programmer still have a fondness for their first coding environment because when your young everything is awesome, especially computers :) I have good memories of writing an adventure game using QBasic.
- Already installed on the Windows 3.1 machines.
- Whitespace isn't significant. It's obvious to me how a program should be indented, but it's not to a beginner. Missing ENDFOR is much clearer than Incorrect Indentation.
- No modules. Anything I have to explain as "it's magic" is a potential source of problem.
- LINE (30,40)-(100,50), BF to draw a rectangle. The Pygame equivalent is somewhat longer, mostly due to having to setup a window.
- The IDE was better. The help facility, in particular, was positively wonderful compared to what you get with help(...)
Once these hurdles are overcome, Python does provide better capabilities, but it's not quite the perfect beginner language that I expected it to be.
Yeah, not as fun.
That combo makes it crazy easy to maintain a bunch of web apps and explore/publish different ideas.
Long-term, I want to drop Ruby and go to Factor (http://factorcode.org/). You can do some amazing cool stuff in Factor that is next-to-impossible in Ruby/Python/Java/etc. It's hard to find a blog post or a screencast that shows you stuff like parsing functions and macros that let you mold the language to your needs. (The documentation on them is pretty straightforward after you learn the basics.)
Then there's the postfix notation. Most people think that's Satan's love child. It takes some time to get used to.
In Ruby:
loop { print( eval( read ) ) }
In Factor: [ read eval print ] loopNone of them.
http://www.reddit.com/r/programming/comments/64g7p/old_basic...
The disease is systemic. It pervades all modern computing systems. The name of the disease is ratcheting accidental complexity. The only cure is a from-bare-silicon reboot of all of computing.
> On the contrary, programming seems to become more frustrating as it advances
This is because it is not actually advancing. Incompetently and half-heartedly cribbing feature after feature from Common Lisp is not advancement.
> Am I missing something that can bring back my early joy or discovery
What you are missing is (was?) very real. There once was a time when computer technology was actually advancing in meaningful, qualitative ways. And when the future seemed alive with infinite possibilities. Don't let anyone convince you that all of it never existed.
I don't think that can practically happen. If you're using some not-too-powerful language to do it, it will take too long and you'll never catch up. If you're using a language powerful enough to actually accomplish it, you'll never develop a community or a culture of libraries, because the number of people who feel they can just build what they need faster than learning and using someone else's library will be high enough that libraries never get enough attention, and you'll end up with an archipelago instead of a continent of libraries. That's pretty much what happened to the lisps.
(Writing SBCL instead of clojure was also nice, but ultimately the cruft of common lisp made it difficult to continue.)
Paredit mode makes it even prettier. Paredit mode makes sure that a) the buffer contents are always a balanced sexp and b) you can mostly use the same keystrokes as normal editing.
the cruft of common lisp made it difficult to continue
What, specifically? Perhaps I've simply adapted to not noticing it, because apart from its relative verbosity (for a Lisp) I find CL quite nice.
Clojure's error messages reminded of Microsoft C: "syntax error".
I might also get branded heretic for saying this on HN, but lately I've been also able to enjoy Java development: with git for revision control, maven for project lifecycle management/pulling dependencies in an almost CPAN-esque manner, IntelliJ for an IDE (which, I've been told comes close to the capabilities that the Lisp machines had as far being an IDE goes) and jetty (invoked through maven) for a servlet container (a breath of fresh air compared to Apache as well as tomcat).
1. Visual Studio is still one of the if not the most powerful programming enviornment out there. It's ability to predict what you are about to type and fill in the blanks for you makes a lot of programming tasks fly by. I know there are a lot of places where I could get by with less code if I was using a language like Python but autocomplete more than makes up for it.
2. If you're building a serious, business application that will have to serve thousands of users than a technology like ASP.NET probably isn't for you. But if you're building a smaller app the abstraction that ASP.NET Webforms provide is a real time saver. You can literally just draw your interface and then fill in the events. Again, it comes with a performance penalty for sure, but if you're looking for joy there's nothing cooler than being able to whip up an app in under an hour.
For the last two years I've been programming exclusively in Java inside Eclipse and the experience is far better than any other language/tool combination I've worked with before.
Auto-completion and inline documentation is great, but the IDE features that really have me sold are powerful navigation, painless refactoring, incremental compilation, and adding imports with a single keystroke.
I don't have nearly as many complaints about Java as the rest of the world, but I do admit that I've been getting pretty excited about Scala lately.
What to develop for the clientside and serverside? What about Firefox? maybe a desktop application? I have recently become obsessed with learning this wonderful language that has so much potential.
the type system is divine, its hard at first put 'real world haskell' can really help with that.
others that i've had great joy with recently...
smalltalk - now using everyday and loving it ( might not meet the modern criteria ) clojure - purr
if you are looking to do web dev, give the smalltalk framework seaside a look.
The beauty of JavaScript with a nice graphics library and a few other little bonus.
Much improved over the early days of Flash.
For the "woah" factor: Mozart/OZ, Prolog, Scheme and J. The first two days you discover prolog I don't think you will be able to function socially; you might need to miss a few phones calls. J will have you asking "WTF?" a lot.
Most enjoyable? if I said Perl I am afraid I will be chased out of this place :-P
I would hope not, but one never knows. There does seem to be some bigotry against Perl in some circles.
But, one can't argue with statistics, right?
http://blog.doloreslabs.com/2009/05/the-programming-language...
Anyway, I also find Perl a lot of fun to work with. I write fewer bugs in Ruby (shockingly few, actually, despite never having spent much time with the language), but Perl has the CPAN which makes almost any project like playing with a really nice Lego set: You just plug lots of cool looking colorful pieces together and at the end you've got a spaceship.
I've used Python heavily in the past, and enjoyed it, but I certainly haven't experienced any pain going back to Perl. If I were starting a project from scratch today, odds are at least even that it'd be in Perl (though new-fangled stuff like Haskell has some appeal, just by virtue of being all new all the time). JavaScript is probably also a strong contender for pretty much anything...I'm pretty confident that JavaScript is going to be the worlds most popular language both client and server side, and it's a language that I enjoy working with.
Really! Flash got me hooked on programming. In school everyone else was bored making loops in Java and I was making a Ball bounce around the screen. Draw, code, play, repeat. Plus it runs everywhere! Personally, I suggest skipping the IDE and compile it directly from classes for free.
(Not general purpose, admittedly, but very very satisfying.)
Alternatively, if you'd like to try doing some games, there's LÖVE, a 2D game engine in Lua: http://love2d.org/
Who knows, either may provide the new air of excitement you're looking for.
[EDIT] earlier today I cleaned out several bookshelves. I tossed about 100 old tech manuals...I kept all the Smalltalk/V books ;)
i like dumb, old power tools that don't get in my way -> unix+vim+lisp
An example (since I haven't recorded any of my projects yet; also sorry it's in Portuguese): http://blog.bsoares.com.br/processing/controlling-rgb-led-wi...
For web frameworks, Rails for me is still awesome. Merb is also nice (even though I've used it less since the news it's being merged into rails), as is sinatra.
To measure this properly, perhaps we could look at the eagerness with which children learn programming now as compared to fifteen or twenty years ago.
But for web I prefer Python/Django.
For real projects, Lua will expect you to know C, but in exchange, it avoids duplicating a bunch of functionality that you already have on hand. (Calling C from Lua is trivial.) The designers have done an excellent job of keeping the language simple and clean without detracting from its expressiveness. (Lua is to Scheme as Python is to Common Lisp.)
Python is bigger, and has more design quirks for backward compatibility, though Python 3 attempts to fix this. OTOH, it also has far more off-the-shelf libraries, and a significantly larger community.
(Forth is also fun. I'd be lying if I said I've ever done anything useful with it, but it really captures the wonder of being a kid and playing with Basic.)
but I'm taking my first baby steps in Vim, and damn but it's bringing me joy! (I like it so much, this post comes to you courtesy of vimperator firefox plugin).
I haven't dived in yet, as I'm waiting for them to establish some hold on the market, but as a web developer anticipating doing mobile apps, I'm hoping for some success.
Would be cool if Android 3.0 would take up this idea of using web technologies to interface with mobile apps. If anyone had a vested interest in web technologies, its Google.
Of course, I'm probably biased: at my day job they've chosen Java for web develoment. (The "approved" libraries/frameworks are not only years behind, but onerous.) So, in my spare time, almost anything that's not-Java is fun.
Eclipse with its basic features for java development are fun. When you have learnt how to exploit the features and learnt to live with it's limitations, it's at least not getting in your way. But I guess you can say that about most Ide's when you have learnt it well and grasped an understanding of what you can and can not do with it. So now I fire up an Ide for the project and management off and do the hardcore editing in Vim, leveraging the best of the two worlds. And are having fun too.
The day's for the "one size fits" all may be gone.
I think they days for small beautiful fun to use languages are finally gone with the end of Moore's Law. Everything will become more complex to deal with. Thinks the trick to leverage the fun for a project is to use different environment for different contexts of the project, and create tools for dealing with your specific needs.
In an ideal world, what kind of programming would you want to do? That might point you in a direction.
Developing on this Python web framework is really a joy.
You can instantly start coding and testing by reading the official tutorial.
Of course, once a person feels comfortable with virtually any LISP dialect, they usually LOVE it.
Interestingly, I haven't got the same feeling for XAML, which I thought I would before starting to use it as there are conceptually nice things about this framework.
JavaScript is fun in the sense that you can do some very cool and interesting stuff fairly easily.
Of the books I've read, _The Little MLer_ conveys the mindset the best. (It's in the same style as _The Little Schemer_, but is about ML, type systems, and type inference in general.) For learning OCaml and its toolchain, the French OReilly book (free English translation: http://caml.inria.fr/pub/docs/oreilly-book/) is a good text.
I took a p4 2.4ghz w/ 1gb ram out of the closet and have been partitioning, compiling, bootstrapping, to my heart's content. To be honest, working with a super minimal system at the cli is a lot like coding in all caps on my old Apple II+.
For example, if you can think about vi editor not the way that it is a mess of one-letter commands and beeps, but that it is very rare almost 40 years old masterpiece of smart design, efficiency and minimalism this approach might work. Think that it was created for text-typing pros, who types very fast without even looking on keyboard, and so on. If you prepare yourself for the way of discovering its wonders and ideas, and do realize that it is the best tools for storming throught dozens of files in /etc, and the sequences like '/^debug[Enter]I#[Esc]ZZ' are beautiful you will probably feel a joy.
Same thing, if you will think about emacs (in console mode, without gtk gui) that it was designed to work via hardware terminals, like this lovely DEC's vt-i-didn't-remember-the-numbers boxes, with green letters and that wonderful hardware scrolling, you will probably understand, why there are so many of those Ctrl-x Crtl-x commands in it, and how smartly these commands was arranged.
The power and beauty of 'screen' utility is a common knowledge.
As for programming languages, just think about ideas behind them. Think that C is a great engineering masterpeice, that Perl is a most beautiful way to create a completely mess that works, that Ruby was developed by truly eastern mind, and lisp.. you know.
I can't tell something about PHP except that it is an swiss-knife stuffed with low quality blades, and Java is the biggest buzzword ever (anyone can run some once-written spring-hibernate-jsf-with-all-depencies mess everywhere? on ARM?
We are what we think. =)
Assembler is good especially on something clean like a microcontroller. I like the AVR instruction set. http://www.maht0x0r.net/library/computing/avr/docs/8bit_avr_...
Hook up an AVR to a GSM module and a SIM and you've got you're own programmable cell phone, like this one http://www.sparkfun.com/commerce/product_info.php?products_i...
It sounds like you might like Smalltalk or even XCode and Cocoa (Interface Builder, etc.).
Erlang/OTP and Erlang web stacks (Mnesia/CouchDB, Yaws/MochiWeb) are a lot of fun.