News for hackers. Stuff that matters.

sns989

Re:Linear code is more readable on Friday September 15, 2023 @12:07AM (#37518274)
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.
Re:Ask HN: Who is hiring? (March 2023) on Wednesday March 01, 2023 @03:53PM (#34988188)
Hi! is the Cloud Software Engineer role only for Remote in France? do you have any other roles open?
Re:Write your own task queue on Sunday September 11, 2022 @02:41PM (#32802135)
links in the blog are 404ing
requests, the python package for HTTP/S
not sure if you live/work in the United States, but the majority of those questions are illegal to ask.
Re:Ask HN: Discipline but no focus, how to fix? on Wednesday January 30, 2019 @10:42PM (#19042122)
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.

Re:Ask HN: How do you take notes on your laptop? on Tuesday January 15, 2019 @09:10PM (#18917713)
Typora
Want to correct that the U.S Web Design System was built by a USDS sister org, 18F under the GSA/Technology Transformation Services https://www.gsa.gov/about-us/organization/federal-acquisitio...