Next on HN: "Hello World in 100 languages, in just 2 hour"
26 Programming Languages in 25 Days
21–30 of 82 posts
Re: 26 Programming Languages in 25 Days
#22> C++ [no experience (beyond meta-programming)] Curious about this line if op is here.
But, I did once learn how to do template meta-programming:
https://matt.might.net/articles/c++-template-meta-programmin...
Re: 26 Programming Languages in 25 Days
#23Re: 26 Programming Languages in 25 Days
#24Re: 26 Programming Languages in 25 Days
#25We did a similar assignment at University many years ago. I think it was the same assignment, one per day for two weeks. Each time in a different language. The goal was to see how similar code is, and how little it matters which language you pick. Obviously it's a constrained problem set (we didn't have to learn all the ins and outs of each language) but it really opened our eyes to the "commonness" of programming, a…
Curious which languages you used. If they were C, C++, Java, and Python then I could see how they could blur together if you squint. Different syntax, similar semantics. But if those languages are C, APL, Erlang, ML and Lisp then I would expect the lesson would be the design space of languages is much larger than the popular imperative languages would have you believe.
On the other hand, differences will start to show them selves after you spend a while noodling with your script, refactoring it a couple of times and deliberately seeking out opportunities to use language-specific features in the process. This expands the exercise to something more like "a language a week" instead of "a language of day", which is obviously a bit more of a time commitment. But if you want to get value out of a "polyglot" programming exercise like this, I think that's what you really need to do. Otherwise I think you learn lessons that are only correct at surface level.
Re: 26 Programming Languages in 25 Days
#26A note to the original author, it looks like you're including the inputs with your solutions on github which the AoC folks request that you not do: https://www.reddit.com/r/adventofcode/wiki/faqs/copyright/in...
Re: 26 Programming Languages in 25 Days
#27great to see prof. might writing about programming again! im curious what he thinks about the ergonomics of the languages he used
I have a part two planned to comment more about the languages / days themselves.
This post was just getting too long to include it here.
Re: 26 Programming Languages in 25 Days
#28Re: 26 Programming Languages in 25 Days
#29Re: 26 Programming Languages in 25 Days
#30Very impressive i couldn‘t even get past day 7