News for hackers. Stuff that matters.
Re:How to Dynamically Create Instance Variables in Ruby by lprtyc on Friday July 28, 2023 @07:08AM (#36905224)
Ruby websites like GitHub generally seem nicer and more elegant that Python/Django ones like python.org or Instagram. The latter are clunky.

I wonder if the language influences the aesthetics. Python is boring and clunky as well.

Some people here criticize meta-programming. I was one of them until I read the gorgeous Homebrew configuration files. Of course, don't overdo it.

Re:How to Dynamically Create Instance Variables in Ruby by dlisboa on Friday July 28, 2023 @07:37AM (#36905436)
> I wonder if the language influences the aesthetics.

The community does. You’ll notice that JavaScript command line tools are much fancier than other languages, with emojis and cool spinners. Being that many JS programmers are web developers there’s a sense of aesthetics baked in the community. Other communities don’t have to care about “pretty” in their day-to-day so their tools reflect it.

Re:How to Dynamically Create Instance Variables in Ruby by x86x87 on Friday July 28, 2023 @07:21AM (#36905332)
Python is almost as good as Ruby. They have slightly different takes on a few things (taaaaabs) but you can easily jump from one to the other.
Re:How to Dynamically Create Instance Variables in Ruby by bluerooibos on Friday July 28, 2023 @10:09AM (#36907039)
Almost being the key word here ;)

I tried testing in Python years ago and found the likes of PyTest etc to be light years behind what RSpec and even Minitest offer.

Re:How to Dynamically Create Instance Variables in Ruby by sethherr on Friday July 28, 2023 @10:39AM (#36907470)
This! Python testing ergonomics are terrible, worse than Js.

It’s a reason I love Elixir.

Re:How to Dynamically Create Instance Variables in Ruby by IshKebab on Friday July 28, 2023 @07:38AM (#36905446)
Probably just selection bias. Ruby is way more niche than Python so Ruby programmers are less likely to be complete beginners.

It's quite a bit problem for Python actually IMO. It is so popular among beginners that a lot of libraries and StackOverflow answers are beginner-quality.

Re:How to Dynamically Create Instance Variables in Ruby by 3cats-in-a-coat on Friday July 28, 2023 @07:45AM (#36905484)
The languages don't directly influence the aesthetics. Rather, there's a culture that precedes a language, and the audience it attracts, and it defines the marketing of that language, among other things.

There's always mutual interaction and feedback. I'm just saying I don't see this as the high order bit.

In the case of Ruby, in fact the culture didn't come from Ruby, but Ruby on Rails, which marketed almost exclusively to non-programmers. "Classic" programmers suck at design.

Re:How to Dynamically Create Instance Variables in Ruby by matt_s on Friday July 28, 2023 @08:13AM (#36905730)
I mean if we talk about the creators/inspiration around these languages we have creators of Ruby from Japan where things are tidy, elegant and mindful of others. An inspiration for the name of Python is from Monty Python creators of the Ministry of Silly Walks which is kinda clunky looking when you watch it. https://www.youtube.com/watch?v=eCLp7zodUiI

Thanks for reading my highly technical analysis.

Re:How to Dynamically Create Instance Variables in Ruby by bbatha on Saturday July 29, 2023 @12:09PM (#36921610)
Japanese web design certainly isn’t tidy or elegant