frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

PHP: Not exactly bad, but still a strange one

https://honeypot.net/2025/08/05/php-not-exactly-bad-but.html
1•furkansahin•15h ago

Comments

spacedcowboy•14h ago
From the article: “A poor craftsman blames his tools”. Indeed.

Software engineering is unique in that it is a creative science. It is up to the engineer to decide how to solve the problem within the strictures and constraints of the language employed, and if there's a subset of the language that you don't like, don't use it.

- You don't have to use any and every language feature.

- You don't have to just ignore errors, you can handle them every time

- You don't have to have global variables everywhere, you can use object-orientation with all its benefits for encapsulation etc.

- You don't have to use "dangerous" ways to get user-data. There are plenty of safe ways to do it.

- You don't have to write raw SQL in your code, you can protect against injection attacks.

- etc, etc.

"C" still has "goto". It's been "considered harmful" for several decades now, but it's still very much used in some circumstances (eg: device drivers in linux kernel modules) by very smart people.

PHP does not go out of its way to protect you from your own mistakes (similarly to C, in fact) its ethos is more about simplicity. You could argue that the sort of programmer needing that simplicity is precisely the person needing the smothering embrace of protective programming languages, but then that language would not be as simple and appealing as PHP is, and nowhere near as applicable to the beginner.

Better, IMHO, to let the beginner learn at their own pace, pointing out where and how they could improve things as time goes by. Said beginner is unlikely to be protecting the crown jewels, after all. It's far more likely to be a home-website containing pictures of Fido.

Having said all that about the beginner, PHP is a very capable language, and if you avoid the potholes, it's a very safe language too. I've personally sold software written in PHP to companies like Industrial Light And Magic and various post-production houses at $20k a pop, and about 60k lines of code. It wouldn't have been possible to do what we did in any other language I know of, and yes we did pass security audits...

ompogUe•3h ago
Speaking of C - a thing to me that made PHP take off was (in addition to "LAMP everywhere") was it made it easy to convert C code into extensions

Fire hazard of WHY2025 badge due to 18650 Li-Ion cells

https://wiki.why2025.org/Badge/Fire_hazard
1•fjfaase•1m ago•1 comments

The Stanley Parable

https://en.wikipedia.org/wiki/The_Stanley_Parable
1•thunderbong•6m ago•0 comments

A History of Gears

https://twitter.com/CalumDouglas1/status/1952856815462395966
1•Michelangelo11•9m ago•0 comments

Challenging Popular "Ancient Psychedelic Mysteries" Theory

https://home.liebertpub.com/news/challenging-popular-ancient-psychedelic-mysteries-theory/5190
1•XzetaU8•9m ago•0 comments

When US and Japanese troops stopped fighting to talk, eat and pray together

https://theconversation.com/when-us-and-japanese-troops-stopped-fighting-to-talk-eat-and-pray-together-262068
1•sohkamyung•9m ago•0 comments

The wall confronting large language models

https://arxiv.org/abs/2507.19703
1•adityaathalye•9m ago•0 comments

Vibe coding tool Cursor's MCP implementation allows persistent code execution

https://www.theregister.com/2025/08/05/mcpoison_bug_abuses_cursor_mcp/
1•pjmlp•10m ago•0 comments

European cartographers' inaccurate maps of Australia have plenty to teach us

https://www.abc.net.au/news/2025-08-06/european-cartography-maps-australia-terra-australis/105589656
2•bryanrasmussen•26m ago•0 comments

The Bus Station That Didn't Exist, and Other Data Epiphanies

https://nightingaledvs.com/bus-station-didnt-exist/
2•edent•30m ago•0 comments

Indonesia may ban display of 'One Piece' anime flags on I-Day

https://en.antaranews.com/news/370901/indonesia-may-ban-display-of-one-piece-anime-flags-on-i-day
2•yreew•34m ago•0 comments

The Attia Family Tree

http://games.fooville.net/nycgamer-article-AttiaFamily.html
1•luu•35m ago•0 comments

Let's properly analyze an AI article for once

https://nibblestew.blogspot.com/2025/08/lets-properly-analyze-ai-article-for.html
1•ingve•35m ago•0 comments

A Treatise on AI Chatbots Undermining the Enlightenment

https://maggieappleton.com/ai-enlightenment/
1•mrcgnc•37m ago•0 comments

A Pair of Immense Icebergs Paying a Visit to a Small Greenland Village

https://www.thisiscolossal.com/2025/07/dennis-lehtonen-innaarsuit-icebergs/
2•lemonberry•40m ago•0 comments

The online Congressional copy of the Constitution is missing sections 9 and 10

https://constitution.congress.gov/constitution/
7•backtoyoujim•42m ago•2 comments

GPT-OSS-20B Model on Windows with GPU Acceleration

https://blogs.windows.com/windowsdeveloper/2025/08/05/available-today-gpt-oss-20b-model-on-windows-with-gpu-acceleration-further-pushing-the-boundaries-on-the-edge/
2•bundie•43m ago•0 comments

Teacher AI Use Is Already Out of Control and It's Not Ok

https://simonwillison.net/2025/Aug/5/greyduet-on-rteachers/
4•jruohonen•46m ago•2 comments

MathJax v4.0.0 Now Available

https://www.mathjax.org/MathJax-v4.0.0-available/
3•jasongrout•48m ago•1 comments

Show HN: Voice-to-Notes with AI cleanup and Notion sync

1•sakharesuraj07•49m ago•0 comments

Fairphone 6 (e/OS variant) security patches and protections aren't private

https://discuss.grapheneos.org/d/24134-devices-lacking-standard-privacysecurity-patches-and-protections-arent-private
3•microsoftedging•55m ago•0 comments

Analysing Snapshot Isolation

http://muratbuffalo.blogspot.com/2025/08/analysing-snapshot-isolation.html
2•matt_d•58m ago•0 comments

Ask HN: What if I open on a malicious PDF AirDropped to my iPhone by a stranger?

1•scripper1•1h ago•3 comments

Scientists discover that tomato is 'mother' of potato

https://global.chinadaily.com.cn/a/202508/01/WS688c2a5da310c26fd717cf6f.html
1•ms7892•1h ago•0 comments

Ask HN: Would you use a voice-to-clean-notes app with AI rewriting?

1•sakharesuraj07•1h ago•2 comments

Quickshell – Building blocks for your desktop

https://quickshell.org/
3•r4um•1h ago•0 comments

Trump reignites threat to take over DC after former DOGE worker assaulted

https://www.cnn.com/2025/08/06/politics/trump-federal-take-over-dc-doge-coristine-assault
3•rawgabbit•1h ago•0 comments

Kite - A modern, lightweight Kubernetes dashboard

https://kite.zzde.me/
2•Zzde•1h ago•0 comments

One in ten UK businesses see staff quit over office working demands

https://www.thetimes.com/business-money/economics/article/one-in-ten-businesses-staff-quit-wfh-nq2h5gh8h
2•petethomas•1h ago•1 comments

Three challenges in machine-based reasoning

https://www.amazon.science/blog/three-challenges-in-machine-based-reasoning
1•practal•1h ago•0 comments

WhatsApp deletes over 6.8M accounts linked to scams

https://www.bbc.com/news/articles/ce35q2ly1w5o
4•1659447091•1h ago•0 comments