I really hope this is hyperbole, but you should never use bubble sort. I can't think of a single legitimate reason you'd want to use it. Insertion sort, is a good O(n^2) sort to know.
Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
31–40 of 83 posts
Re: Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
#32An observation: a lot of these---especially 'soft skills'---can't be properly learned earlier. They're a side effect of experience, and the 10 years doing the job is the only way to properly get them. The things I most often hear from potential employers when we ask what we should focus on more in teaching them are "soft skills" and "troubleshooting". My response is now to ask which of the long list of technical skil…
Re: Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
#33> “ Don’t like your new boss? Just quit. Enough people do it, and their boss will fix it. You don’t like your company’s policies around privacy, diversity, inclusion, human rights? Quit.” This is psycho advice. It ranks up there with the crazy myths about just being able to instantly get new software jobs (when the actual time of job searches is usually longer than 6 months, despite the tone deaf wave of gainsaying c…
Well, everyone I know who's any good as a developer can just waltz into a new job on Thursday after being fired on Tuesday.
/s, if it weren't obvious, but I've read enough straight-faced comments of this type on Hackernews.
Re: Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
#34> “ Don’t like your new boss? Just quit. Enough people do it, and their boss will fix it. You don’t like your company’s policies around privacy, diversity, inclusion, human rights? Quit.” This is psycho advice. It ranks up there with the crazy myths about just being able to instantly get new software jobs (when the actual time of job searches is usually longer than 6 months, despite the tone deaf wave of gainsaying c…
Not all advice is literal.
Also, not everyone’s goal is to foster organizational change some are trying to help themselves first.
Re: Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
#35Earlier quoted context omitted.
I forget what I don't use. Should I rememorize those things every 6 months?
99% of the data structure decisions I make at work are whether I should use a vector, a tree, a hashmap, or (very rarely) a list. the standard library implementation of whatever I choose is almost always sufficient. I wouldn't expect the average programmer to be able to implement all of these on the spot, but if you don't use them enough to understand the basic trade-offs, I have to wonder wtf you are doing all day?
Re: Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
#36Earlier quoted context omitted.
As someone with a family, my preference is that I can work from home to be around my family more. I feel this is more valuable to them than some more money in our savings account but that’s just me. To each their own!
Had a colleague die a few years ago. He'd lost some project work, and let his life insurance lapse. Had a heart attack just a few weeks later, and left a wife and 3 kids with very little. He worked from home and spent time with them, but had hit a point where money was a problem. The story sticks with me because he'd contacted me just a couple months before he died asking if I had any work/referrals, and I had nothin…
Re: Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
#37An observation: a lot of these---especially 'soft skills'---can't be properly learned earlier. They're a side effect of experience, and the 10 years doing the job is the only way to properly get them. The things I most often hear from potential employers when we ask what we should focus on more in teaching them are "soft skills" and "troubleshooting". My response is now to ask which of the long list of technical skil…
In that respect I've learned a lot more from projects that have gone off the rails to some degree than projects where everything went according to plan.
In an ideal world you have the opportunity to give each person on the team the right amount of risk with enough of a safety net so that if things really go sideways the team has their back. Finding the balance with the rest of the project requirements, business inputs and other pieces is where it gets interesting.
Re: Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
#38Too often, the answer I give when asked "Could the software be made to do X?" is "Yes, it could, but no, it should not."
The exported data is in CSV. Excel can import it. Yes, I could import an Office library and write XLSX files natively, but while the person making the request screwed up by making the wrong selection after marking up the data with colors and saving it as a CSV, dropping those features, the right thing to do is not screw that up, not to add complexity to the software.
Re: Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
#39Googling how to bubble sort seems a bit extreme. I'm not much for Cracking the Code Interview type questions but this would certainly be a red flag.
It might be surprising to the hackernews crew but 98% of software jobs have nothing in common with leetcode problems. Most people are writing Java, c#, JavaScript etc and using the built in data structures and doing list.Sort() or something similar.
Re: Things I Wish I’d Learned Sooner After Being a Developer for 10 Years
#40I've always been a fan of 'pi' shaped skillset where you're deep in 2-ish+ areas rather than one core skill. It also means that you don't become known for just one singular thing. This becomes even better when the your deep areas complement each other and you'll find the sum greater than the parts.