Ask HN: How to write production-grade code?

https://news.ycombinator.com/item?id=39993229
by actbsh • 2 years ago
5 4 2 years ago

Hello HN,

I have been writing python code (for Deep Learning/ Computer Vision) for almost 4 years professionally. However, I haven't worked close to a production system so far but would need to in my new position. I want to understand what it means to write production-grade code?

So far, my understanding tells me of

- Language specific or even general code style guidelines - check

- Logging and exception handling - check

- Tests - check but not always and could be more comprehensive

Still, I feel like I don't craft quality code. I have ofcourse received feedback from team members over the time and have incorporated those into my work so that I don't get those review comments anymore. However, the feeling that my code is just simple and dumb doesn't go away. Some say it's a good thing but most code I come across, say libraries I use, are just different in terms of abstractions, language features they use and whatnot while mine looks like something written by a highschooler (imo)

So, if the more experienced among you could suggest some resources / practices / exercises / whatever, that would really be helpful. Thanks in advance.

Related Stories

Loading related stories...

Source preview

news.ycombinator.com