# 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 20
# self = https://watcher.sour.is/conv/wg7xx5q
~22h to go for the 3rd #AdventOfCode puzzle (Day 3) ๐Ÿ˜…

Come join us!

> ๐Ÿ‘‹ Hey you Twtxters/Yarners ๐Ÿ‘‹ Let's get a Advent of Code leaderboard going!
>

> Join with 1093404-315fafb8 and please use your usual Twtxt feed alias/name ๐Ÿ‘Œ

>

> Twtxt/Yarn AoC > Leaderboard
~22h to go for the 3rd #AdventOfCode puzzle (Day 3) ๐Ÿ˜…

Come join us!

> ๐Ÿ‘‹ Hey you Twtxters/Yarners ๐Ÿ‘‹ Let's get a Advent of Code leaderboard going!
>

> Join with 1093404-315fafb8 and please use your usual Twtxt feed alias/name ๐Ÿ‘Œ

>

> Twtxt/Yarn AoC > Leaderboard
~22h to go for the 3rd #AdventOfCode puzzle (Day 3) ๐Ÿ˜…

Come join us!

> ๐Ÿ‘‹ Hey you Twtxters/Yarners ๐Ÿ‘‹ Let's get a Advent of Code leaderboard going!
>

> Join with 1093404-315fafb8 and please use your usual Twtxt feed alias/name ๐Ÿ‘Œ

>

> Twtxt/Yarn AoC > Leaderboard
Welcome @movq and @taigrr ๐Ÿ‘‹ I dunno how you guys are doing these so far, but it took me ~2hrs to get Day 2 done ๐Ÿคฃ Maybe I wrote too much code ๐Ÿ˜…
Welcome @movq and @taigrr ๐Ÿ‘‹ I dunno how you guys are doing these so far, but it took me ~2hrs to get Day 2 done ๐Ÿคฃ Maybe I wrote too much code ๐Ÿ˜…
Welcome @movq and @taigrr ๐Ÿ‘‹ I dunno how you guys are doing these so far, but it took me ~2hrs to get Day 2 done ๐Ÿคฃ Maybe I wrote too much code ๐Ÿ˜…
@prologic That is a lot of code, yes. ๐Ÿ˜… Mine is shorter, has more naive searching (it searches a word like red and then backtracks to the number before it; completely ignoring the semi-colons because they donโ€™t matter), and โ€“ like any good C program โ€“ will crash horribly on malformed input. ๐Ÿ‘Œ๐Ÿ˜‚๐Ÿฅด

https://www.uninformativ.de/git/advent-of-code/file/2023/day02/s.c.html

It really depends on what youโ€™re after. Iโ€™d never write code like this in โ€œreal-world applicationsโ€. But for these puzzles and my DOS use case, itโ€™s โ€œgood enoughโ€. ๐Ÿ˜…
@prologic That is a lot of code, yes. ๐Ÿ˜… Mine is shorter, has more naive searching (it searches a word like red and then backtracks to the number before it; completely ignoring the semi-colons because they donโ€™t matter), and โ€“ like any good C program โ€“ will crash horribly on malformed input. ๐Ÿ‘Œ๐Ÿ˜‚๐Ÿฅด

https://www.uninformativ.de/git/advent-of-code/file/2023/day02/s.c.html

It really depends on what youโ€™re after. Iโ€™d never write code like this in โ€œreal-world applicationsโ€. But for these puzzles and my DOS use case, itโ€™s โ€œgood enoughโ€. ๐Ÿ˜…
@prologic That is a lot of code, yes. ๐Ÿ˜… Mine is shorter, has more naive searching (it searches a word like red and then backtracks to the number before it; completely ignoring the semi-colons because they donโ€™t matter), and โ€“ like any good C program โ€“ will crash horribly on malformed input. ๐Ÿ‘Œ๐Ÿ˜‚๐Ÿฅด

https://www.uninformativ.de/git/advent-of-code/file/2023/day02/s.c.html

It really depends on what youโ€™re after. Iโ€™d never write code like this in โ€œreal-world applicationsโ€. But for these puzzles and my DOS use case, itโ€™s โ€œgood enoughโ€. ๐Ÿ˜…
@movq Haha ๐Ÿคฃ I guess I'm aiming for "if this were real, how would I approach it" ๐Ÿ˜…
@movq Haha ๐Ÿคฃ I guess I'm aiming for "if this were real, how would I approach it" ๐Ÿ˜…
@movq Haha ๐Ÿคฃ I guess I'm aiming for "if this were real, how would I approach it" ๐Ÿ˜…
Admittedly I _could_ have use regex to parse those lines into the structures I needed, but oh well ๐Ÿ˜… Sometimes i hate regex ๐Ÿคฃ
Admittedly I _could_ have use regex to parse those lines into the structures I needed, but oh well ๐Ÿ˜… Sometimes i hate regex ๐Ÿคฃ
Admittedly I _could_ have use regex to parse those lines into the structures I needed, but oh well ๐Ÿ˜… Sometimes i hate regex ๐Ÿคฃ
Day 2 used lots of Cut and Split.
Day 2 used lots of Cut and Split.
@xuu Yeah or in my case a lot of strings.TrimSpace() and strings.Split() because I hand-built a custom parser ๐Ÿคฃ
@xuu Yeah or in my case a lot of strings.TrimSpace() and strings.Split() because I hand-built a custom parser ๐Ÿคฃ
@xuu Yeah or in my case a lot of strings.TrimSpace() and strings.Split() because I hand-built a custom parser ๐Ÿคฃ