224
top 17 comments
sorted by: hot top controversial new old
[-] experbia@kbin.social 18 points 1 year ago

I've made a point to learn and understand commonly "mocked" languages. The reasons they're ridiculed for are often very tightly related to the reasons why they're powerful in unique ways.

It's hard to defend some parts of PHP, but it doesn't deserve the hatred it gets. Its standard library is a self-contradictory mess, yes. But it's backwards-compatible with previous language versions to a fairly remarkable degree. This backwards-compatability might seem strange now, but not that long ago, this guarantee meant it could evolve very rapidly as a language and ecosystem without risking losing users to a continual barrage of updates necessary to keep atop of, lest your application fail. I think this is the reason it overtook PERL as the first major "server-side" dynamic website language of choice.

It has that goofy dollar sign variable syntax, yes. I personally think a special syntax for variable access vs function calls is one of the reasons coding beginners found it slightly easier to use - you didn't need to keep so much track of name collisions and stuff. $thing is always a piece of data, a noun. thing is always a keyword or function, a verb. You can thing($thing), it's OK, they're different. You're verbing a noun.

It could grow fast and be picked up quick, so it's no wonder to me it persists, ever-improving, in the midst of all these extremely popular, extremely modern languages in use today. Wikipedia, Facebook, WordPress, Slack, Etsy, indeed even kbin, the piece of Fediverse software I'm writing this on now.

[-] bear_with_a_hammer@lemm.ee 6 points 1 year ago* (last edited 1 year ago)

Any decent programming language have the rights to be used in any environment, even if their creators didn't intend it.

I mostly agree with your points.

[-] TeaHands@lemmy.world 16 points 1 year ago

Having worked with all kinds of languages, I stand by my belief that PHP is the most fun.

Yeah maybe it lets you do some things it probably shouldn't. Yeah maybe the naming conventions are wild. But it also encourages creativity and experimentation in a way that stricter languages just don't.

Yes I am willing to die on this hill.

[-] Rooki@lemmy.world 5 points 1 year ago

"The most fun" Sorry but i had to laugh so much i ate my chewing gum accidentally.

[-] TeaHands@lemmy.world 8 points 1 year ago
[-] Rooki@lemmy.world 2 points 1 year ago

And i what i said :)

[-] tiredofsametab@kbin.social 3 points 1 year ago

I was always partial to groovy/grails, personally. Springboot basically killed it. I mostly work in Go these days and enjoy it well enough.

[-] pec@sh.itjust.works 3 points 1 year ago

I miss working in PHP. Sadly there's less use cases for it today (at least relatively to my personal situation)

[-] TeaHands@lemmy.world 3 points 1 year ago

Same! I had to pick up C# instead and not particularly happy about it. But PHP my sweet, I'll always love you for personal projects.

[-] alokir@lemmy.world 9 points 1 year ago

One of your dependencies are broken, you probably never installed them in the first place or tinkered with the node_modules folder, which you really shouldn't do.

I looked at index.ts in the package api-ai-javascript and it's there. Just run npm install and try again.

[-] bear_with_a_hammer@lemm.ee 6 points 1 year ago

Did you seriously waste your time reading these errors?

[-] alokir@lemmy.world 1 points 1 year ago

It took a few seconds to read them and about a minute to search for the package on npm, another minute to come back to Lemmy and type out my comment.

All in all, not the worst case of me wasting my time.

[-] deaf_fish@lemm.ee 8 points 1 year ago* (last edited 1 year ago)

I don't get the top square. I thought PHP was for generating HTML, not for creating EXEs.

[-] bear_with_a_hammer@lemm.ee 17 points 1 year ago

And I thought Javascript was working in the browsers, not servers, times are changing.

[-] balls_expert@lemmy.blahaj.zone 5 points 1 year ago

php, famous for not letting you write anything that errors out

[-] PeWu@lemmy.ml 4 points 1 year ago* (last edited 1 year ago)

Hell yeah brother. All hail JS, even if it's trash. But at least it's my trash

[-] Iambatman@kbin.social 3 points 1 year ago

Now, I am back to solving error in my Nodejs project

load more comments
view more: next ›
this post was submitted on 17 Jul 2023
224 points (97.1% liked)

Programmer Humor

32361 readers
283 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS