- 37 Posts
- 920 Comments
python@lemmy.worldto
Technology@lemmy.world•Don’t repeat 5G mistakes with 6G, plead mobile operatorsEnglish
4·1 天前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?
His HQ was in Aachen
Oh you mean Aix-la-Chapelle?
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.
python@lemmy.worldto
Technology@lemmy.world•GitHub just switched Copilot to metered billing, and developers are watching months of credits vanish in a single dayEnglish
143·1 天前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.
python@lemmy.worldOPto
CSCareerQuestions@programming.dev•I'm at a crossroads and can't decide whether to take this new job
3·5 天前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
python@lemmy.worldto
Lemmy Shitpost@lemmy.world•"Ragebaited myself by asking my mom to guess what a down payment on a house would be these days (she guessed $8,000)"
11·21 天前what, where?? Around here in Germany like 20-40% seems to be the norm, although if you want a really good rate you’re advised to shoot for 50%. Sure, 0% credits do exist, but those have such predatory rates that they’re basically financial suicide.
We will have food for like 5mins… but it will be pretty tasty.

python@lemmy.worldto
Physics@mander.xyz•Is it possible to trigger a tap on a capacitive touch screen remotely?
3·26 天前So you’re planning on sourcing your own kiosk from somewhere and running data gathering on that? Do I understand that right?
Did you check whether you can just directly address the same API that a kiosk would talk to?
He’s a great case study for “artistic voice”. Like, there’s more than enough people drawing muscular anime boys - just think of all the guys who really like drawing shirtless Goku for some reason - and if you just look at what literally is on the page there isn’t much difference. Yet all you can say about the guys who draw Goku is “man they sure like drawing Goku” while with Laovaan, after looking at like a dozen of his drawings you’d have a 90% accuracy rate at pointing out his boyfriend in a lineup of 10 guys. I love art, the machines will never be able to replicate that kind of magic.
Lmao I immediately went “Wait this art looks like Laovaans style let me look through his page to make sure” but I don’t have Deviant or Instagram so I couldn’t scroll through those and had to give up. Just to be greeted by Laovaans signature on the art when I returned haha
Anyways, here’s his YouTube channel. Really cool guy with some great art advice.






















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 ?.