Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

n terms of actual code reminders I try to make it work, make it right, make it fast.

I also try to do always, then inhibit, then ignore cases that don't apply.

Minimize if statements to have consistent execution.

If a function is called from one place I will inline it. From multiple places I will try to see if I can have it happen in one place so I can inline it (plus it's an optimization thing). For complex calculations if I can't have it happen once I will try to cache it, but cache invalidation can get tricky, so I always opt for do it once.

Finally I try to write pure functions, look at parameters and return one or more computed value.

What programming languages are we talking about here?



I primarily work with Java and Python.


I mentioned in a top comment that is probably lost in the comments that I vouch for "if you're the smartest person in the room, find another room".

If you've got an suitably anonymous email address I can contact you on, I might be able to offer that other room. (Or you might think it's shite, which is fair).

But yeah, my current employer was my other room. Got to experience imposter syndrome again for the first time in a long while.


>Java and Python

Just lost your credibility lol.

Python is alright but... seriously? Java?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: