3 ms·
Yes, this is why you should engineer things properly. Not duck tape them together with shell scripts!
by IshKebab 7y ago
Yes, this is why you should engineer things properly. Not duck tape them together with shell scripts!
- hiccuphippo 7y agoActually the user was able to solve it because it was in a shell script. If the program had used libfile instead, there would be no easy way to edit it to change the date format other than recompiling it. They would have needed to wait until the maintainers fixed file itself.
- silon42 7y agousing file is a bad idea anyway... you can't rely on a command that performs guesswork (aka "smart"). It's been a cause of security holes in similar contexts (browsers sniffing mime type from file content/extensions)
- generationP 7y ago> duck tape That's a fascinatingly apt mixed metaphor: duct taping meets duck typing.
- IshKebab 7y agoHa I just looked up duck tape on wikipedia and it says "not to be confused with duck typing"!
- rconti 7y ago*duct, ironically.
- wtracy 7y agoDuck Tape is the brand name of the original product. "Duct tape" is the generic name that the industry settled on. ("Duck" refers to the water-resistant nature of the tape. Duct doesn't actually mean anything other than sounding like "duck". Ironically, duct tape is the wrong type of tape to use on heating ducts.) If you're going to be pedantic, then get it right. ;-)
- IshKebab 7y agoActually I just looked it up and it's "duck" because it was made from "cotton duck", a type of fabric.
- rconti 7y agonow I just think somebody's getting trolled :D
- dec0dedab0de 7y agoWow, I always thought it was duct tape because it was originally made for taping ducts. And that duck tape was just a brand name like gorilla glue. Thanks for that.
- rconti 7y agoHuh, I thought Duck Tape was a NEW brand that came out to capitalize on the generic duct tape. Thanks!
- wtracy 7y agoReading Wikipedia's article has me questioning the information in my above post. According to Wikipedia, the name comes from it being manufactured from "cotton duck" (not because water rolls off it like a duck). Then a derived product became popular for wrapping air ducts, and the name evolved to duct tape. Then someone trademarked "Duck Tape" and revived the old name. I'm not sure anymore about the true origins of the terms, but I still maintain that "duck tape" and "duct tape" are both acceptable names (trademark issues aside).