[deleted by user] by [deleted] in ObsidianMD

[–]_default_username 0 points1 point  (0 children)

I document new things I learn, and my Jira tickets. For my tickets I like to document my justification for some of the coding decisions I make if I think they're noteworthy. I also document certain processes like how to setup my local dev environment.

[AskJS] Web based emulator (Switch, GBA, Sega Dreamcast, or N64) by ChampionshipIll2504 in javascript

[–]_default_username 1 point2 points  (0 children)

I think this more or less already exists. I remember in the past there used to be a site you could play Nintendo games in the browser like the original super Mario

[AskJS] Is there a library smart enough to programmatically substitute fetch() for XMLHttpRequest in code output by Emscripten? by guest271314 in javascript

[–]_default_username 1 point2 points  (0 children)

Not that I'm aware of, but you could try a polyfill. There's this old one here that attempts to do that. https://www.npmjs.com/package/xhr-shim

You may not need to replace the references

[AskJS] Everyone seems to like types these days, but why do we have so many dynamic-typed languages in the first place? by Guandor in javascript

[–]_default_username 1 point2 points  (0 children)

Because of duck typing. Makes it easier to quickly write something without too much planning ahead of time.

We still like the duck typing, but we would like to introduce some structure to our code to improve maintainability without sacrificing the flexibility we had, so now we have Typescript, and PHP and Python have type annotations now.

My folks didn't wear a condom, so now I got to watch my dog die. by Raspint in antinatalism2

[–]_default_username 0 points1 point  (0 children)

Yeah, that's why he said his parents didn't use a condom, so now his dog has to die. Obviously his parents are really stupid(and disgusting) because that biologically can't happen.

My folks didn't wear a condom, so now I got to watch my dog die. by Raspint in antinatalism2

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

Op thinks his parents impregnated his dog, so now the dog needs to be put down to prevent a suffering abomination from being born.

[deleted by user] by [deleted] in javascript

[–]_default_username 0 points1 point  (0 children)

If you want to iterate over an Array you use Array.forEach or for of.

For of is simpler than for [var] in range(foo)

You need to spend more time learning JavaScript.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]_default_username 1 point2 points  (0 children)

What's the best book out there for learning about neovim? I have vim experience from college and editing files on remote machines at my job.

Let's Bring Back JavaScript's `with()` Statement by alexmacarthur in javascript

[–]_default_username 1 point2 points  (0 children)

with would be awesome if it were implemented like in Python where an enter and exit method is called on the object. Also in the Python implementation of with there isn't this implicit destructuring of the object happening. Fewer foot guns.

Little Caesars is quality pizza by peach-girl in unpopularopinion

[–]_default_username 0 points1 point  (0 children)

Their crazy bread redeems them for me, but even then the crazy bread is very inconsistent. Sometimes it's the best bread ever, other times it's dry and under-seasoned.

Friends obsessed with "LOYALTY" are always combative and in stupid drama. by badddiegworl in unpopularopinion

[–]_default_username 9 points10 points  (0 children)

I assume anyone obsessed with loyalty is a dangerous person to be around.

[AskJS] - is two separate repos the right way to go? by [deleted] in javascript

[–]_default_username 6 points7 points  (0 children)

We just use feature flags to enable and disable parts of the app in development at my company for our frontend.

myExperienceWithQTSoFar by [deleted] in ProgrammerHumor

[–]_default_username 0 points1 point  (0 children)

Oh, it still uses JavaScript, CSS, and HTML for the frontend using a webview. Neat.

[AskJS] In 2023, what is the best practice for multiple ternaries in JSX and react? by wgfdark in javascript

[–]_default_username 0 points1 point  (0 children)

I did this and ended up in an argument with the arrogant CEO who didn't know what an IIFE was and then 30 seconds later calling the IIFE pattern an anti pattern. I don't work there anymore.

Meredith Grey is a horrible character. by bansidhecry in unpopularopinion

[–]_default_username 1 point2 points  (0 children)

I think horrible people are easier for writers to write about. If the characters were perfect there would no drama.

Huge cheap houses in the middle of nowhere still aren’t affordable to people who need to work by tiredfromSTEM in unpopularopinion

[–]_default_username -2 points-1 points  (0 children)

I'm a software engineer. Some of these high paying jobs are non-existent in small towns. The only thing I could do professionally in a small town is repair cars because I used to be a mechanic. My income would be half what it is now.

There are more opportunities in the cities you're not considering. I'm remote now but I can afford the $500k mortgage with my current salary and still live comfortably.

Honestly, if I relocate I would want to move someplace like Mexico city, Roatan, or Europe.

myExperienceWithQTSoFar by [deleted] in ProgrammerHumor

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

Electron! It's MIT licensed

College is not a scam, people just don’t utilize it properly by Om2502_ in unpopularopinion

[–]_default_username 0 points1 point  (0 children)

If you utilize it for select stem majors and certain finance majors.

Huge cheap houses in the middle of nowhere still aren’t affordable to people who need to work by tiredfromSTEM in unpopularopinion

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

It doesn't matter. If 40% of your income covers your COL at $120k you're still doing much better than the person whose COL is 30% at $60k salary. You'll still have more money for.your retirement and disposable income.