# 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 ๐คฃ