Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pepoluan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
pepoluan
1y ago
Reminds me of someone's quote: > Reading -- and understanding -- code requires twice the brainpower of writing code. So if you used every bit of your intelligence to write 'clever' code, you won't be able to maintain
32.
▲
by
pepoluan
1y ago
Slicing is totally hintable as well. Change the declaration to: def __getitem__(self, i: int | slice) Though to be honest I am more concerned about that function that accepts a wild variety of objects that seem to be from different domains.
33.
▲
by
pepoluan
1y ago
The important thing about making commits separately and as much self-contained as possible is to allow cherrypicking. Say you're on a development branch and you added something new, that the Project thinks can be and should be added to
34.
▲
by
pepoluan
1y ago
Good at bug hunting? Have you heard about how much AI slop has been submitted as "bug" - but always turn out to be not a bug - to the curl project?
35.
▲
by
pepoluan
1y ago
> Cloudflare clearly wants to move us to a future where only approved browsers are allowed to access the web CloudFlare is in the CDN business. If CloudFlare gatekeeps who can access their CDN, then people will move to a different CDN. B
36.
▲
by
pepoluan
1y ago
If you're on a Residential IP, and your IP gets refreshed, like, every day, it's possible that one of the IP has been flagged. Cannot blame CloudFlare for that; they have an obligation to try protect the users of their CDN.
37.
▲
by
pepoluan
1y ago
It's unfair that you cut off the quote there. Because in the next paragraphs: > And yet. > I have played this game obsessively since it came out. I cannot put it down... This game is incredible, I say to myself as a small grub br
38.
▲
by
pepoluan
1y ago
It ultimately depends on a company's risk appetite. Some companies specify that packages need to be hosted on their internal repository/artifactory, and for these companies, pyx might be a good tool.
39.
▲
by
pepoluan
1y ago
"Hello World" really needs to be retired, and "99 Bottles of Beer" should really be a mandatory example program.
40.
▲
by
pepoluan
1y ago
Sometimes technical debt is kept rather than being fixed because "if we fix this some high-value technologically-challenged clients will no longer be able to use our service." This is actually solvable but will need an "out o
41.
▲
by
pepoluan
1y ago
> LLMs will greatly reduce the amount of people required, mainly seniors Nope. LLM is unable to reason about correctness of code, since they only regurgitate code based on "most likely to come next". Rather, senior programmers
42.
▲
by
pepoluan
2y ago
People hates YAML because doing so makes them look cool and trendy. Just like Python-hating. Even if their 'hate' is misdirected. I'm an experienced SaltStack user. If I found something I need is too complex to be described i
43.
▲
by
pepoluan
2y ago
11.5k in 4h and GitHub does nothing?? That's truly a HUGE red flag there.
44.
▲
by
pepoluan
2y ago
Have you ever seen algorithms written as "pseudo code"? Why do you think they do that? Answer: To make algorithms easier to understand for other humans. Python more closely resemble pseudo-code compared to Ruby. Hence Python is mo
45.
▲
by
pepoluan
2y ago
This is why you should use type hints and some kind of type checking. sorted_list: list = my_list.sort() will raise a red flag with a type checker.
46.
▲
by
pepoluan
3y ago
Will using HTMX save a lot?
47.
▲
by
pepoluan
3y ago
As long as it is now deprecated then it's no longer ironic.
48.
▲
by
pepoluan
3y ago
The problem with Unix Epoch is that it began in 1970. There are applications where you need dates before 1970 and that starts to get hairy.
49.
▲
by
pepoluan
3y ago
PyCharm professional understands Django natively. Maybe try that? PyCharm also has its own type-checker that's a lot less fussy than mypy.
50.
▲
by
pepoluan
3y ago
Well the guys at astral has no plans in the near future to create a static type checker. Ruff is great, though. I now stop using flake8+black+isort and have gone all-in with Ruff.
51.
▲
by
pepoluan
3y ago
Use lots of typing.Protocol and you get all the goodness of duck-typing.
52.
▲
by
pepoluan
3y ago
I maintain aiosmtpd using PyCharm and... That's it. Playing around with Ruff nowadays. mypy was proposed early during aiosmtpd development but we decided it's not worth the headache.
53.
▲
by
pepoluan
3y ago
I just use the built-in one in PyCharm. It serves my need, which is to ensure I haven't done mistakes in specifying parameters to functions. I have no desire making Python to be statically-typed.
54.
▲
by
pepoluan
3y ago
And is there any guarantee that 20 years later a similar weakness of WireGuard will not be found?
55.
▲
by
pepoluan
3y ago
On the other hand, if the WireGuard implementation has a vulnerability, the attacker does not need to attack SSH at all and simply punch through WireGuard to have kernel-level access to the system. It's not defense-in-depth; it's
56.
▲
by
pepoluan
4y ago
Ahh... in a sense, that's like Hype-Driven Development, where everything new becomes the solution for everything... https://blog.daftcode.pl/hype-driven-development-3469fc2e9b2...
57.
▲
by
pepoluan
5y ago
I think the book was returned anonymously because the last borrower was afraid they will be hit by an astronomical late fee...
58.
▲
by
pepoluan
5y ago
I love how the Xoshiro PRNG Family is replacing Mersenne Twister more and more.
59.
▲
by
pepoluan
5y ago
"state diagrams"? Did you mean "syntax diagrams"?
60.
▲
by
pepoluan
5y ago
It's Good Enough™ for interesting 3D gameplay that doesn't need photorealism. Seriously, too many games nowadays focus on just the "visual wow" with millions of vertex + raytracing, they fall flat in terms of gameplay.
More ›