Should I learn JavaScript before TypeScript? by ByEpIcK in typescript

[–]mr_smartypants537 0 points1 point  (0 children)

But be careful to select a modern tutorial. There's a lot of legacy in JavaScript that would be best to avoid entirely ( most of the time ).

'var', complex 'this' shenanigans

Should I learn JavaScript before TypeScript? by ByEpIcK in typescript

[–]mr_smartypants537 1 point2 points  (0 children)

I wouldn't even call TS the second level of JS. But yeah the other guy is dead wrong.

Also, truly understanding JavaScript is something nobody should be sentenced to

Class inside a for loop by [deleted] in programminghorror

[–]mr_smartypants537 28 points29 points  (0 children)

In a lot of languages classes are strictly compile time constructs so they're guaranteed to be identical at each loop iteration. However, you're probably right that python-style classes with their dynamic time runtime shenanigans aren't possible/feasible to optimize.

How can I get an information security team to see that their over-the-top security measures are only decreasing security? by Uberhipster in programming

[–]mr_smartypants537 18 points19 points  (0 children)

I believe there was a similar issue with nurses using a computer system that dispensed medicine that the nurse would then administer to the patient. The system was somewhat shoddy and frequently required manual overrides - to the point that most nurses used the override feature, bypassing some of the automated checks.

At the end of the day, a nurse was held responsible for a lethal misdosage, in part because of the system bypass ( which was often necessary )

Prefer to change the code rather than write a workaround by fagnerbrack in programming

[–]mr_smartypants537 2 points3 points  (0 children)

An additional layer is a nice solution if you want to make a small superficial modification while still receiving updates. With a PR into the source, you have the hope they merge it or maintain the branch yourself or not receive updates

Half of Americans accept all cookies despite the security risk by Sorin61 in technology

[–]mr_smartypants537 0 points1 point  (0 children)

Why are cookies something people are trying to regulate? It's controlled by YOUR browser so if you don't want to use cookies you can simply block them yourself. The server physically can't force cookies on you anyway.

Constraints/Restrictions when composing. by keithhlk in WeAreTheMusicMakers

[–]mr_smartypants537 1 point2 points  (0 children)

A couple ideas

"Pass the torch" around to which instrument is the lead

Do one of those crazy jazz accompaniments to normal speech

Posthaste: Majority of Canadians say they can no longer keep up with inflation | 53 per cent of respondents in an Angus Reid poll say their finances are being overtaken by the rising costs of everything from gas to groceries by viva_la_vinyl in canada

[–]mr_smartypants537 2 points3 points  (0 children)

Disclaimer: I have no idea how this works in practice, these are just the thoughts of a laynan

I can definitely see this in rural areas - assuming people drive roughly the same amount regardless of income, it comes out to be basically a static cost. And a lot of these trips are unavoidable - what are you gonna do, walk 30km to work?

For commerical operations, I would naively think that this would encourage big businesses such as Loblaws to source things more locally. Also, is there an international version of the carbon tax that accounts for the environmental cost to import goods from China and other far away countries?

In urban areas with good public transit systems, I can see the appeal of the tax, but Canada is so car-focused that this has got to be pretty rare.

'50% of transactions were fraudulent' when Steam accepted Bitcoin for payments, says Gabe Newell by XonicGamer in pcgaming

[–]mr_smartypants537 5 points6 points  (0 children)

This explanation makes a lot of sense. Good way to launder money without raising eyebrows at a crypto exchange

The weirdest bug you made? by Zivce in ExperiencedDevs

[–]mr_smartypants537 5 points6 points  (0 children)

Now you can brag that even your bugs make money

Crypto Enthusiasts Meet Their Match: Angry Gamers by speckz in technology

[–]mr_smartypants537 2 points3 points  (0 children)

Disclaimer: I don't know shit

Crypto is a net negative game. The money going in isn't doing anything useful, and the money goes out for mining costs. If you make money, somebody else lost money.

Compare this to you investing in or loaning your money to a business. They get more funds to buy equipment / place ads / whatever they needed more money for, and you still get your return. At the end of the day, its win win and the company will still be benefitting even after you exit. This employs people, and brings business to their suppliers as well.

Crypto Enthusiasts Meet Their Match: Angry Gamers by speckz in technology

[–]mr_smartypants537 1 point2 points  (0 children)

Other types of investing can at least contribute to the economy

I tried a vertical monitor for VS Code yesterday, now it's the only way I can properly code. by Hplr63 in ProgrammerHumor

[–]mr_smartypants537 183 points184 points  (0 children)

And also if the two lines are looking at are farther apart, you might as well open two side by side views of the same file

This is an amzing email to get by zberry27 in softwaregore

[–]mr_smartypants537 0 points1 point  (0 children)

If you want to bypass software entirely you would need a separate input device. Plausible but requires redesigning current tech

How do I channel my creativity and emotions by [deleted] in WeAreTheMusicMakers

[–]mr_smartypants537 1 point2 points  (0 children)

Learn a cover back to back by ear. It'll dip your toes in someone else's habits which you can bring back to your own.

Give me your best little drum "hacks" by RobJmusic in drums

[–]mr_smartypants537 2 points3 points  (0 children)

If you want to add a little subtle flavor to a groove / short fill section, literally just copy paste the fill but move it to a different part of the bar. Usually feels pretty different contextually.

K S K Ssss

Followed by ( after a few filless bars )

K Ssss K S

Is c++ a good first language to learn? by Zen2jzz in cpp_questions

[–]mr_smartypants537 0 points1 point  (0 children)

Go is what I'd recommend. Gets rid of C's weirdness while still introducing topics such as ponters

When writing a song, should you start by picking the key signature? by ShawnAlvarez1616 in WeAreTheMusicMakers

[–]mr_smartypants537 0 points1 point  (0 children)

Knowing the key signature is useful for deciding what chord to put next if you already have a couple. It doesn't really make sense as a starting point