News for hackers. Stuff that matters.
Re:The Best Programming Advice I Ever Got (2012) by usawco on Saturday December 15, 2018 @04:17PM (#18690389)
I had a similar experience and similar results. Someone wrote code to perform 1000 queries to pull back 1000 rows in a specific order rather than issue one query and let the Java collection order the results. Amazingly, another person wrote more logic to add a switch to skip this step because it literally took 10 minutes for the app to start when connected over VPN. The fix was trivial and startup time went from 10 minutes to 300 milliseconds. Being the new guy coupled with the fact they had actually lived with this for years, I was immediately hated.
Re:The Best Programming Advice I Ever Got (2012) by hashhar on Saturday December 15, 2018 @04:42PM (#18690497)
Oh man. I am so glad that I had the opportunity to work at an organisation that actually celebrated a few such improvements i made.

There was a data ingestion job which inserted 4 million keys into Redis. It was awfully slow. I sped it up a lot using the Redis protocol format and redis-cli --pipe. They praised me for that.

There was a dashboard which queried data from a MongoDB collection and calculated some counts. I changed the design so that the service itself would update the counts so as to avoid costly queries.

I brought down build and deploy times for a service by removing unused gradle dependencies, structuring the build to allow using parallel builds and removing unnecessary configuration generation using templates and the entire team was glad that I solved a major pain for them.

Sorry you had a bad experience but I think this is what we mean when we say company culture.

Re:The Best Programming Advice I Ever Got (2012) by koala_man on Saturday December 15, 2018 @06:25PM (#18690925)
I don't know whether to laugh or cry.. You work at a better place now, right?
Re:The Best Programming Advice I Ever Got (2012) by bestCauliflower on Tuesday December 18, 2018 @07:00PM (#18711787)
This is making me angry. How come people are so stupid?