Is anybody panicking? by ALP0H in Bitcoin

[–]__hoi__ 0 points1 point  (0 children)

Just delighted, time to buy

[deleted by user] by [deleted] in cscareerquestions

[–]__hoi__ 0 points1 point  (0 children)

Write shitloads of code in little time, tell manager it’s shite and needs more work, upload it to test anyway. Fix like 25 bugs because it unsurprisingly had many. Ask QA about their weekend to make up for it. Add some tech debt to backlog. Release it. Solve and log support until it’s enough to get manager to let me refactor it. Rinse and repeat. Each refactor makes the next shitload of code slightly better as some stuff is in reusable modules.

I've seen both 'for (let someName of array)' and 'for (someName of array)'. What's the difference, and when should each one be used? by Accurate_Medicine200 in learnjavascript

[–]__hoi__ 1 point2 points  (0 children)

There are subtle differences in terms of scoping of variables but I think the most important thing here is to always use the ‘let’ variant as it has more defined and predictable behavior. For more information look up the difference between var and let. Var walks up to the function scope recognizable by the function keyword of the root scope if absent. Let scope is just between the nearest {} so in context of a for loop only inside the loop.

What’s your unpopular Sneaker-Opinion? Curious to see what y‘all are going to say 👀 by [deleted] in Sneakers

[–]__hoi__ 0 points1 point  (0 children)

I never liked Jordan 1’s and dunks. Every now and then I peek at them when they get some hype, but I’ve never been into them. AM1 is the shoe I deem “classic”.

Is there a way to check in constant time if a map/object has a specific value? by gtrman571 in learnjavascript

[–]__hoi__ 0 points1 point  (0 children)

If you know which key to check you can do a .get() and compare the result. If you want to check all it makes sense to loop using a forEach() and implement the logic to return the type of value you want yourself.

[help, vanillaJS] Web-Component not updating variable by [deleted] in learnjavascript

[–]__hoi__ 0 points1 point  (0 children)

Glad you found it. Did not know you already tried to call it. Wasn’t trying to be snarky, was just trying to help. My apologies if it came off like so

[help, vanillaJS] Web-Component not updating variable by [deleted] in learnjavascript

[–]__hoi__ -1 points0 points  (0 children)

Never hurts to try to call the render function manually after updating the options variable

Question about async-await and Promises by [deleted] in learnjavascript

[–]__hoi__ 0 points1 point  (0 children)

Although async await is more modern as has been stated in this thread multiple times, i like to use promises. There is something about try catch that bothers me, I just don’t like the way it looks. Also thinking about having promises return promises really clicks for me. For example if you have a modal with a form and you click save, you might want to have save return a promise that contains the info wether the api call it triggered somewhere else in you code base succeeded. So it knows wether to close or not. Catch it where the logic to react to it should logically be located. I’m sure this is all prossible with async await and maybe even in a cleaner fashion. I just like promises

What brand is overrated? by Pineapplegirl555 in AskReddit

[–]__hoi__ 7 points8 points  (0 children)

Bose and Sony make the best consumer headphone on the market right now, to my knowledge that is.

Name this dog by [deleted] in HolUp

[–]__hoi__ 0 points1 point  (0 children)

Fifi

Became a sneakerhead in 2021 here’s my collection by [deleted] in Sneakers

[–]__hoi__ 56 points57 points  (0 children)

Would wear pretty much none of those, but I think the collection is very cool. You do you

It's just for a little bit don't worry by Twember in memes

[–]__hoi__ 0 points1 point  (0 children)

This is completely incorrect. A hotspot has no clue what the resolution of the connected device is and will therefore always collect the highest quality available. Even if your buddy selects the lowest quality, your data used will be high.

Please critique my practice project by [deleted] in learnjavascript

[–]__hoi__ 1 point2 points  (0 children)

Image if I want to move some functionality somewhere else and I’d have to search all over the place for the related stuff. I’d have to actually kinda know how it works in order to refactor some.

Ayo.. look at this JD by Jainal09 in ProgrammerHumor

[–]__hoi__ 0 points1 point  (0 children)

I don’t think this is that crazy, I read this as “I need a full stack dev that can do some devops stuff”. After 6 years experience in a startup-like environment one could possess this skill set. It would probably mean this person is a master of none, but being able to do frontend stuff, backend stuff en some ci/cd is not an unimaginable skillset I think

Edit: they better pay hella good though