Hacker Newsnew | past | comments | ask | show | jobs | submit | Doxin's commentslogin

Reduced test cases make it way easier to figure out what the actual bug is. E.g. a real world example is when I tested a "slugify" function with hypothesis. It almost immediately spat out this failing test case:

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaẞ

Boy I sure do wonder what character could possibly be causing issues there. whereas without shrinking it might instead spit out something like

ЁЂЃЄЅІЇЈЉЊЋЌЍЎЏАБВГДẞЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп

Which makes finding the offending character a lot harder.


It's automatic. If you post and the title gets mangled you can go back and edit the title and it won't get re-mangled, but you kinda have to be paying attention and be aware of that.

It's also just sort of generally used as easily spotted value in a hex editor. similar to DEADBEEF, ABADBABE, CAFED00D, and probably a bunch more variations on the concept. CAFEBABE seems especially prolific, getting used for -- among other things -- poison value for memory pools in plan9 and MACH-O universal object files magic number[0]

[0] https://en.wikipedia.org/wiki/Hexspeak


There's playing the game as intended and playing to the rules. People who insist on doing the latter even after being asked not to are infuriating. I've got one friend who got himself permanently uninvited from board game night for these sorts of shenanigans.


Except trams have, as far as I know without exception, specific traffic rules around them. A tram simply does not and cannot stop as quickly as a car (or indeed a bus) can. The reason that that's largely accepted is because the tradeoff is also that a tram can't really make any sudden unexpected motions at all.

If you get hit by a tram it is because you are in a place where you should have known the tram would hit you. The things are on tracks.


I find this also heavily depends on which LLM you're using. I've found chatGPT is completely awful at getting corrected, it'll double down until the cows come home. Meanwhile claude will generally adjust its behavior without too much nagging.


A linear ramp would work, but you can probably get to the end-point quicker if you're not going linearly. Something like

needle_position = needle_position * 0.9 + desired_needle_position * 0.1

is very easy to implement, easier than linear if you ask me, and should give it a nice damped movement. The constants can be tuned to go as quick or as slow as you like of course.


Splitting = and := in python is very intentional though, It makes writing bugs like this impossible:

    if is_logged_in=True:
        allow_access()
I've got... opinions on the way python separates statements and expressions, but there's some real benefits to it too.


Splitting = and := is intentional, but not for the reason you stated. We could have used := for all assignments from the beginning:

    is_logged_in := True
or

    if is_logged_in := True:
I agree that this would require blurring the statement/expression distinction. You can still do that in a weird way, by disguising your assignment as an expression. This is valid:

    (is_logged_in := True)
The reason it was done that way because := was an afterthought, and making it the assignment operator would have introduced a breaking incompatibility. That lead to having 3 different symbols for 2 use cases (assignment and comparison).


except if := was the default then accidentally typing ":=" instead of "==" would be the easy bug to make.

:= was bolted on after of course, and I think that was a mistake, but no one asked me, nor do I expect anyone to ;P


> Leaded solder is easier to work with for personal projects

it really isn't if you use a nice modern lead-free solder. you'll need your iron to be about 20c hotter, but it's not like the early days of lead-free where it'd flow all weird.


I was extremely surprised when, out of solder recently, I just bought some Draper lead free solder from my local Home Depot(!), and it flowed so much better than my previous roll of fancy lead-free solder from a decade ago. Basically indistinguishable from leaded. I was very surprised.


Do you have a brand recommendation ? Leaded solder is unavailable in my country


not really? I have a habit of using the wrongest solder for my projects. The stuff I use currently was formulated for wave soldering, no clue why it comes in spools but it was cheap.

In general the formulation is more important than the brand, and the formulation isn't /that/ important either. If it's lead free, has a rosin core, and comes on a spool, you can probably use it.


A glass fiber pen is my go-to for cleaning groddy pads and pins and the like. Works a treat.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: