HNHacker News
TopNewBestAskShowJobs

code_runner

1,048 karma · joined February 10, 2022

submissionscomments
code_runner··on What's New in Python 3.11?
If people overuse try/catch, the code is close to impossible to read… but try/catch isn’t meant to be applied liberally throughout the code. Don’t let someone’s misunderstandings and bad code ruin it for you.

Typically you just care to have one or two primary places where you actually care if something has gone wrong.

code_runner··on What's New in Python 3.11?
Things can still panic in go.

Error handling for an API etc usually make the most sense in a central location (some middleware etc) so why would I check that each and every function call was successful.

I do like go, but the error handling is hardly the best thing about it. It’s just different. Neither is wrong.

code_runner··on C#: IEnumerable, yield return, and lazy evaluation
That is such a great book. Read it a while back… I imagine the modern version is every bit as good. I don’t remember it ever getting boring, but if it does, push through! It’s worth it.

Jon Skeet also has a (now old) blog series called edu-linq that basically implements linq just using generator blocks and it really makes you think about stuff like validation of arguments vs actually doing the operation. It’s very interesting. A couple of caveats in there.

code_runner··on Semantle: guess words based on Word2vec similarity scores
I was able to piece together the word, though I was surprised when I was right. Without spoiling the answer, I did sort of walk down the path to the answer in an almost logical way
code_runner··on Semantle: guess words based on Word2vec similarity scores
I really thought there was no hope for me but I started getting closer and got it in 11. Really enjoyed that game!
code_runner··on I disabled WiFi on the new Samsung fridge
Are there any good resources online you can share? Sounds interesting.
code_runner··on Next.js Layouts RFC: Nested routes and layouts, designed for Server Components
When learning next recently I was immediately wondering how to do accomplish certain routing patterns that I had used in a previous project… routing to a specific tab of a modal that pops over a particular page…

Luckily that level of deep linking hasn’t been asked for, but this sounds really promising for adding some flexibility

code_runner··on Ask HN: How deep do you go?
this is what makes all of my side projects so much fun and so educational.

I get caught up in the most ridiculous yak shaving and never make any real progress.... but always have a blast.

code_runner··on Tesla FSD Beta almost causes a head-on collision [video]
very unlikely to be ethical no matter what un-enforceable limits you put on the testers. their concern is legal liability and nothing more.
code_runner··on Tesla FSD Beta almost causes a head-on collision [video]
I imagine this is actually a pretty tough problem to solve.... road marking change dramatically within a few feet sometimes.... most of the residential streets in the historic area I live in have no markings at all but its also an area where markings, composition of road materials etc are subject to change QUICKLY from street to street.
code_runner··on Tesla FSD Beta almost causes a head-on collision [video]
you shouldn't be allowed to operate a vehicle while intoxicated regardless of the technology involved.
code_runner··on Modern JavaScript Tutorial
Used bind a whole bunch in the knockout days and you will still find bind in a lot of todays react docs if I’m not mistaken.
code_runner··on Modern JavaScript Tutorial
Readability and pragmatism always win.
code_runner··on Modern JavaScript Tutorial
This used to be much more common in es5. It’s good to know how they work etc and why they were a necessary evil way back when.
code_runner··on WordPress’ market share is shrinking
The matches my experience. They can manage whatever web of crazy they want in Wordpress… if they need something from the dev side we can play with some plugins until it works.

Sometimes the answer is “oh god we can’t do that”… and that seemed to be ok if we had some alternatives

code_runner··on WordPress’ market share is shrinking
When I found out the landing page at a previous job was Wordpress based I was a little miffed, but in practice it wasn’t that bad to work with for what I needed.

I wasn’t doing the design work etc… but setting up some forwards and other in the weeds things wasn’t really bad at all.

I wouldn’t want to be the sole maintainer, but it’s really not the worst thing I’ve had to work with.

code_runner··on Behold GoldenEye 007 with four screens – dream come true or travesty?
Screen cheating was allowed in my friend group but we might call someone out… no big deal. When LAN parties became a thing it was really the first time I had played a game and not even had the option. Both are fun.
code_runner··on Apple's director of machine learning resigns due to return to office work
Yeah, in that case solely remote works best for sure. Maybe you fly to the office (if there is one) a couple times a year… though still nice for that to be optional
code_runner··on Jeffrey Snower was originally demoted over PowerShell
Imo your flippant answer is bang on
code_runner··on Apple's director of machine learning resigns due to return to office work
Sounds like a lot of cultural issues. My pre-covid job was a very small company but similar stuff.

We hired an in-town workforce and cut the old guard out completely. Worked in person everyday until lockdown but had flexibility as well.

We were all pretty close (10ish people including execs) so remote work was fine and we shut down the office… I’m a much bigger remote work fan now because of how well it went.

The people on the same page will be on the same page whether they’re waking through the park or not. It may be time for the others to move along.

code_runner··on Apple's director of machine learning resigns due to return to office work
I do think this mirrors my office’s original logic for returning but they almost immediately became more flexible.

At one point, returning to the office wasn’t mandatory but “good for our promotions etc”.

When I’m in office few if any people actually give me marching orders… and when they do, I push back, correct them, and continue what I was doing. (We aren’t great at project management and my position luckily allows for this)

code_runner··on Apple's director of machine learning resigns due to return to office work
I agree with both of these hot takes…

I love a hybrid approach because I really enjoy the random conversations that crop up in the office… but my social life is so much improved outside of work in the last year or so that everything about physically being present feels tedious.

I have a coworker I call to talk shop for a few minutes and then bullshit for another 15-20 minutes almost daily when I’m wfh.

I’m very strongly considering asking my boss if my in-office/wfh ratio can switch from 3/2 to “whatever I want”

Better social life makes work feel like work. My drive to get stuff done has gone up, because I’ve gotta get out at a good time.

code_runner··on Show HN: Tetris, but silly
I think goofing around the discovering stuff adds to the fun!
code_runner··on Clairnote: An alternative music notation system
tabulature is really just used for starting out on guitar in my experience and it works because the alternative is SO approachable and SO instrument specific.

lead sheets are solving a whole different problem and almost ALWAYS have the melody in traditional notation in addition to the chords. some lead sheets assume you already know the melody and can transpose to whatever key is relevant.... but still a lead sheet is there to give you hooks in order to aide improvisation.

jazz musicians have not "split off", they have added some chord notation above the traditional stuff.

code_runner··on Clairnote: An alternative music notation system
I get the same feelings whenever somebody comes up with a "better" flavor of SQL that is "more logical" or "more expressive".... I know SQL well, it does what I want, and I think its great. When people "solve problems" with it, they're complaining about things they never tried to understand.

This is a lot like that. I wish I was better at music.... I wish I had more skill etc... but the barrier is not my ability to read music....

a multi-note instrument like guitar/piano is much harder (in my personal experience) than a single note like trumpet/saxophone... and guitar tabulature exists for that reason... but its guitar specific and is probably a bridge for most in the beginning of their learning (not unlike a saxophone fingering chart).... but I don't see general use music notation being revolutionized anytime soon.... mostly because it does not need to be.

code_runner··on Resumes are dangerous?
My biggest takeaway from this article: this is why I deleted all of those projects from github never to be seen again (prior to private repositories).... the projects where I was just having fun for once and learning instead of being stuck in analysis paralysis and trying to think about 85 different OWASP recommendations at once.

My biggest takeaway from the comment section: thank god that there are more reasonable people than I first assumed.

I have an idea for a hobby/fun webapp I could build that maybe one or two people I know might get use from.... and I'm excited just thinking about it because its going to be low stress and a fun learning experience. Thats what my personal github is. I don't put the link on my resume and I don't really have a desire to either.

code_runner··on Twitter set to accept Musk's $43B offer – sources
a lot of this depends on the definition that we have of "follower" and "cool" but I don't disagree.
code_runner··on Convert Twitter SF HQ to homeless shelter since no one shows up anyway? - Elon
I can’t think of a twitter feed that deserves attention on HN less.
code_runner··on I thought I’d have accomplished a lot more today and also before I was 35 (2020)
A few hobbies are fun even before you’re good. Baking can be a lot of fun… start with super detailed recipes and pay attention to the details. Eventually you learn to improvise and pick up little bits and pieces of how the ingredients work together.

Running/exercise is one with so many levels you can only truly compete with yourself to improve (and you’ll feel good).

Music is one that is sooo difficult. You suck for a long time, but can make incremental improvements.

code_runner··on A magical AWS serverless developer experience
Vendor lock-in aside… azure has a very good experience for developing azure functions locally.

As hit and miss as my azure experience has been… azure function core tools, vscode, and azurite were excellent for purely local development.

← PreviousPage 12 of 13Next →