HNHacker News
TopNewBestAskShowJobs

pdenton

764 karma · joined October 4, 2020

submissionscomments
pdenton··on Modern PHP Cheat Sheet
Having used PHP since version 4 (20 years ago), I can say with confidence that its had its peak. Everything new added since 7.4 is just fluff or bloat. Fixing long standing bugs and performance improvements is fine, of course. But everything new they introduce adds to the pile of warts that's PHP. I highly regard those that try to improve it, but with the current direction it'll remain the colloquial example of how not to design a programming language.
pdenton··on Overengineering can kill a product
Oh boy, does this ring a bell with me. I've already written 5575LOC according to cloc (and threw away 7449LOC in the process) and I'm far from finished writing the code to email the data from a contact form in PHP. But it ticks all the boxes!

It's all OOP

SOLID principles

99,6713% typed (according to psalm)

Purposely written to be unit-testable in PHPUnit strict mode (but no actual harness yet)

...I'll show myself out

pdenton··on RetroBrew Computers
Nice wiki, though the font is just terrible. Had to change it to Helvetica to make it readable.
pdenton··on Error 404 (Not Found)
I knew Google would one day take control of the web, just thought they'd have a more clever way of doing it.
pdenton··on Sorry Safari Team
They made it look like an accident
pdenton··on 0xA000 Font Family – A tile mastered font-family
Here you go... https://sciops.net/downloads/vga/
pdenton··on Nasally-Injected Brain Drug Can Help Treat Depression in 20 Minutes
In other news, a nasally-injected brain drug can help you write code much quicker all night without getting tired.

Just don't do it, kids. Amphetamines can mess with you, I've lost a friend who couldn't stop using it

pdenton··on A guide to designing accessible focus indicators
I think a roving tabindex would be fine in this case. The arrow keys and tab/shift+tab change the tabindex so you always have elements with tabindex="-1" and tabindex="0".

https://www.w3.org/TR/wai-aria-practices-1.1/#kbd_roving_tab...

pdenton··on A guide to designing accessible focus indicators
From TFA:

    outlines are preserved and used in Forced Color Modes such as Windows High Contrast Mode, where background colors, border colors, and box shadows are usually overridden by user and system styles
Is this actually a thing? If so, how do I test for this (both in CSS and in practice)? I thought only MSIE had this, and MSIE is dead.
pdenton··on And the Walls Came Down
Shaka, when the walls fell
pdenton··on Show HN: QuickServ – User-friendly web server
This has a lot of potential in education. Instead of installing lamp, just use this and quickly write something in python instead. Thank you so much!
pdenton··on WireGuard for Windows now uses high speed kernel implementation
Seems to me like if you need to do your task inside the kernel to get acceptable performance, there's something wrong with that kernel.

It's also arguably more difficult to do a given task in the kernel than in userland, code for the kernel is much more security-sensitive and even subtle bugs can be detrimental to overall system performance (or even exploitable).

Best thing would be to fix the OS instead of piling up kludges.

pdenton··on Pinky and the Brain
Poit!
pdenton··on Why does NBC make it so difficult to watch the Olympics?
No, they exited the european union. They didn't actually move their entire country outside of europe.
pdenton··on My Fanless OpenBSD Desktop
The main reason I tend to stick with GNU+Linux is because of its excellent support for hardware accelerated opengl. The article doesn't tell how the performance is under openbsd. I can play 3d games and have multiple live streams of the olympics running simultaneously, without a hitch.

On a router, openbsd is perfect. It has a great firewall and everything is thoroughly documented. Configuration is simple enough and it just works really well.

Good read though.

pdenton··on Server.casino – Random Servers Across the Internet
It found http://127.249.137.9 for me and it totally works! I can even ssh to it, let's try a fork bo^#@~

[connection reset by peer]

pdenton··on How to get yourself to do things (2015)
This is probably a good article and I should read it.

I'll read it later.

pdenton··on Privilege escalation with polkit: How to get root on Linux with a seven-year-ol
Polkit version 0.119 fixes it, here's the diff: https://gitlab.freedesktop.org/polkit/polkit/-/commit/a04d13...
pdenton··on IconVG is a compact, binary format for simple vector graphics
I'm all for good compression but tbh it's starting to get ridiculous.

HTML/CSS/JS: prefer brotli, then gzip, then identity (no compression), using the Accept-Encoding header.

Pictures: convert them all to AVIF and WEBP. Keep JPEG around as well for backward compatibility

Other bitmap/non-scalable images: I guess still use PNG unless I missed something

And now SVG, used to be compressible with brotli but soon we'll have to export it to IconVG.

What's next, changing the transport to UDP? Hah!

Oh wait...

pdenton··on DeFi Explained: The Full Guide
Teddit link: https://teddit.ggc-project.de/r/CryptoCurrency/comments/nlet...
pdenton··on Create AI videos by simply typing in text
Had the same thought, it made video's like this: https://invidious.fdn.fr/watch?v=FL7yD-0pqZg

Looks like it's still a thing as well: https://www.nawmal.com/

pdenton··on Safari tries to fill username
Welcome back! Please leave a comment
pdenton··on Show HN: Learn JavaScript: new Curriculum written in 2021
Yes, I think it was indeed the flashcards part.
pdenton··on Show HN: Learn JavaScript: new Curriculum written in 2021
Well done, I like it. Stopped at the strings part though, because it introduces "let" and I still write and prefer ecmascript 5.1. Not for MSIE, but because the spec is much less to print and can much more easily fit in my brain. It's quite nicely done for those who want the modern JS, though.

Suggestion: it asks for a GitHub login twice, but only requires it once. Perhaps it could remember having signed in already?

pdenton··on Rust heads into the kernel?
I had no problems interfacing Ada with C many moons ago. It sure looks like the good old things are being forgotten, and often badly re-implemented.
pdenton··on Floppinux – An Embedded Linux on a Single Floppy
Funny how the website for this is over 4MiB.
pdenton··on Terms and Conditions Game
This was fun! I gave my data 2 times, questions 6 and 10 bit me. 6 because I only asked the wrong assistant and moved on, 10 because it got me really confused. The question didn't mention if true or false would opt-out, so I wonder if an accurate decision can be made with the information provided.
pdenton··on Rust for Windows 0.9
After Windows 10 comes 0.9? Did 11 cause a version integer overflow?
pdenton··on Use Alacritty instead of Termite
Unfortunately, Alacritty seems broken to me. See https://files.catbox.moe/0agd5p.png

(Look at the box drawing characters.)

pdenton··on If Tech companies had tobacco warning labels
The article omits this one:

"Microsoft seriously harms you and others around you"

And although FLOSS is addictive, I don't see the harm in that.

← PreviousPage 4 of 5Next →