Yeah, fun idea. So when I didn't recognize some of the options, I've looked them up with :help and of course "autoindent" and "ai" are the same, so should be really added together.
HN user
boofar
I'm sorry, you're correct of course! Private is the sane default obviously.
Functions are public by default. You could leave that out.
The main function has to be static and will serve as the entrance point of the program, not the class. So this might just look like too much when in fact this is just a very small code sample.
Did I address some of your concerns, or did I miss the point entirely? Just curious.
Keep in mind that in a language like erlang this is enforced for all it's users. So the whole eco-system is build around that premise.
Most here have commented 3-4 hours ago, but 2 hours ago Isaac Yonemoto left an excellent comment on the blog. So if you read this message, because you're checking the thread for new discussion, I encourage you to check out his comment as well. :-)
Half-relevant: Funnily, I just arrived at this passage in "Willpower: Rediscovering the Greatest Human Strength"[1]:
"We devoted chapter 3 to the glorious history of the to-do list, but we realize that some readers might still not feel like drawing one up. It can sound dreary and off-putting. If so, try thinking of it as a todon’t list: a catalog of things that you don’t have to worry about once you write them down. As we saw in our discussion of the Zeigarnik effect, when you try to ignore unfinished tasks, your unconscious keeps fretting about them in the same way that an ear worm keeps playing an unfinished song. You can’t banish them from your brain by procrastinating or by willing yourself to forget them. But once you make a specific plan, your unconscious will be mollified. You need to at least plan the specific next step to take: what to do, whom to contact, how to do it (in person? by phone? by e-mail?). If you can also plan specifically when and where to do it, so much the better, but that’s not essential. As long as you’ve decided what to do and put it on the list, your unconscious can relax."
[1] http://www.amazon.com/Willpower-Rediscovering-Greatest-Human...
Could it be, that you're looking for this thread? http://news.ycombinator.com/item?id=3707338
So it's not the fault of programming or any other activity per se, but that of the stressful (work) environment.
There are some video tutorials by Derek Wyatt that have been recommended on HN a few times:
If you don't mind: which are those more exclusive advertising networks, and what are the hurdles you have to take to get in? What's an average ecpm there?
Working out at home is a possible answer then. I regularly use and therefore highly recommend the simplefit[1] routines. It consists of 3 different "days" (endurance, strength and judgement) which all consist of different combinations of pull-ups, push-ups and squats.
All you need equipment-wise is a pull-up bar. I have a wall-mounted pull-up bar which is very stable. Maybe a cheap one for the doorframe will do the trick as well.
simplefit consists of progressively harder levels[2]. If you manage to finish "day 3" (judgement) in under 5 minutes, you go to the next level.
[1] http://www.simplefit.org/ [2] http://www.simplefit.org/workout.html#workouts
EDIT: forgot to mention that the simplefit exercises are done with bodyweight only. Also, they are laid out in a way that will keep your heart pumping and thus you will get fit pretty fast and in a time-efficient manner. No routine takes longer than 20 minutes. In fact, only "day 1" is ultimately bound by time (20 mins), the others are to be finished "as fast as you safely can". This is key for me and the reason I stuck to it over many weeks now. It doesn't take long and I still see results.
If you're interested in haxe make sure to check out haxenme[1] as well. I haven't worked with it yet, but plan to do so.
I'm about to leave soon, so I'll make it quick:
In a previous post I already lauded the book "The Happiness Advantage: The Seven Principles of Positive Psychology That Fuel Success and Performance at Work"[1].
The book is based on scientific results.
In the chapter "The 20 second rule" the author talks about the "activation energy" required to start a task and recommends reducing it as much as possible. Every 20 seconds (hence the title of the chapter) removed between you sitting on the couch and starting what you wanted to start makes a difference.
I have a nice pullup bar hanging from the wall that's staring at me and every other day I follow the simplefit[2] program. Have been following it for weeks now. "Activition energy" being so low... even when I dread doing sport (yes, there are such days) I tell myself it's at most 20 minutes and I can start right away so the pullup bar is looking at me with a face and I shrug and do it. My energy and endurance has increased noticably.
Gotta run now (not to the gym hyuk hyuk), I'll be happy to answer any questions tomorrow.
[1] http://www.amazon.com/Happiness-Advantage-Principles-Psychol... [2] http://simplefit.org
To me, comfort is also the main reason to use vim.
Not having to think about where the buttons are that I have to press to accomplish something, not having to leave the home row... that's comfortable. While I'm sure I'm faster doing the same tasks with vim than I would be using a regular editor, the comfort of not having to consciously think about what I have to do is clearly the bigger one.
I've almost finished reading "The Happiness Advantage: The Seven Principles of Positive Psychology That Fuel Success and Performance at Work".[1]
It's based on scientific results, so it's not yet another esoteric self-help book.
Now, back to your question: If you expect it to suck, it will suck. The author explains with princile #2 (the fulcrum and the lever) how this negative priming turns this into a self-fulfilling prophecy. Now, it might be, that the particular job simply stinks, but usually you can find something positive and just thinking about that shortly before will make that negative feeling go away. My explanation might make it seem simple and useless but I can't possibly replace all the valuable advice from the book. And it works. Give it a shot.
It's a very good read and I recommend it very highly.
[1] http://www.amazon.com/Happiness-Advantage-Principles-Psychol...
Livestreams are available via http://28c3.fem-net.de/
The rooms are called "saal" in german. Check the schedule to figure out which talk you'd like to watch and in which "saal" it's located and then pick the corresponding stream.
The schedule for today is at http://events.ccc.de/congress/2011/Fahrplan/day_2011-12-27.e...
Unfortunately, Cory Doctorow's talk just ended. :-) But as every year, recordings will be made available later on (probably in a week or so).
Enjoy!