cacheson

joined 2 years ago
[–] cacheson@kbin.social 1 points 2 years ago

My solution for day 1 part 1 was simple and to the point. The other ones are getting increasingly less so. You're right that sometimes it's best not to get too fancy, but I think soon I may have to break out such advanced programming techniques as "functions" and maybe "objects", instead of writing increasingly convoluted piles of nested loops. xD

[–] cacheson@kbin.social 2 points 2 years ago

I actually just learned about scanf while writing this. Only ended up using it in the one spot, since split worked well enough for the other bits. I really wanted to be able to use python-style unpacking, but in nim it only works for tuples. At least without writing macros, which I still haven't been able to wrap my head around.

[–] cacheson@kbin.social 2 points 2 years ago (1 children)

I'm not doing anything too fancy here, just the first stuff that comes to mind and gets the job done. The filterIt template was pretty handy for part 1, though. I assume at some point in these puzzles I'll have to actually write some types and procedures instead of just using nested loops for everything.

I think it's a pretty cool language overall. I've only used it for one project so far, so there's a bunch that I still don't know. Haven't been able to wrap my head around how macros work, for example, though I've sort of figured out how to write really basic templates.

[–] cacheson@kbin.social 8 points 2 years ago (4 children)

Nim

I hope y'all like nested loops:

[–] cacheson@kbin.social 2 points 2 years ago (3 children)

Another nim person! Have you joined the community? There are dozens of us!

Here's mine (no code blocks because kbin):

[–] cacheson@kbin.social 2 points 2 years ago (4 children)

Oh hey, a fellow nim person. Have you joined the community?

Here's mine. Kbin doesn't even support code blocks, so using topaz:

[–] cacheson@kbin.social 1 points 2 years ago

Oh wow, I guess it doesn't take too much. I copied your survey post over to r/nim with a "cross-posted from nim@programming.dev" link, and also invited the author of Enu to post here. I'll keep at it.

[–] cacheson@kbin.social 1 points 2 years ago

Alright, not a bad idea.

[–] cacheson@kbin.social 3 points 2 years ago

I imagine they'd also want to have something you can click that shows how many votes were local, how many were from other instances, how many were blocked, etc.

Actually, that would be really cool and worth doing regardless. Have a voting statistics view for each post where upvotes and downvotes are broken down per instance, and maybe by other criteria too. @ernest

[–] cacheson@kbin.social 3 points 2 years ago (14 children)

Least active communities

  • !nim

q_q

I haven't been working on my nim project lately, so I haven't had much to say. I've been missing using the language, though.

I resubscribed to r/nim on reddit just now, so if I see anything particularly interesting there I'll cross-post it.

[–] cacheson@kbin.social 3 points 2 years ago (2 children)

Might be interesting to have per-instance weighted voting. So local votes would count as 1x, votes from other instances could count as 0.5x, and votes from that one instance that has a lot of vote brigading would count as 0x. Would be useful for smaller, specialized instances that tend to get harassed by outsiders.

2
Oh no (media.kbin.social)
 
2
anime_irl (media.kbin.social)
 
 
 
2
anime_irl (media.kbin.social)
 
 
 
1
anime_irl (media.kbin.social)
 
 

I'd been vaguely aware of campaigns by tax-prep companies to stop the IRS from offering its own tax-prep software. I was going over some of my old tax info today, and started to wonder if there were any open source tax-prep programs.

What I found was Open Tax Solver. I get the impression that it's more clunky that using commercial tax-prep. Does anyone here have firsthand experience with it?

1
anime_irl (media.kbin.social)
 
3
anime_irl (media.kbin.social)
 
2
anime_irl (media.kbin.social)
 
view more: ‹ prev next ›