This is a weekly roundup of awesome DEV comments that you may have missed. You are welcome and encouraged to boost posts and comments yourself using the #bestofdev tag.
What's one thing you wish you knew before you started programming? The whole thread is worth enjoying, but @listnux
had a top comment with this reply:
That working as a programmer/coder/developer isn't nearly as fun as coding for hobby. Actual work is tedious, you often have to meet requirements you don't like, you often have to follow practices you consider bad, cause it's how the company wants it and that, if you cannot find enough free time and motivation, you might end up completely burned out.
This was an interesting question with a number of varied perspectives: As a Software Engineer, do you prefer to work at start-ups or outsourcing agencies or big companies? @hamishdickson
offered a great response:
I love startups - they (should) have one common goal that everyone is working towards. A great startup has a varied mix of people from different backgrounds and experiences. You're expected to adapt to the unexpected and get involved in everything
Bigger corps (I'm at one now) are less fun, you may earn more but are generally less productive, pigeon holed into the area of tech you were hired for and the experience is much less fun for me. You also spend a lot of time doing things which aren't really productive: constant meetings, appraisals, meetings and jira. Also meetings.
Spinning this on its head a bit: I really like to work for tech companies. If it's not a tech company then you're just seen as "the person I go to when the printer is broken"
😆 I hereby challenge you to a programming poetry smackdown. . This was an awesome submission from @pitweetie
There once was a curious person,
Who wanted learn of recursion.
They searched Wikipedia,
It couldn't be easier.
For recursion, please see 'recursion'.
I don't know if I'm interpreting "movement" correctly, but I remember when NoSQL was super-hyped, then we realized that good ol' relational databases were still the best for most of the tasks.
provides a warning about
DO NOT USE
It splits the String on every UTF-16 codepoint, which ends up splitting single glyphs into multiple ones if they're outside the BMP. Combining characters and some Emoji will be split into two (and maybe more in the future) Strings, which will yield garbled text when manipulated without care. Combining characters might be applied to the wrong character when the resulting Array is reversed, and then joined back together:
't\u032Aest' "t̪est" 't\u032Aest'.split('').reverse().join('') "tse̪t"
If you want to split a String into proper Unicode glyphs, use the spread operator (
Array.from() (which takes a mapping function as the second argument, which is used as the Array is constructed, it's a good way to optimize your code).
See you next week for more great comments ✌