# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 9
# self = https://watcher.sour.is/conv/qpudoia
Good hint:
> Don’t write fragile programs. The core logic for this example is relatively short. Of the 22 lines inside the for loop, 6 of them implement the actual algorithm and the other 16 are error checking and data validation. You might be tempted to not validate incoming data or check errors, but doing so produces unstable, unmaintainable code. Error handling is what separates the professionals from the amateurs.
@carsten Go's error handling is "Ugh" to say the least
@novaburst No it's not 😆 It's just like C's and errors are treated as values not strange and weird behaviors 😂
@novaburst No it's not 😆 It's just like C's and errors are treated as values not strange and weird behaviors 😂
@carsten What’s the source of that quote? Or rather, what’s the code in question? (Not that I disagree, just curious.)
@carsten What’s the source of that quote? Or rather, what’s the code in question? (Not that I disagree, just curious.)
@carsten What’s the source of that quote? Or rather, what’s the code in question? (Not that I disagree, just curious.)
@carsten I agree, error handling often takes up much more than the happy path. My first work mate hammered that into me right at the beginning of my work life. Even if you don't think that something can fail, chances are it still might. So always be safe than sorry. This attitude quickly proofed to be correct. Sure enough, I ran into – and luckily handled – errors that were initially thought to be impossible. I'm very grateful for these valuable lessons.