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
-
Surely just a numbered array, if we are talking dates in month. Otherwise, still easy...
-
hjk10157312yNatural languages suck. They make no sense at all. It's why we need programming languages in the first place. Try to do something as simple as writing out numbers to a million. It's covered with exceptions and just about every language does it differently.
Related Rants
I discovered a function in our database that converts integers to ordinals by concatenating the number and a suffix:
- ends in 1: add “st”
- ends in 2: add “nd”
- ends in 3: add “rd”
- else: add “th”
Simple! Except I guess nobody considered the 11st, 12nd, and 13rd iteration of this function…
rant
sql
bug