Better HN
topnewbestaskshowjobs
Log inSign up

learninglisp

91 karma · joined Sep 19, 2007 (19y ago) · 38 submissions

Submissions

comment 18y ago · link · parent

I don't understand this. There are about 5 to 10 entry level to intermediate level Perl idioms that are just plain useful. (file handles, sed and grep commands, basic regular expressions, etc.) that can do most of what you need to do with typical quick and dirty Perl programs. It doesn't take much to remain fluent with these, though you may need a cheat sheet for keeping @ $ and & straight. (warnings and strict prevent the worst headaches, though.)

My first perl scripts are a complete mess. But my more recent ones are generally one-screen in size more or less... and are a few short (often lispy) subroutines followed by a short imperative program that does something to text stream based on the arguments that were passed in with it.

Decent perl code looks (to me) something half way between Ruby and BASIC. Maybe I'll find out before long, but I just don't see how people can suddenly stop being able to understand their Perl code-- unless they are completely sloppy and cutting all kinds of corners.... :evil:

comment 18y ago · link · parent

Blogging has its share of muckrakers and trolls, but for me I'd say that it has opened up a medium in which I can follow a single train of thought over the course of a year even though I might have limited time to focus during any given day or week. I've been able to make minor contributions to a subject area that I had no skill with at the start, and I've made contact with several other like minded individuals that I never would have come across otherwise. Most importantly, if I was completely braindead on a certain point or if I was unaware of something painfully obvious, it was brought to my attention much earlier than it might have been had I continued by trial and error alone. The flames and the ridicule were not that bad, and ultimately blogging provided an arena where I could new try things: it was okay to "fail". There's not that much at stake in being an idiot in a blog post as long as you're willing to admit you were off base and correct stuff later.

comment 18y ago · link · parent

An average programmer learns a variety of tools that lead him to a series of epiphanies.

With his eyes open, he no longer can cope with the lame blubiness of his career, but he finds him self pigeonholed by his old job description. He doesn't have the credentials to strike off into a job that would allow for more professional growth. But he had no idea that the many small development choices he'd been making over time would lead to this crisis. Now what?

comment 18y ago · link · parent

I second Perl. You can learn enough Perl in a week to write neato sed/grep/awk type programs and shell script tupe stuff to outfit your command line however you like. Also... it's a good investment because your tools will run on any platform. You can soak up a measure of Unix culture as you go and you'll pick up a swiss-army-chainsaw that you can use when your usual dev tools don't cut it.

Going up to the next level in Perl has a larger learning curve than you might expect... but the "low hanging fruit" are very easy to get the hang of.

comment 18y ago · link · parent

For the poor coders that have spent their whole lives in front of dumbed down IDE's... yes this is news. (Show some of these guys a pipe command and they won't see the implications. A sed style global regex search and replace action will be equally mystifying.)

Not everyone has succumbed to the power of the smug Unix weenies yet. And in any case... weekly diet of a few cool sed/grep/find/emacs/vi tricks is certainly in order for "Hacker News".

comment 18y ago · link · parent

Man, and I was thinking I was one of the "good" programmers....

comment 18y ago · link · parent

Excactly right.

It's your job as a developer to always have some just-for-fun apps going where you test out new tools and techniques. How else can you suggest anything useful when the next project starts?

To do otherwise is to always stay status quo on architecture or to pick new technologies at random.

comment 18y ago · link · parent

I think it's worse to be stuck with responsibility for a codebase that you have no real authority over.

You can't live in fear of that kind of stuff. Who's the fricking expert on software development? Not the managers. If you focus on meeting everyone's needs lower down on the food chain-- and invest in tools in techniques that multiply your ability to maintain and extend the code-- then your development will be so tight and your response to issues will be so comprehensive that the "play it safe" types will have nothing they can say to you. (Except maybe that they'd rather have more buttons or something.) If you're a responisible developer, you'll be addressing the "slightly wrong" stuff well before the middle managers even hear about it. You'll have a relationship with the real value-adders such that they talk to you instead of your bosses. You, after all, are the one that gets stuff done quietly and thoroughly.

Sheesh. They're "play it safe" types. Think about it. Once the code is up and running, they're not going to be to be suggesting any changes. Suddenly you're the status quo and they'll defend your work by saying "if it ain't broke don't fix it" just like they said about the previous solution.

12