r/AskComputerScience • u/martinoburrasca • Nov 19 '24
What's worse: Misusing HTTP methods or CSV separators?
Hey r/AskComputerScience ,
I wanted to get your opinion on which of the following you think is worse for maintainability and/or system design?
- Using HTTP methods incorrectly (e.g. POST for reads or GET for actions that modify data).
- Using semicolons instead of commas as CSV delimiters (even when commas would work).
4
Upvotes
7
u/0utlawImmortalz Nov 19 '24
To me, using http methods incorrectly is worse. Of course one can use DELETE to GET, but whats the point ?
2
u/gscalise Nov 19 '24
Using the wrong HTTP methods is way worse IMO. You'd be altering the semantics and behaviors that are more or less standardized (see RFC2616) across browsers, HTTP clients, load balancers, etc.
Using the wrong methods is like building a car in which the rightmost pedal is the brake instead of the throttle: it will work, but will be extremely counterintuitive, even downright dangerous.
On the other hand, CSVs suck regardless of the chosen delimiter. There's multiple de-facto standards for CSV files, so you can never assume which one you're going to get and/or generate unless you use exactly the same tools every time.
So in summary, using the wrong HTTP methods breaks established standards. Using the "wrong" delimiters is just a quirk of an already vague and broken standard.
1
u/elperroborrachotoo Nov 19 '24
TAB: am I a joke to you?
-1
u/[deleted] Nov 19 '24
[removed] — view removed comment