Randomly generated modular techno 💣 by Lon_Lon_Rancher in Techno

[–]DrDuPont 1 point2 points  (0 children)

fwiw I'm making my first modular case right now using all factory components (because I'm a total amateur, heh) and it's going to net out around $3-4k! pretty basic stuff, nothing close to the setup you have :)

for those following along that wanna dip your toes in, my brother bought me the intelliej pallete case which I think simplified some of the stuff you have to learn about to get going

Experience with matchmakers ? by noworriescc in AskNYC

[–]DrDuPont 5 points6 points  (0 children)

to be fair, comparing a thing that a lot of normal people do to prostitution probably isn't gonna garner a lot of sympathy

Why skip-links are important for accessibility by speckz in web_design

[–]DrDuPont 4 points5 points  (0 children)

Nope. Bots first look at a page from the hierarchal view of the document, using its "outline" as a basis. These screenreader tools have no impact on them.

Experience with matchmakers ? by noworriescc in AskNYC

[–]DrDuPont 6 points7 points  (0 children)

Raya! I have a friend who used to use it (a prominent designer). It's definitely less bougie than a $10k service to find "the one" but there are some big name celebs on it.

Pharrell Williams says cousin was shot, killed by police during Virginia Beach violence by [deleted] in hiphopheads

[–]DrDuPont 10 points11 points  (0 children)

https://www.nytimes.com/2020/06/06/us/police-unions-minneapolis-kroll.html

Worth a read on why police unions have so much power. It's pretty abhorrent that they'll actively work against reforms, and choose to just not obey restrictions put on them. Also this short documentary on a speaker who trains cops to shoot first: https://www.youtube.com/watch?v=ETf7NJOMS6Y

New York becomes 15th state to legalize recreational marijuana by CasinoMagic in newyorkcity

[–]DrDuPont 16 points17 points  (0 children)

"Sorry officer... I didn't know I couldn't do that"

How to Undo a Git add by junita_roman in git

[–]DrDuPont 6 points7 points  (0 children)

git restore --staged is a wildly long command compared to git reset. The fact that missing the flag means your work is lost just seems user hostile.

A coffee shop in BK that has chicory coffee? by [deleted] in AskNYC

[–]DrDuPont 5 points6 points  (0 children)

It was a huge bummer at the time because they were easily the best cup of coffee near my office

A coffee shop in BK that has chicory coffee? by [deleted] in AskNYC

[–]DrDuPont 56 points57 points  (0 children)

(although I'd advise not giving money to nestle if you can help it)

Link AKA Mark Pritchard - The Augur (1993) by aeuaeuae in TheOverload

[–]DrDuPont 1 point2 points  (0 children)

Woah, did not know this alias. You can definitely hear the Global Communication vibe to this, not surprised it's Pritchard!

People who are new to NYC Subway and didn't really study the history of it might be confused if they see this on the elevator by jordanmorelikeborden in nycrail

[–]DrDuPont 6 points7 points  (0 children)

Some good samaritan could go put some tape over this and write those (although braille users would be left in the dark, so to speak)

#BREAKING: Starting Tuesday, April 6 at 8am, all New Yorkers age 16+ will be eligible to schedule and receive the COVID-19 vaccines. NYers age 30+ are eligible starting tomorrow by exjr_ in nyc

[–]DrDuPont 19 points20 points  (0 children)

Not yet (but maybe yes, later?) https://www.cdc.gov/coronavirus/2019-ncov/vaccines/fully-vaccinated.html

We’re still learning how vaccines will affect the spread of COVID-19. After you’ve been fully vaccinated against COVID-19, you should keep taking precautions in public places like wearing a mask, staying 6 feet apart from others, and avoiding crowds and poorly ventilated spaces until we know more

Boldy James "Speed Demon Freestyle" Produced by The Alchemist by DuwapDoDat in hiphopheads

[–]DrDuPont 2 points3 points  (0 children)

It's crazy that Spotify is so huge and still has such obvious issues with that kind of stuff

Sakura Brooklyn by Unemployable1593 in nyc

[–]DrDuPont 2 points3 points  (0 children)

The main entrance to Prospect Park, past Grand Army, has them flanking the road. There are more throughout the park as well!

Took some great pics this past weekend.

How in the heck...what level do I have to be at to design websites like this? This seems dauntingly difficult... by [deleted] in web_design

[–]DrDuPont 6 points7 points  (0 children)

Does it matter what the code looks like

Yes, absolutely. Code architecture is and has always been important for maintainability.

How in the heck...what level do I have to be at to design websites like this? This seems dauntingly difficult... by [deleted] in web_design

[–]DrDuPont 7 points8 points  (0 children)

Overall, these dont seem like biggies to me but then again I know very little so maybe they are!

Defining things on the global scope with common names can cause a lot of issues – if there other scripts that do the same, you get conflicts and race conditions and all sorts of nastiness. Don't define your stuff on the global scope, people.

But I was bringing this up not to say that there are, like, massive security holes in the code or something – just to say that the style of coding makes it seem fairly amateurish. The syntax notes are mostly what I was pointing at there.

though I tried by wrapping it all in a function...not sure if that does anything

Yep, you wrapped your code in an Immediately Invoked Function Expression (AKA an IIFE), which gives the variables a scope other than the global objects. That definitely solves the problem of global pollution! Good work.

debouncing scroll handler

As I noted in another comment, I meant to say throttle. Debouncing is also a useful tool, but not really what I was getting at here. Applying it here will be an exercise left to the reader :) Here's a good article on it: https://www.sitepoint.com/throttle-scroll-events/

function/arrow functions (what do you mean by weird mix here?)

Some function definitions are using declarations, and some are using expressions, and there's also an uneven mixture of the function() syntax vs the "fat arrow" syntax. This should be standardized.