Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

OldGrumpyBitWrangler, to php

An instance of a popular CMS is used for a website. While analyzing I'm coming across a a table in it's MySQL database where a column called "deleted" is defined as such:

deleted` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'A boolean indicating whether this data item has been deletedโ€˜

๐Ÿคฆโ€โ™‚๏ธ

There should be a license allowing allowed to write software used by someone else. Like with drivers licenses it needs a points system for violations and license revocation.

OldGrumpyBitWrangler,

@Crell To me "odd choice" would apply some thinking behind it. I don't know what that was, but the same part of the code does do even more silly things: https://mastodon.social/@OldGrumpyBitWrangler/112407018128767799

Crell,
@Crell@phpc.social avatar

@OldGrumpyBitWrangler In fairness, 95% of developers in my experience don't know what SQL is, other than "that thing backing my over-engineered ORM." The vast majority of implementations use SQL as a glorified card catalog or CSV file with indexes, for hydrating overly complex objects in the language of choice.

That's hardly specific to one ORM, language, or database.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • ethstaker
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • tacticalgear
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • lostlight
  • All magazines