25

Skill issue

you are viewing a single comment's thread
view the rest of the comments
[-] AlbigensianGhoul@lemmygrad.ml 6 points 9 months ago* (last edited 9 months ago)

It used to have some really strangely behaving functions and syntax. Stuff like inconsistency between throwing and returning error codes, weirdly named standard functions, adding strings with numbers, really really strange but very well known bugs you had to constantly work around and a lots of ambiguous syntax causing strange bugs rather than just crashing to help you out. It also had this horrible feature where if you write $$variable where the $variable contains a string, it'd access the contents of the variable with that string as name, which allows for huge security risks but also lots of "quirky" coding.

It was also one of the most supported languages for web back-ends, so lots of people had the displeasure of working with it.

But AFAIK the newer versions have made it somewhat of a normal language. r/lolphp used to document a lot of those oddities, so you could sort it by top all time if you want to see some weird shit.

But AFAIK the newer versions have made it somewhat of a normal language

Yup! The language maintainers have been slowly and surely standardizing the behavior you mentioned, first deprecating it, then issuing a runtime warning, and finally making those old behaviors throw exceptions in new versions. The latest set of warnings are new in 8.3 and will be fully corrected in 9.0.

this post was submitted on 27 Oct 2023
25 points (100.0% liked)

Programming

212 readers
2 users here now

Welcome to the Lemmygrad programming community! This is a space where programmers of all levels can discuss programming, ask for help with problems, and share their personal programming projects with others.


Rules

  1. Respect all users, regardless of their level of knowledge in programming. We're here to learn and help each other improve.
  2. Keep posts relevant to programming and related topics.
  3. Respect people's personal preferences. If you disagree with someone's choice of programming language, method of formatting code, or anything else, don't attack the poster. Genuine criticism is fine, but personal attacks are not.
  4. In order to promote breaks from typing, all code snippets must be photos of code written on paper.
    Just kidding :), please use proper markdown code blocks.

founded 1 year ago
MODERATORS