Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jpc0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
721.
▲
by
jpc0
3y ago
Yep, also pension plans going away and the fact those same employees can even get that substantial pay raise isn't the problem at all. Pay employees well, give them a dream to catch and make sure they won't die miserable and would
722.
▲
by
jpc0
3y ago
In the world of amazing fast vpn solutions why is your RDP port open to the internet?
723.
▲
by
jpc0
3y ago
While discussing code review, howabout shooting whoever wrote that comment. Why is there an assert? Python case a cast function if you really wanted to force the typechecker to see a_thing as Thing but (and I'm sure this is the point y
724.
▲
by
jpc0
3y ago
I would argue programs are impossible to prove correct, I would speculate it is related to the halting problem. That doesn't mean that in general the subsections of it related to any specific court case isn't correct. Unfortunatel
725.
▲
by
jpc0
3y ago
I would hope so but I don't think that is the case, there is a portion of bugs, including security vulnerabilities that are actually hardware related but has a workaround in software. That and no matter how hard you try there will alwa
726.
▲
by
jpc0
3y ago
If bugs were easy to find and solve there wouldn't be an entire highly paid industry to do it. Add to that malicious actors actively trying to work against systems (bank/post office/medical system etc) and it becomes pretty h
727.
▲
by
jpc0
3y ago
You will likely find though that someone will say "thanks for the work you've helped us with" I find the blog post a little in bad taste, but sometimes you need to stir things to get meaningful change. How many other first ti
728.
▲
by
jpc0
3y ago
You miss the part where this was a bug that was reported 6 years prior?
729.
▲
by
jpc0
3y ago
i just want to say thanks for pointing this out. New found possible love, stereoscopic photography. Honestly the stereoscopic effect is absolutely beautiful, even more so that each individual photo
730.
▲
by
jpc0
3y ago
This entire function is clearly a factory for a boxed pizza with toppings which is baked. I'd argue the entire box.Close() method is slideware and wouldn't exist since it likely is just a return true. You can just as easily just s
731.
▲
by
jpc0
3y ago
YAGNI Refactor when those things are needed, right now the cooking process is stick it in a warm over for x minutes. What are you testing there? The oven was preheated? Put in an assert, that doesn't need a test. That it stayed in for
732.
▲
by
jpc0
3y ago
I feel like there a happy medium between the two, the left can easily be made more simple by factoring out one or two functions however the right went too far. The prepare and addtoppings functions should be one function, prepare effectivel
733.
▲
by
jpc0
3y ago
Here is an idea for a unit test for this code. Pass in an order, assert the pizza that comes out is correct. The entire function is a unit which can fit on my phone screen and has no external dependencies other than possibly oven, which was
734.
▲
by
jpc0
3y ago
I blame SAML and any other federated login being an "enterprise only" feature on most platforms. So users get used to sharing passwords between multiple accounts and no centralised authority for login. This causes the "hey wh
735.
▲
by
jpc0
3y ago
On linux... I mean if I found something called free download manager on a technologically challenged family member's PC I would just assume its malware to start with.
736.
▲
by
jpc0
3y ago
Is it "Here's a manual and a pile of tools, follow the instructions" hard? Most maintenance on vehicles is exactly that. The smart fridge that has a buffer overflow leading to RCE cannot be fixed quite a easily as as replacin
737.
▲
by
jpc0
3y ago
A competent technician with access to a workshop can make even 80 year old vehicles work. That is long past the service life of that vehicle but it can still be done, an iteration of the same technology is likely still in use today though i
738.
▲
by
jpc0
3y ago
I too can write python code the achieves the same end goal and is quicker than C code. Doesn't mean it did the same amount if work or even uses the same algorithms and data structures but it did achieve the same end goal. Unfortunately
739.
▲
by
jpc0
3y ago
If you have enough arguments that the signature becomes obscure to read you need a dataclass to pass into the function instead. I would rather: @dataclass(frozen=True, slots=True) class VarThings: n: int .
740.
▲
by
jpc0
3y ago
Video delivered in real time over an encrypted connection, this is a double whammy. You need to both decrypt and decode all at above the framerate of the video, doubt that will be doable on any older hardware, unless ssid hardware has dedic
741.
▲
by
jpc0
3y ago
I would hazard a guess that storing tapes takes up significantly less physical space than hard drives. I don't think hard drive based storage and tape bases storage have quite the same use case.
742.
▲
by
jpc0
3y ago
I would love to see accident statistics that supports that claim. Last time I looked at it small bikes, generally used by delivery drivers to be fair, vastly overshadowed any other motorcycle accidents. On the same note death rates per vehi
743.
▲
by
jpc0
3y ago
I agree with the entire premise of the article. They shouldn't be blue and they shouldn't be bright, I do like to have them though.
744.
▲
by
jpc0
3y ago
> Then again, I would prefer there WAS Bluetooth and it broadcasted a notice, and a reflective LCD would be fine too. Why use a simple circuit that is definitely going to work when you can implement a complex software based solution to d
745.
▲
by
jpc0
3y ago
An app with 3 endpoints that makes 12 SQL queries won't need it. An app with 30 endpoints that makes 100s of queries might need it. In this case, it's a matter of not knowing whether you need it or even what iteration of it you ne
746.
▲
by
jpc0
3y ago
> But ORMs are about moving data around, transforming it from rows and columns into meaningful objects in the project's language and data model. I made my point about this but will repeat, I am generally writing validation for this,
747.
▲
by
jpc0
3y ago
I don't know if I agree with ML as the first language to teach students. The syntax is vastly different from most of the "C like" languages out there and any functional style code is miles away from what actually gets execute
748.
▲
by
jpc0
3y ago
> and still be using an enormous amount of automation to deal with the database drivers and moving data between your objects and rows I've found I would generally only need the handling of database drivers and query building since I
749.
▲
by
jpc0
3y ago
> a friend who teaches CS for a major university explained that they're going to teach Python as first language for Computer Science undergraduates starting 2024 I think this is significantly more common than you think it is. Also p
750.
▲
by
jpc0
3y ago
1 Mbps would barely give you a low quality stream to a single user, never mind multiple users. My point wasn't against self hosting your own content either, but rather that this is absolutely not an alternative to YouTube in any way be
More ›