I just looked at the first example / utility he implemented; which was 'touch'
Will this actually update the 'last modified' date for an already existing file?
Also, there's a standard way of processing command line arguments on Linux/Unix, which is not being followed here.
_ache_ 35 minutes ago [-]
No it will *replace* or create the files "touched" by an empty file.
Major bug in the first command.
Technically, yes, it updates the last modified date, by actually emptying the file. He should have use "w+" or "a" instead of "w".
PS: I like this guy.
geocar 22 seconds ago [-]
w+ truncates
24 minutes ago [-]
lycos 54 minutes ago [-]
to be fair the title didn't promise it would be done well
ReDress 50 minutes ago [-]
well, if we go by the title then I would expect that he's writing the code on a piece of paper and not typing into a computer - heh
But, okay, that could make a valid excuse.
But, what you cannot excuse yourself for, is that you don't really add any functionality. In fact, you don't reproduce all the functionality let alone adding more.
danielbln 35 minutes ago [-]
But it's no AI, it's organic, hand woven, the toil and pain of really putting it down by hand... or something of the sort.
piekvorst 19 minutes ago [-]
Primitive technology, modern look
agumonkey 25 minutes ago [-]
True slop ?
danielbln 18 minutes ago [-]
The true ultimate expression of the human condition.
el_psy_congroo 16 minutes ago [-]
sometimes, I really miss coding by hand
dolmen 5 minutes ago [-]
What is stopping you?
KingOfCoders 4 minutes ago [-]
Probably "I miss coding by hand and being paid for that".
Might be a 9-5 coder.
Rendered at 10:41:49 GMT+0000 (Coordinated Universal Time) with Vercel.
Will this actually update the 'last modified' date for an already existing file?
Also, there's a standard way of processing command line arguments on Linux/Unix, which is not being followed here.
Major bug in the first command.
Technically, yes, it updates the last modified date, by actually emptying the file. He should have use "w+" or "a" instead of "w".
PS: I like this guy.
But, okay, that could make a valid excuse.
But, what you cannot excuse yourself for, is that you don't really add any functionality. In fact, you don't reproduce all the functionality let alone adding more.
Might be a 9-5 coder.