Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not my software, but if you have looked at other FTP clients this is an amazing thing to read though.


Other clients code being bad does not make this code easy to read or beautiful.

All those MAX_STR and strcat's make me wonder about security: https://github.com/Hypsurus/skod/blob/master/src/ftp.c#L14

Amazing read: https://github.com/Hypsurus/skod/blob/master/src/ftp.c#L22

No enum again: https://github.com/Hypsurus/skod/blob/master/src/utils.c#L14


I hold it to a standard of how to organize your code. The organization of the source is superb.

Even without much documentation, you can go through and read it while understanding what is happening.


Lots of missing error checks. fwrite() can fail -- this code just ignores it. No thanks!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: