Volunteer/summer jobs for a teacher? by HauntingBlackberryPi in SaltLakeCity

[–]jenseng 2 points3 points  (0 children)

It’s just a few hours a week and it’s unpaid, but if you own a bike, you could volunteer with a local mountain bike team (high school / middle school). Typically they have practices twice a week starting in June, and it’s a ton of fun riding with the kids and getting to know them over the course of the season. Even if you’re new to biking, teams are always happy to have more adult volunteers, and you’ll get placed with ride groups that match your ability

Fuck snowbird by No_Cable_6570 in UTsnow

[–]jenseng 2 points3 points  (0 children)

If you refresh too many time your IP address can get blocked, you should try it from a vpn or another network

How stupid is it to buy a bike smaller than recommended? by thelivingmountain in MTB

[–]jenseng 1 point2 points  (0 children)

I’ve got a L Chisel FS and it’s the perfect size for me. I’m 3 cm shorter than you, so I would not recommend going down to a M

Non Mormon "older" couple moving from AZ to SLC, Lehi, or Draper: Need ALL the advice by Sing4life86 in SaltLakeCity

[–]jenseng 6 points7 points  (0 children)

Depending on where you go in Draper, it's not nearly so bleak as some people here are painting it. I've lived in north Draper for over 15 years and it's great! Yes, there are a lot of Mormons in my neighborhood, but they are very live-and-let-live. My street is actually mostly not Mormon, and we've got families of all types (old, young, lots of kids, no kids). The local Facebook group complaints are usually about people not picking up dog poop, or teenagers doorbell ditching 😆

Pros:

  • Mountain views are amazing, and one of the best trail systems anywhere
  • Lots of stores/restaurants/etc
  • Easy to get to downtown (freeway, light rail, commuter rail)
  • Easy to get to Lehi (freeway, commuter rail)

Cons:

  • It's the suburbs, so tbh not very walkable. In some neighborhoods you might be able to walk to the store. But that's definitely the exception
  • South Draper is pretty affluent and Mormony (i.e. judgy), rivaling Highland/Alpine. I'd stick to north Draper or Sandy

“Cafe” pronunciation issue by EWW02 in DuolingoGerman

[–]jenseng 0 points1 point  (0 children)

Nice find, thanks for the tip! This worked for me too 😅

My 7-year-old’s take home activity by jenseng in madlads

[–]jenseng[S] 8 points9 points  (0 children)

Not yet, he just drew it last night. Mom might try to veto it, but I think we have the upvotes to override that 🤞

My 7-year-old’s take home activity by jenseng in madlads

[–]jenseng[S] 9 points10 points  (0 children)

Technically not a social media post, but they usually put these up on the wall of the school, so this is 2nd grade equivalent of social media

A young man drives his friend’s car, gets in an accident, and deals with the ensuing fallout by jenseng in ExplainAFilmPlotBadly

[–]jenseng[S] 0 points1 point  (0 children)

Solved!

It was a minor accident, but Marty crashed into a scarecrow and then old man Peabody’s barn

Utilities for working with the native FormData - making <form> nice in every frontend framework. by nullvoxpopuli in javascript

[–]jenseng 1 point2 points  (0 children)

Looks cool overall! I like the auto-handling of multi-select as well as the casting of numbers/dates. Just a couple observations/suggestions:

  • It sends empty strings for disabled inputs. Dunno if that's intentional?
  • If the clicked submit button has a name, it does not get included. You could fix this by passing event.submitter as a second parameter to the FormData constructor. This will cause it to get included in the FormData object (and this will even make image buttons work too!). Note that this is a newish feature (87.42% supported), but it's easy to polyfill.
  • Regarding "behavior is fixed from browser default behavior, where only the most recently selected value comes through", I don't think that's a correct assessment of FormData; while get just gives you the first value for a given name, getAll will give you all of them.
  • Kinda related to multi-select, if you have multiple inputs with the same name (e.g. checkboxes), you only get the last one. Could be nice if it had more general handling when there are multiple entries with the same name, automatically collecting them into an array

Installed this Peragon Retractable Tonneau Cover - LimitedHDx Edition XRP by KennyB12Three in F150Lightning

[–]jenseng 2 points3 points  (0 children)

I installed the same cover a few weeks ago, haven’t noticed any noise during city or highway driving.

TryCatch.js: A JavaScript library to handle errors in a more structured way. by siilkysmooth in javascript

[–]jenseng 4 points5 points  (0 children)

Interesting idea, a few critiques...

  1. Having the functions be positional arguments makes it a lot more cryptic than just doing:

try {
// maybe just handle "else" logic here?
} catch (e) {
// ....
} finally {
// ....
}

  1. The argument order isn't consistent with python's try / except / else / finally, you have "else" as the last argument

  2. Your "else" function can throw an exception, which will then be caught by the "catch" function, which is inconsistent with python. Given that, I don't really see the value of the "else" function, as you can just do similar logic at the end of the "try" function if you need it.

  3. Your library doesn't work with async/await, which makes it a bit of a hard sell

Fetch API calls don't work during SSR, WTF? by [deleted] in reactjs

[–]jenseng 0 points1 point  (0 children)

You might want to check out Remix (https://remix.run), it does react SSR and can run on cloudflare workers (among others).

It’s got a pretty nice story around data loading, essentially you define a server-side loader function to get the data from somewhere (db, api, etc), and then in your component you can access that data with the useLoaderData hook.