HNHacker News
TopNewBestAskShowJobs

tored

1,022 karma · joined October 29, 2020

submissionscomments
tored··on Richard Stallman reveals he has cancer in the GNU 40 Hacker Meeting talk [video]
It is always good to remind yourself that the worlds largest spy company, Google, uses Free software to run much of it.
tored··on KSP2 is spamming the Windows Registry until the game stops working
A bit weird that cross platform apps use dot files or dot directories directly in %Home% on Windows. If they already are cross platform, thus taken the time and resources to do that, why not add a compile flag to move them into %AppData%?
tored··on Speeding up the JavaScript ecosystem – Polyfills gone rogue
There was a closely related movement at the time that called for that languages should have minimal "bloat", combined that with importing only what you need down to single functions, it was viewed as the future of programming.

I was sympathetic to that idea then, it sounded good in theory, however in practice it was horrible.

Today I enjoy coding in "bloated" languages with only a few external dependencies.

tored··on Linux gives up on 6-year LTS kernels, says they’re too much work
Yes, old printer drivers yes for Windows can be a problem, often because of the 32 to 64 bit switch, I have that exact problem with an old printer that still works but can't get it to install on 64 bit.

20 year old software is rarely a problem, I'm running Office XP on Windows 10 without problems.

tored··on YouTube blocks Russell Brand from making money through its platform
Yes, but I would also add that it is important that the rest of the world should stop using services from American companies.
tored··on YouTube blocks Russell Brand from making money through its platform
Sure, but the public can always remove all legal benefits a private stockholder company has, like liability.
tored··on Opera's browser is now available with chess baked in
Technically no, but perhaps legally, data protection laws in China is probably non-existant.
tored··on Paint on Windows is getting layers and transparency support
And achievements.
tored··on Death by a Thousand Microservices
I wish language designers would spend more time on designing higher abstractions, like modules, rather than only low level stuff like borrow checkers and async.
tored··on Death by a Thousand Microservices
Many languages misses that abstraction to make things private in a folder (namespace) hierarchy to outside consumers. This is something I like to see solution to (integrated with your IDE of choice)
tored··on Learning Zig
Not a Rust developer, in what way is Rust forcing you to write less performant code? Any good example?
tored··on Learning Zig
About 20 percent of all bugs in the Linux kernel are use-after-free.

With that said, I think proper tooling can solve much of the problems with unsafe memory languages. Question is then, why doesn't it happen? Are developers uninformed, arrogant or just lazy? Is forcing it into the language the only way to solve this?

tored··on Things you forgot (or never knew) because of React
PHP with server side rendered templates.
tored··on IUP – Cross platform C GUI library
One big plus for IUP over wxWidgets is that API of IUP is very clean & easy to use compared to the complex C++ API of wxWidgets.
tored··on IUP – Cross platform C GUI library
IUP is well designed, source code is clean and easy to read and it is easy to create bindings for it.

No overusing of weird macros, no large structs to define (IUP uses void pointers) or other C-isms that can be hard to translate over language barriers.

I tested to write bindings for PHP over FFI and it was trivial.

Main drawback is that the Mac support is experimental.

tored··on Choosing a Name for Your Computer (1990)
The RFC allows renaming of computers. I have done that a few times.
tored··on Kanboard: free and open source Kanban project management software
Used it in a project, worked ok. One problem back then was it was desktop use only, using it on a tablet or phone didn’t work well, perhaps this has improved since then.
tored··on WebAssembly is eating the database?
I would like to add to that web developers always makes it harder for themselves too.
tored··on The AARD Code and DR DOS (2021)
Microsoft's software is definitely perceived as buggy (And I never said anything about revenue).
tored··on The AARD Code and DR DOS (2021)
The idea of introducing bugs to users that doesn’t conform 100% to intended use of your software is not good idea, what will happen is that your software will be perceived as buggy in general.
tored··on Potentially millions of Android TVs and phones come with malware preinstalled
I would switch to Windows 95 If I could.
tored··on Writing Python like it's Rust
This is how I write PHP. The author made a trip to rust to come to this conclusion, what I did was to start using PhpStorm many years ago, that helped me remove many bad habits, like relying on magic and stringly types.
tored··on Writing Python like it's Rust
I think you have to grade code in your project, i.e not every piece of code has the same value, high value => more strict, low value => less strict.

Less strict code is something that you can throw away and rewrite without too much effort.

This has the implication that you have bulkheads (like in a ship) to separate high value and low value code, thus you have to avoid code that is toxic (i.e magic) that spreads between them, e.g. ORM entities.

When using the type system correctly you don't need 100% coverage, now I'm not a Python programmer so I don't how feasible that is with that type system, but in PHP I use the type system extensible and I don't write that many tests anymore, except for legacy code or when I need to test something specific, like an algorithm. By using the type system you can catch most programmer errors, and combine that with routinely throwing exceptions for any unwanted state, you will detect most bugs.

The way unit testing has been interpreted and implemented it has become more of a nuisance than a help in fast moving projects. Usually what happens is that the team refactors some unit and then multiple test breaks and then time needs to be spent rewriting these test, but what that means is that the tests were actually useless after they where committed if you can change them as you like, when you change a test you are no longer testing the same thing.

Thus tests can also can be graded, from high value tests, i.e stable, and low value tests. Depending how you organize your code, high value tests will usually test a larger set of functionality in one run, like a system (or integration) test from call to finish, these should never change regardless of much you refactor. High level tests should only change when your business logic changes.

Low value test typically involves a lot of mocking and stubbing, those are pretty much pointless to commit after you implemented your unit. Too much mocking and stubbing is code smell.

tored··on GlitchTip: An open source, Sentry API compatible error tracking platform
Depending on PHP Sentry client version,

Sentry client v1 (Raven_Client) you can configure the client in different send modes (curl_method), sync (default), async (curl_multi), exec (fork)

https://docs.sentry.io/clients/php/config/

For Sentry client v2 I think you need to configure the Transport layer to use async

https://docs.sentry.io/platforms/php/configuration/transport...

tored··on Nuances of overloading and overriding in Java
I remember when C++ was touted as a superior language to Java because C++ has support for multiple inheritance.
tored··on SQLite 3.42.0
Does WAL2 mitigate the performance reduction?

https://sqlite.org/cgi/src/doc/wal2/doc/wal2.md

tored··on DuckDB 0.8
SQLite has similar functionality.

e.g PHP

https://www.php.net/manual/en/sqlite3.createfunction.php

https://www.sqlite.org/appfunc.html

tored··on I Still Use Windows 95 (2008)
I used this Windows version of Blackbox many years ago. Perhaps time try again.

https://bb4win.sourceforge.net/

tored··on Microsoft Small Basic
I would say that the hate against PHP is similar to BASIC, irrational.
tored··on Microsoft Small Basic
You can install Python directly from the Microsoft Store.

https://apps.microsoft.com/store/detail/python-311/9NRWMJP37...

← PreviousPage 6 of 26Next →