💾 Archived View for bbs.geminispace.org › u › xavi › 17848 captured on 2024-07-09 at 04:24:10. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-06-20)

➡️ Next capture (2024-08-18)

🚧 View Differences

-=-=-=-=-=-=-

Comment by 🎵 xavi

Re: "The Wall CGI - source published"

In: u/stack

Thank you for posting this. It is simple and readable, although I cannot help but raise my hand on the lack of error checking. Everything should work just fine most of the time, if not always, but you should not assume that!

🎵 xavi

Jun 10 · 4 weeks ago

3 Later Comments ↓

🚀 stack [OP] · Jun 10 at 20:11:

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

🚀 stack [OP] · Jun 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 · Jun 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 · Jun 10 · 4 weeks ago