Show more
Sundar boosted

When a Software Architect says "I do the architecture, and you do the easy part, just implement the functions!"....

That’s one thing I miss in AoC compared to Project Euler and others, there’s no “Aha!” moment when solving the challenges, no particular insight gained from thinking about and coming up with the solutions. Seems like I should treat this more like a replacement for a mini-project one might do to learn a language, with straightforward code (which still takes work, just not the focused, creative type of mental work that coding challenges usually require), rather than as tricky puzzles with interesting solutions.

Show thread

I just completed “Handheld Halting” - Day 8 - Advent of Code 2020 adventofcode.com/2020/day/8 in .

Spent way too long on Part 2 thinking there must be an interesting non-bruteforce way to solve it. reddit also seems to be concluding there’s no neater way of solving it, just straight up try everything, which is disappointing.

@freemo
The Legal notice and Privacy policy links at the bottom of cloud.qoto.org/ don’t seem to work. They just open a new tab with cloud.qoto.org/# as the URL.
There are a bunch of Content Security Policy messages in the browser console, about inline scripts being blocked - which may or may not be related.
(This is all on the latest Firefox.)

I just completed “Handy Haversacks” - Day 7 - Advent of Code 2020 adventofcode.com/2020/day/7 in .

I wanted to do something interesting using Julia’s multiple dispatch, making each outer bag a function and the inner bags the parameters, but it would have needed too much macro munchkinry and ended up in the “too clever for its own good” type code. I’m not trying to be Mel the Real Programmer after all.

Julia feels really good. Multiple ways of doing things, so I can choose what’s appropriate for each context. Lots of useful little tools built into the language, neat syntax, and the REPL is really useful for messing around and figuring things out before writing them into a program.

Show thread

I just completed “Custom Customs” - Day 6 - Advent of Code 2020 adventofcode.com/2020/day/6 in .

Every day, while implementing Part 2, I end up with a more elegant neater way of doing Part 1. Never occurs to me while doing Part 1 itself - probably because I come up with an idea while reading the question and rush to implement it, not stopping to think of other ways of doing it .

toy prog challenge solution 

Did the subset sum challenge today, in . Code here. I used to get stuck with dynamic programming problems, finding them hard to reason about, so it was pleasant to find that with this one the logic flowed nice and easy. Typing in the test cases and getting the test setup going took up more time than actually solving the problem itself!

Show thread

Tried a today, was pretty fun. @namark thanks for recommending these! I expect I’m gonna spend a lot of hours on these in the next few weeks.

I just completed “Toboggan Trajectory” - Day 3 - Advent of Code 2020 adventofcode.com/2020/day/3 using

Lessons (re-)learnt:

  • did you know that example data is also data? I’d forgotten it! Using that for testing made things easier - when I finally thought of it - since it’s so much smaller and easier to eyeball.
  • Julia’s dynamism came back to bite in the usual way it does - since there’s no variable declarations required, when I messed up a variable name change and left the old name in in some places, Julia was happy to treat those as two separate variables and end up with weird results.
  • Repl.it has a decent mode, but is otherwise a pain to use; it messes with outputs and makes error messages so much harder to read.
  • Good practices are good practices for a reason. Magic numbers and baked-in literals are fertile grounds for bugs, even in little one-off projects like this.
  • Naming things is hard!

I just completed “Password Philosophy” - Day 2 - Advent of Code 2020 adventofcode.com/2020/day/2 using .

Day 2 was kind of a letdown. The problems felt particularly pointless, and there was no thinking or creative problem solving required; just look up some functions in your language’s manual and then it’s just nitty gritty work.
Let’s hope Day 3 has something fresh and interesting!

I just completed “Report Repair” - Day 1 - Advent of Code 2020 in Julia.

Thanks to repl.it/ for enabling me to do that despite my local OS being borked (and so not having a usable Julia). Pretty good online coding experience for minor projects like this.

adventofcode.com/2020/day/1

Found an answer in the Announcement post when Markdown was introduced to Qoto:

Keep in mind that while many other fediverse serves will view the rich text not all servers can or will and the formatting will be converted into html in a best-effort to remain compatible. For examples vanilla Mastodon instances reject all special formatting, but links from markdown should still be correctly rendered, but bold and other formatting will be filtered out on Mastodon. Pleorma and other software which allows rich-text should properly render the markdown.

So basically, it seems like links should likely work everywhere without a problem, it’s just fancy text rendering that’s likely to get stripped out elsewhere.

Show thread

So, communication among Fediverse instances isn’t as seamless as I thought, it seems. Opening my profile on other Fedi servers, one server thinks my last toot was two weeks ago, another seems to be picking up one toot every few days and dropping the others. Neither showed the above toot in the page, so I still don’t know how the Markdown thing works. (Mobile clients seem to support the mardown/richtext more commonly than I expected, which is nice.)

Show thread

What happens when links done in Markdown syntax here encounter interfaces that can’t handle Markdown? Are they displayed as the syntax itself (which would be fine, you can still access the URL), or does it just turn into normal text, the URL gone?
Here’s a great video about how the HIV works on the body, for a test.

Sundar boosted

At the end of the day remind yourself that you did the best you could today, and that is good enough. ~ Lori Deschene

Sundar boosted

Although this post was mainly meant as a jab against Facebook, here's Amazon and MS to round out the pack:

Amazon
Cons: treats massive number of workers like expendable robots, slowly destroying all competition in the "everything" industry, AWS is an overpriced hot mess that somehow makes them all the money
Pros: They aren't kidding about the whole "customer obsession" thing

Microsoft
Cons: Has too many sins to count due to long history
Pros: Helps keep the relatively open PC platform popular

Show thread
Sundar boosted

Pros and Cons of various tech companies

Apple
Cons: Ridiculously high prices, perfected the walled garden, anti-repair
Pros: Major industry trendsetter (iPhone, M1, etc.), better on privacy than competition

Google
Cons: Extremely creepy surveillance, slowly destroying Internet standards, can't rely on them
Pros: Accurate search results, Android is less of a walled garden

Facebook
Cons: The worst possible surveillance, buys up and corrupts promising competitors, destroying democracy
Pros: ???

Sundar boosted

She has had the problem with this explained to her, with varying degrees of gentleness, by hundreds of #ActuallyAutistic people, but her only responses have been "I have good intentions" and "Maybe autistic actors are just bad at acting"

Show thread
Sundar boosted

If you're not in the know because you've got my retweets turned off: Sia is making a movie(?) about autism!
She got all her info from Autism Speaks (an abusive hate group) and cast no autistic actors.

Show thread
Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.