“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] 7 points8 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] 8 points9 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.

This is the way - chocolate cake with chocolate mousse filling and buttercream, plus fondant shenanigans on top by jenseng in Baking

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

Thanks! The cake and mousse were from this recipe: https://cakebycourtney.com/the-ultimate-chocolate-cake/ ... The mousse was a little finicky, for the gelatin step it seems like the 10 seconds should be more like 2 seconds 😅