HNHacker News
TopNewBestAskShowJobs

rawfan

466 karma · joined April 15, 2015

submissionscomments
rawfan··on Reviewing the worst piece of code ever
I just saw an atrocious piece of Perl code that controls the flow of shipping containers for several large corporations. It’s completely unmaintainable and only the original author has the complete picture.

He was originally a trucker on office duty because of health issues. In the office he saw lots of inefficient thing so he bought a copy of „Perl for Dummies“ and started fixing.

The product itself is actually a huge success. No developer is willing to stay, though, so the guy just picks other people from the office and teaches them what he thinks is Perl.

rawfan··on The Truth Is Paywalled but the Lies Are Free
People always complain. A significant amount of people happily pays for Netflix and its likes, though.
rawfan··on The Truth Is Paywalled but the Lies Are Free
I just want Netflix for journalism. I don't want a super expensive sub to a dozen papers. I want one subscription, they all should be included (maybe offer different tiers if you are an arse) and it shouldn't be more than $20/month.

Go.

rawfan··on Optical Disc Data Rot: Burned CDs going bad
I noticed that some CDs/DVDs are already going bad after very few years in the early 2000s, so I put everything on harddisks, recovered broken stuff with ddrescue and was done with writable optical media.
rawfan··on Del.icio.us
100% use pinboard.in. Moved there when all the shenenigans with delicious started and never looked back. For a couple of bucks extra, I even have an archive of the websites I bookmarked so that I can still access them when they go down eventually.
rawfan··on Open Source Ventilator Project
It‘s already happening elsewhere voluntarily. Sharp is producing masks and Draeger is AFAIK working on massproducing ventilators.
rawfan··on Coronavirus may have spread undetected for weeks in U.S.
Fun story: a friend of mine works as an engineer in critical infrastructure (for a large utility in Germany). He wanted to spend his vacation in northern Italy (which currently has a COVID19 outbreak). When his employer got wind of it they offered to pay him extra to choose a different destination. If he went, they told him, he couldn't come back to work for another 2 weeks after his vacation (unpaid leave).
rawfan··on Coronavirus may have spread undetected for weeks in U.S.
1. Don't panic, COVID19 won't harm you. 2. No wonder it spreads undetected, with the messed up US medical system, I wouldn't go to the hospital either if I had to fear a huge medical bill [1].

[1] https://www.nytimes.com/2020/02/29/upshot/coronavirus-surpri...

rawfan··on Little known features of iTerm2
So what exactly is the iTerm feature here? You are just describing regular tmux.
rawfan··on Don’t try to sanitize input – escape output
It's actually quite easy:

1. Sanitize input when you actually need/want to do that but at least to a degree that it's save to put in a database (e.g. through prepared statements)

2. Always validate input

3. Always escape output (unless you have a reason not to).

rawfan··on Tailwind UI
Compared to what? If you look at any agency license (use on as many sites as you want) for themeforest WordPress themes, they are about the same price, if not higher. I guarantee you, they‘ll make a million bucks on launch day!
rawfan··on Tailwind UI
100% agree. I learned more about CSS in the Tailwind docs than in all the years I copy and pasted before starting with Tailwind.
rawfan··on Tailwind UI
Concerns are not separated in the first place. Your CSS is heavily tied to the structure of your HTML and you even need to artificially think up structures to be able to write and apply the CSS. I recommend reading Adams blog post on the topic.

Regarding style attribute. You can’t do responsive-ness, hover- or focus-states in style attributes.

It’s hard to compare to bootstrap and the like because they give you components, while Tailwind is just a different way of writing CSS. You can of course extract components, btw, and define stuff like text-primary (that you can change in a central variable).

rawfan··on EU Commission to staff: Switch to Signal messaging app
I compiled Signal for iOS and monitored the sent data through a proxy. Both behave identical. There could be a hidden switch in the distributed binaries that triggers other behavior, but I really doubt it. For Android, there are reproducible builds so you can actually check the code is the same. For iOS reproducible builds are harder but should still be possible.
rawfan··on Docker for Windows won't run if Razer Synapse driver management tool is running
Why not just edit the answer yourself and add a big red warning?
rawfan··on New in PHP 8
I think you misunderstood. The previous poster meant modern Javascript WITHOUT a framework. These days I would just go with AlpineJS, tbh. It’s a mini-framework that solves the most common problems. Best thing for people who don’t want to write js at all.
rawfan··on New in PHP 8
Maybe check out Laravel. They banned all annotations from the framework. Best decision ever.
rawfan··on New in PHP 8
Websockets are no problem with Ratchet. OhDear is a high traffic app that uses laravel-websocket (based on Ratchet) with absolutely no performance issues.
rawfan··on Let's Reverse Engineer Discord
I actually know many opensource projects that moved from the clunkyness of Slack to Discord.

In all fairness, though, the recent releases of Slack made it pretty snappy.

rawfan··on E-bikes could be the electric revolution cities need
I commute with a regular bike and proper clothing is your friend. It's also not rocket science. You get pretty warm through the movement so often it's okay to just wear something that stops the wind.

I usually wear regular clothing (like jeans and hoodie) and add to it when necessary (long johns in the winter, maybe a power-stretch jacket).

rawfan··on I was just subjected to the most credible phishing attempt I’ve experienced
I had the exact opposite experience. The DAs office eventually called me to tell me that they didn't catch the perps but were able to kill the phone-number blocks which they had been using for years because no one ever reported them.

Sometimes cops are just lazy (or assholes). When thieves tried to steal the rain gutter from the appartment building on the other side of the road, the cops told me "don't expect us to rush in with sirens and screeching tyres", even after I told them the thieves were still there, in broad daylight.

Later my landlords told me they lost 50k Euros in the previous year because of stolen rain gutters.

rawfan··on Typed Properties in PHP 7.4
Except PHP already has some of the nicer features of Scala (like traits) and is more flexible (you can write Java-like code, but don't have to).
rawfan··on Pear.php.net shuts down after maintainers discover serious supply-chain attack
Thankfully nobody is using PEAR anymore. Using composer doesn't solve the problem of blinedly pulling internet dependencies, though (as others pointed out).

What I currently do is grepping vendor for common smells like usage of eval() or obfuscations of the same thing after doing a composer update on a project.

rawfan··on Pear.php.net shuts down after maintainers discover serious supply-chain attack
It doesn't.
rawfan··on Ask HN: Is it normal to fall out of love with coding?
The fun thing is to modernize the legacy systems while the're being used in production. It's challening, rewarding and - in the end - cost-effective.
rawfan··on Olive, a new non-linear video editor
Same.. it's quite great.
rawfan··on Threema – Seriously secure messaging
As another commenter pointed out, the mobile network signaling system sucks. You can just read other peoples SMS by becoming part of the SS7 network. It's that easy. Watch these two talks on the subject:

https://media.ccc.de/v/31c3_-_6249_-_en_-_saal_1_-_201412271...

https://media.ccc.de/v/31c3_-_6122_-_en_-_saal_1_-_201412271...

rawfan··on Threema – Seriously secure messaging
Not available for iOS, though.
rawfan··on Ask HN: Go-to web stack today?
Yep.

In the past years Laravel has helped us quickly build prototypes that we could conveniently grow into enterprise-scale apps.

Backend: PHP/Laravel Frontend: Same, using VueJS as needed/wanted. Database: Usually starting off with SQLite and switch to a more appropriate choice like Postgres, MariaDB or even MSSQL.

rawfan··on All Creatures Welcome [documentary]
A documentary around the German hacker culture and their utopian vision for a digital era.
← PreviousPage 3 of 7Next →