Earlier quoted context omitted.
Found it: https://i.redd.it/lmrf72ko0ro41.png
It's probably based on some other meme I'm not familiar with but I really love how this borders on the absurd.
New Grad vs. Senior Dev
301–310 of 392 posts
Re: New Grad vs. Senior Dev
#302In real life, you will always start with simple working implementation and go with it. Then if things are slow, you profile your code with a good profiler while running for some kind of real life scenario and spot the slow parts (also keep in mind that profiling may affect the program's behaviour). After that you may want to consider alternatives with less asymptotic complexity iff that's the part causing slowness. O…
Although I mostly agree, there’s certain types of simple, fundamental performance considerations you want to take when writing code the first time, otherwise you’re just needlessly dealing with tones of performance issues in prod. Like make sure your DB queries are well covered by indexes, if you’re repeatedly looking up items from a list, turn it into a map or set first, in FE code try to keep re-renders to areas of…
Right, it's a balance good developers know how to tread. Obviously if you can use a set instead of a list and it's one line change, go for it. But as the meme in OPs post, if you're gonna USE SEGMENT TREES and all, then it better be worth the amount of complexity and time you're putting into it.
Part of what makes a good engineer is being able to quickly tell where it's worth optimizing and where it isn't. Or as the meme says, when nested loop goes BRRRRRR.
Re: New Grad vs. Senior Dev
#303Earlier quoted context omitted.
Found it: https://i.redd.it/lmrf72ko0ro41.png
It's probably based on some other meme I'm not familiar with but I really love how this borders on the absurd.
Re: New Grad vs. Senior Dev
#304 abcdefghijklmnopqrstuvwxyz
If the 26th char isn't z, jump along 26 chars! (More complex, and more cache misses, if z is repeated in the search string).Re: New Grad vs. Senior Dev
#305I'm the senior dev on my team, and whenever a new dev joined my team they would look at the codebase and go "ew, python2? Just use python3." That gave me a chance to explain the testing and refactoring cost that would come with changing python versions, and how the benefits to users would be almost zero. And then at some point one of the new juniors said, "hey, there's a lot of filesystem performance improvements and…
How does this benefit the user again? Could the junior have been working on that spa for marketing? That's one months salary..
Re: New Grad vs. Senior Dev
#306Earlier quoted context omitted.
With microservices, you lose the ability to use database transactions across services/tables. Later on, when people realize this, it's too late. It's priceless to see their expressions when senior mgmt. and business owners finally find out.
Could you elaborate what you mean by transactions?
Re: New Grad vs. Senior Dev
#307Earlier quoted context omitted.
Although I mostly agree, there’s certain types of simple, fundamental performance considerations you want to take when writing code the first time, otherwise you’re just needlessly dealing with tones of performance issues in prod. Like make sure your DB queries are well covered by indexes, if you’re repeatedly looking up items from a list, turn it into a map or set first, in FE code try to keep re-renders to areas of…
> Correctness and simplicity are almost always things you want to focus on over performance Right, it's a balance good developers know how to tread. Obviously if you can use a set instead of a list and it's one line change, go for it. But as the meme in OPs post, if you're gonna USE SEGMENT TREES and all, then it better be worth the amount of complexity and time you're putting into it. Part of what makes a good engin…
Re: New Grad vs. Senior Dev
#308Earlier quoted context omitted.
I don't understand the hate for microservices on hn. I have found microservices are a great way to extend monoliths developed with legacy frameworks. There are so many pros with the cons easily avoidable with the right tooling / processes.
HN can be a very contrarian community when it comes to popular trends or common practices in the tech industry.
Re: New Grad vs. Senior Dev
#309Earlier quoted context omitted.
The question had 2 goals: 1) Do you think about cache at all or is it just something you heard mentioned as important that one time? 2) It's a good lead-in to discussing the effects of cache in algorithms. How that conversation goes helps me to understand how that person thinks and discusses complex problems. A good answer would be "I'm not sure, but probably way, way slower because linked list can point all over mem…
Question... What kind of software do you mainly work on? I'm guessing it's not CRUD apps.