HN user

sns989

8 karma
Posts1
Comments8
View on HN

this is anecdotal of course, but as someone who has never written a line of production Go code (but can tell at a visual glance this is in fact, Go), small functions (green) made sense to me as soon as I started reading it. The single function code (red) became hard to follow at some point. It felt like the function was doing 10 different things with a lot of branching and no particular single purpose. Maybe it's the Python background in me, but I am not seeing how the single function is better to read than small, self-contained functions.

I am sure you've heard all of these but they worked for me: 1 month of doing this on the regular and I've never been more productive.

All you need is 40 hours a week of solid productive work. that's it. Get that in your head and work from this first principle.

make time for downtime - allow your mind to wonder and be bored and go off tangents sometimes. Counterintuitively, that's part of the magic. do some breathing exercises throughout the day(if you hate meditation like me lol)

Get a gym membership and do a rigorous workout 3/4 days a week.

Become friends with water: seltzer, regular, fruit-infused, tea, it doesn't matter. drink lots of it. It'll have 2 main effects: keeps you hydrated of course(with the many benefits) and it makes you get up every few hours to go on a break.