News for hackers. Stuff that matters.

zergov

Re:Ask HN: Working with large code base for the first time on Wednesday December 22, 2021 @12:55AM (#29646013)
I like to trace down things in order.

For example, let say I'm working on an ecommerce system and I try to understand what happens when a buyer adds an item to its cart. I'm going to put logs / debugger's prompts on the important steps of that operation. Next to those, add a comment that describes why this step is important. The important thing is to label the comment with incrementing numbers. Those numbers allow me to keep track of the order of execution.

Finally, commit this to a dummy branch and share it with your co-workers if both of you are new to this code base.

That's one of the first thing I do when I jump in a new codebase. Pick something that interests you, and log the whole operation.

Hey! OP here. It's a tool for people confined home, because of the COVID-19 crisis, to get help from their local community.

Share it with your friends and family, who knows, it might be helpful to someone!

For my fellow developers, it's also open source! https://github.com/zergov/helpaneighbor Feel free to open issues or PRs for translations / new features! !

Re:Music for Programming (2011) on Thursday December 12, 2019 @10:16AM (#21772434)
High BPM music has a huge effect on me.

I have seen myself iterating a lot more during a session where I would listen to trance music instead of 2000s punk rock.

Is it the smaller amount of lyrics? I don't know, but I'm convinced I have observed a higher productivity when listening to high bpm music in the past 5 years.

The left one is always the error because the right is the right one.
Re:Ask HN: What is your favorite tool to build web startup? on Thursday January 24, 2019 @08:08AM (#18988265)
I think you're talking about Sorbet: https://sorbet.run/
Re:Ask HN: What is your ultimate development environment? on Monday January 14, 2019 @08:14AM (#18902683)
I use tmux + vim. I use different tmux sessions for work, school and side projects.
Re:Ask HN: Did you learn any life changing lessons this year? on Sunday December 23, 2018 @03:10PM (#18748039)
I learned to shut up and let things be when it does not concern me.
If you're familiar with Django, just go for it. The documentation is really nice and it is batteries included: admin panel, authentication, permissions and more. All this free stuff will let you focus on your app instead of what is around it.

For the frontend, it depends on your goals. If you need a quick prototype, just use the Django templating engine and ship something quick. If you want to learn, choose a popular frontend framework and stick to it. They are all pretty good. Check their API / ecosystems and pick the one you like :)