We should follow in the footsteps of many tech companies and stop numbering the Gs in favour of tagging on the year they were launched. So next year we wouldn't get 6G, we would get G2027. Sounds much cooler, doesn't it?
Javascript would have no problem with it. Semicolons are already kinda optional in there, and having tons of question marks in your code is also pretty normal. ie:
input?.map(item => !!item?.name ? item : item?.toString() ?? "New Item")
Just means: If the variable named "input" has a function named .map(), which is usually the case if it's an array, you go through that array and transform its elements in the following way:
-
is your element an object that has the property "name" and that property isn't undefined, null or 0? (the "!!" is a double negation that would force undefined, null and 0 to evaluate to false through type coercion)?
-
if yes ( the syntax " ___ ? ___ : ___ " is a shorthand for an if-else statement) then just add that whole item to your output array.
-
if not, try to call the .toString() function on your item. If that works then that's your result, if not then your output is the string "New Item" ( the "??" is called the nullish coalescing operator - if the left side of the ?? evaluates to undefined or null, it takes the right--hand side value instead. The "?." part is called optional chaining and will evaluate to undefined if you try to call a function that doesn't exist on that type)
-
oh yeah, and if input isnt an array to begin with and doesn't have a .map() function? We just do nothing and move on without complaining. JS truly does not give a fuck.
I went to University for Electrical Engineering, switched to Computer Science after a semester and then dropped out after 5 more semesters. I had about half of the required credits after those 5 semesters, so I guess I was on track to graduate after studying for 5 years (which isn't bad considering my University's reputation for being so hard that the town opened a second easier University just for the dropouts, but I was still not very happy and really wanted to do real work)
So I got myself into an apprenticeship program to become a Programmer. There was a special one in my town that got you there in just 1.5 years instead of the 3 years that are the norm for apprenticeships here in Germany (again, University so hard they have an entire sector of special programs for dropouts). Just one day of school per week, the rest is spent at an actual company doing actual work. Finished that one with ease, got hired by the company that I did the apprenticeship with and have been working there for over 3 years by now.
I'm now in the job market for the first time because I want to work for a different company, and I'm seeing that I absolutely did the right thing. Because fresh graduates who only studied but never worked are absolutely flooding the market and no company wants them right now. I had a pretty interesting conversation with a hiring manager for a company I'm considering a few days ago, and they said that most applicants they get are either fresh graduates who are asking for insane salaries without any relevant skills to back it up, notorious job-hoppers who spend like 6 months per company and never get deeper skills and vibe-coders. It's insanely hard to find normal people with relevant hands-on knowledge because those people are staying with their existing companies.
Anyways, what I want to get at is that if you just want to work in a specific field that you're passionate about, there's a chance that you can just go and do that. Ofc I don't know your country's market situation or work system, but I bet as long as it is not something highly regulated like Doctor or Lawyer, there could be genuinely good alternative paths into it. And once you have a job in an industry and prove yourself, your academic success kinda stops mattering.
There's a sack of flesh some of us have that can produce computational power at the cost of a granola bar every few hours. Can't beat the value of that.
I think they're thinking more about properly caring for the cat. Wherever you get them, you still have costs for spaying, vaccination, food, toys, and you need to be prepared for medical emergencies. Over their whole life, a cat will cost much more than a wedding ring. Not considering that cost because the kitten is "free" is just plainly irresponsible.
If you expect the market to collapse, why buy high before the collapse and not after?
Mostly because we think hyper-inflation could absolutely happen. Basically all our saved up cash would have no value in that case, so we'd be back at square one. A house wouldn't just disappear like that (hopefully)
You can offer to take the risk. Accept 50k in cash but demand 25k in shares or later payout. Since you take the risk, that should increase the figure, like 30k or 40k in shares.
Huh, that could actually be a real option I hadn't considered! Thank you for the idea! Imma see what I'd have to do legally and how to contractually set that up, but it could be a good option that both sides would be happy with
No bro! You're prompting it wrong! Just tell it to be fast and not make any mistakes!! This will totally revolutionize software engineering (we want to fire you) in 18 months, I promise!!
I was applying to a job recently, and their online form had a "Upload your documents here" field. Problem was, the input was set to only accept a single file. Well, I wanted to upload two, so I just went into the html and added "multiple" to the input. Which just worked, I even checked the network tab to confirm that both files were submitted.
Haven't heard back from that company yet. It was a web dev position so I hope they appreciate my hijinks 🤞
Or you do document it - just to get called about it every week for the next few years by colleagues who have a similar but not the same problem, which you have to solve for them now. Then you document their problem too so the confuence page grows, which results in even more calls. The "Common Issues when using yarn" page I started like two years ago has about 30 different sections by now 😮💨
Don't forget to zip after peaing
Just tie a string to the bullet and pull it back out after shooting someone with it, duh

All my radishes have now sprouted! I thinned them out last week and had the spare ones on top of some potato salad.
Yesterday I also planted 10 Brokkoli saplings in between the radishes so that the planter isn't empty once the radishes are ready to go (should be in like 1-2 weeks I think?)


oh, you're right lol
The first ?. after input would be more more of a safeguard against input being null/undefined and the .map not existing on it would have to have another ?.