Comment by ๐Ÿš€ stack

=> Re: "The Wall CGI - source published" | In: u/stack

I'll leave the error checking as an excercise for the reader!

=> ๐Ÿš€ stack [OP]

2024-06-10 ยท 8 months ago

2 Later Comments โ†“

=> ๐Ÿš€ stack [OP] ยท 2024-06-10 at 20:21:

More seriously, failure here is not a problem:

I know that we are taught to obsess over error checking, but in many cases it is just unnecessary.

If something does not work, it is better to plan for it and do something useful -- or nothing at all -- than have a significant chunk of your time and your code be dedicated to error messages that no one should see if you do things right.

=> โ˜•๏ธ Morgan ยท 2024-06-11 at 06:30:

Yes. Checked exceptions were, in my opinion, one of Java's few design level mishaps ... so much development time wasted on try / catch / throw :)

Anyone remember SQLException? It remembers you...

Original Post

=> ๐Ÿš€ stack | โ€” tilde.cafe/~spellbinding/wall/cgi

The Wall CGI - source published โ€” I added the C sources for my Wall CGI. It is an example of a minimal CGI - compiles to 14KB, minimal execution footprint, and the data is limited to 64KB max (old messages will be truncated). My Wall (link above) has been running for about a year alongside SpellBinding. Scribble a message if you feel like it.

=> ๐Ÿ’ฌ 4 comments ยท 2024-06-10 ยท 8 months ago

Proxy Information
Original URL
gemini://bbs.geminispace.org/u/stack/17849
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
72.124609 milliseconds
Gemini-to-HTML Time
0.582761 milliseconds

This content has been proxied by September (3851b).