Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Wonder how likely end-users dictated the format.
Our users once tried to change how we stored DateTime values because they thought the idea of having one field represent both date and time would be too confusing.
TL;DR, users wanted two fields, one for date the other for time stored as varchar so they could easily view the values. -
This database also stores a date time stamp as 5 separate columns. Year, month, day, hour, minute.
This is a very old system that interferes PLCs so I'm not saying there weren't reasons some of this was done this way...but wow it makes me want to shoot myself. -
@PaperTrail wtf at that point I wouldn't change anything on the database and just have the changes reflected on the front just to satisfy the customer. Sometimes just providing the illusion is enough.
Related Rants
-
BobbyTables12Previous dev created a switch statement on a boolean flag. WTF
-
programmatical2i am fucking tired of companies that come to me expecting to magically fix their STEAMING PILE OF BULLSHIT AND...
-
BobbyTables13Previous front end dev apparently was not aware of padding and margin. The html is riddled with and <b...
*looks at data in database*
This float column seems wierd. The fractional parts are never above .59
*reality sets in*
Wtf the previous devs encoded whole minutes as hundredths. 1.25 = 1h 25 minutes.
Fuck me...no wonder the numbers weren't adding up correctly.
rant
previous dev