2 ms·
> Seriously? It's 19 fucking lines of C. Including the fucking curly braces. What would you consider a simple application? We don't consider programs to be sim
by lelanthran 4y ago
> Seriously? It's 19 fucking lines of C. Including the fucking curly braces. What would you consider a simple application?
We don't consider programs to be simple or complex based on the number of lines of code used to write them, otherwise the linux kernel is even simpler than your paint program because a single-line grub script calls it.
Hell, I can make an even simpler program than your 19 line paint program, by writing a shell script that calls open-office in 1 line.
You still think number of lines of the calling program matters to determine complexity?
Simplicity (or complexity) is, for most, determined by what functions are available to the user. A program that does 20 different things is more complex than a program that does a single thing, even if those 20 different things are actually done by a library.
- kragen 4y agoYour implicit claim seems to be that Yeso is a paint program being called by a 19-line C wrapper. Despite its name, this is not the case. The paint-program logic is all in μpaint.c. μpaint has very few functions available to the user: draw a black pixel, draw a white pixel, and that's it. Such a simple paint program should not require dozens of lines of code, much less hundreds. (Even 19 is pushing it.) But with X-Windows or Win32 it does. Yeso is just a minimal GUI library that removes the accidental complexity inflicted by X-Windows, which is what porcoda was wishing for, allowing simple GUIs to be written simply. It doesn't really help with complex GUIs because it doesn't have widgets.