News for hackers. Stuff that matters.
Re:Ask HN: What do you consider as “bad” code? by technion on Tuesday January 25, 2022 @07:11AM (#30070917)
People come with all sorts of rules, but honestly I think sometimes you just know. I've seen code that breaks a lot of the rules people are going to list, that I've felt in practice was fine. This is what I've inherited. Coding style is often a bikeshed, but sometimes it needs more shedding.

https://ibb.co/JCmcsnF

Re:Ask HN: What do you consider as “bad” code? by JZN666 on Tuesday January 25, 2022 @07:33AM (#30071075)
This looks like one of my points: "non-neccessary complexity". Why using "echo" statements if PHP is already designed as procedural web-templating language? If it's not a function that dynamically renders template based on some params.
Re:Ask HN: What do you consider as “bad” code? by JZN666 on Tuesday January 25, 2022 @07:34AM (#30071084)
> non-neccessary complexity with regards to given model (problem, tools)