Hacker Newsnew | past | comments | ask | show | jobs | submit | more zoover2020's commentslogin

Anyone who cafés about security would stay away from PHP. Certainly more than 22% of the web.


Cargo-culting bs that you heard from somewhere and never bothered to fact check? Shame on you.


Oh really? Why is that. Let's talk about globals from 2005.


It’s not 2005? How is this even an argument? Age-old opinions of PHP are do not reflect the modern state of PHP and its ecosystem.


Can't seem to get anyone else to Baird the train of small CRs. It's so obvious


Why would you skip unit tests? Especially in the AI age. You can quickly verify your behavior. Also, by not writing them you're also missing out on opportunities to modularize your code.

Obviously, this assumes you write enterprise grade code. YMMV


You can write modular code without writing tests - I write testable code - I don't write tests. When I need I can always add them back, but I tend to skip it as mostly it doesn't make sense.

But still cottage industry of "clean code" is pushing me into self doubts and shame.


I’m a mechanical engineer, not a software person, but I write a lot of (hopefully close to professional quality) code for my work. writing tests while in the beginning/middle of my development cycle has been the best change I’ve made in how I do things in quite a long time. Since I’m a self-taught amateur often working solo, its invaluable for helping me gain confidence that everything I’m doing is working correctly as I learn the language/libraries necessary for me to build each new program.

I’m not saying that you yourself have this attitude - but the “tests are for suckers, I just ship” crowd really grinds my gears because to me it says “ha! Why do you care about getting things right?”

Totally get where you’re coming from though, sometimes the expected behavior is trivial to verify or (in the case of GUIs) can be very difficult and not worth the effort to implement.


If it's testable it's trivial to write tests for! You don't want the next person to introduce a bug, do you?


Read my original post again. We don’t have bugs that all those “do it right way” people claim doing it for 15 years with good track record.

You just contribute to BS scare tactics of people selling “clean code”.


How do you know you don't have bugs? Is everything instrumented (observable)? I could just as easily say you're peddling ignorance as bliss!


You can have a lot of other processes and tests on other levels than unit tests ;)


That’s how I do it. 100% test coverage doesn’t make bug reports irrelevant. Every test should have a reason.


Exactly. Clear astroturfing to hide war crimes is not going unnoticed anymore.


I second this, retry mechanisms can cause retry storms in vast enough, distributed systems. In Amazon code bases I found the same adaptive retry strategy after a Christmas where once we played whack-a-mole for a service to get back up as its clients kept retrying.


What is s sensible tsconfig according to you?


I use @sindresorhus/tsconfig, but there are a handful of possible improvements over it (see open issues)


Tangentially related: on each trip I make, I try my best to get a run in on Strava during which I explore a city or area with one or two pictures I make _during_ the run.

They're my favorite memories. NY's Central Park, London's Hyde Park, Norway's fjords, Barcelona's beaches... The best part is that these feel like very tangible memories and take zero physical space to store!


It's fair to question some of Elon's statements but the article is outright misinformed. The parameters are for tweaking models to handle things like snow or ice better, also, real geofencing helps in rolling out features.

Find the article rather weak and just blatant criticism, expected better.


Perhaps the popularity,or lack thereof? More often than not, the bad standard wins the long term market


I've tried Dutch answers and it is more than happy to hallucinate and give me answers that are very "American". Doesn't help that our culture is very inspired by the US pop culture as well since the internet.

Haven't tried prompt engineering with the Dutch stereotype, though.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: