2,068 karma · joined Mar 7, 2023 (3y ago) · 2,932 submissions
comment 5mo ago · link · parent
fn contains(range: &AddrRange, addr: &IpAddr) -> bool {
range.min <= addr && addr <= range.max
Looks ugly as fudge.Syntax is not everything, but it also shows that people too easily think they are great at language design when they really aren't. It's fascinating to watch how people continue with such an approach. How many people are going to use that over, say, python?
comment 5mo ago · link · parent
comment 5mo ago · link · parent
comment 5mo ago · link · parent
comment 6mo ago · link · parent
https://www.justice.gov/opa/pr/us-soldier-charged-using-clas...
400.000$
So if these are all the Trump-voters then I am no longer surprised. It's an ongoing cash grab on different levels - the big guns play on top.
comment 6mo ago · link · parent
Perhaps because he sucks.
It's easy to write ugly code in any language. You need to think, in order to write good code, in any language. Even then some languages are uglier than others. All my PHP code looks awful in comparison to my ruby code. Even with the same expertise level, the issue remains that PHP is just an uglier language. Similar comparisons can be made for many other languages.
> The biggest issue is no typing.
Well ... it's not. But it is pointless to try to explain this people whose brain is too addicted to "mama told me types must go into everything I touch".
> I worked at Stripe for 4.5 years, so I looked into integrating Sorbet
There you go! This already tainted his ability to THINK.
> Forgot .each in node.children.each do |x|. The error showed up as "unexpected nil" at a random place.
Erm ... how can you forget this while claiming you write a lot of code in ruby?
By the way, I almost never use the do/end synax. It helps me visually to use {}.
A side effect is that:
def foobar(
i = node.children
)
i.each {|element|
check_for_cats_in_this_container(element)
}
end
will also be easier to visually notice missing things
such as ".each" or ".map" or anything. Keep the structure
simple at all times. And no, forgetting .each a lot - that
is a bogus complaint. People using ruby for a little while
don't really do such an error. But let's assume it is that
way: def foobar(
i = node.children
)
i {|element|
check_for_cats_in_this_container(element)
}
end
Well, that visually already looks wrong. What method
did you want to run on the variable i here?> Forgot .children in node.children[i]. The error showed up as > "unexpected nil" at a random place.
Mate - use methods. The guy seems to have written only spaghetti code in ruby. Definitely not "4.5 years of writing ruby". Nah.
Also, "unexpected nil" - first, such an error does not exist, he probably means a nil. Second, why do you not check for nils properly? You don't need types for that. So the issue is you were lazy when writing the code. Understandable, but not a reason to "I need types" as compensation for your own laziness here.
> Using assert_raises in the test obscured a compilation error.
What compilation actually? Then again someone who forgets .each, already disqualified here.
>I used ruby_llm-mcp where the doc mentioned tool.input_schema but the latest version has renamed it to tool.params_schema (issue). It took me a while to figure out since there was no typing hint to help me with it.
Sounds like a project with awful documentation. This is a problem with many ruby projects. For some reason ruby projects hate documentation, with a few exceptions. I never understood this. To me it seems writing ruby is fun, then nobody wants to write documentation. That's really stupid of those people who do. Please look at rack. This thing has no real documentation that is useful. Same with opal and ruby-wasm. Ruby hates documentation. It's my number #1 complaint too.
I am fine with those admitting to this problem. Who I can not stand are the "the code is self-explanatory". This always leads me to assume the code is utter garbage. And this indeed is almost always the case so.
> rubyzip: it has an obscure bug where it produced a corrupted DOCX file. I've encountered this bug with a DOCX file from our customers. I can't share the confidential file to the rubyzip author.
Or it is a fake story. Is this AI generated text? The guy makes up things on the fly.
People, please - stop using AI. It will slop zombify your brain.
comment 6mo ago · link · parent
Eventually the empire will strike back though.
I now marked AMD as a company that can not be trusted.
We need more indie companies in general, and cheap 3d printing for the masses. It'll be a long way to go to nanoscale perfection, but we'll have to go it - AMD but also Intel before, showed that NONE of those mega-greedy corporations can be trusted. They'll always try to do a switcheroo move. But as I stated here: the empire will strike back eventually. The Barbara Streisand effect is real.
comment 6mo ago · link · parent
> As this technology continues to improve, creators remain in control.
Well, some folks disagree that they are in control. See the rise of FairTube - granted, FairTube has infrastructure issues, but the problem is Google controlling videos via youtube. This has to change in the long run.
Also:
> Our commitment to responsibility
^^^ pointless self-promo by an AI slop adCompany. They censor at will. I know that because so many videos I had bookmarked, suddenly were taken down at a later time - and not by the original author. Often you can find the same (!!!) video again on youtube.
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
comment 6mo ago · link · parent
I am pretty certain most comments made on youtube these days come from bots. Google does not understand that this is a problem - no real human wants to "interact" with bots or AI slop. They kind of cannibalize youtube here (not that the youtube comments system was great, but you can find real humans making comments in the past, now you can not distinguish between bot spam and real humans usually, though most short comments are made by bots).
comment 6mo ago · link · parent
As if Google really cares about the opinion of people. They just realised that AI is killing youtube - if you come to that conclusion, then "labeling" the AI slop isn't going to solve the problem really. Personally I already classify ALL AI-videos as slop-spam. I've also noticed the "suggested" videos in the last few weeks, on youtube, to really go down in quality a LOT. Google does not seem to understand how severe this problem is.
comment 6mo ago · link · parent
Because Google wants to kill off its search engine here. It is very clear.
> I assume it's a play to test the waters for how the ad market is going to work, because as a product I really can't see why I would ever use it. Dropbox comment moment incoming?
This assumes that Google search is still a high priority for Google. With their privatized adNetwork, they are trying to get people to trust them, and abuse users via their ads. That is their business model. Google is an adCompany. It stopped being a tech company many years ago already.
Also they control the adMarket for the most part. Just look at youtube.
comment 6mo ago · link · parent
DuckDuckGo was also useless. Qwant just copy/pastes Google's awful UI.
We kind of see that all search engines suck now, but in many cases there is no real reason why that should be the case. For instance, why did Qwant copy/paste Google's horrible UI? There is no logical reason for this other than trying to bait in people who like the Google search UI. I don't like that UI Google chose since like 10 years or more; Google ruined its search engine already way before AI.
We really need a search engine that works and isn't control by a greedy, Evil adCompany. DDG isn't the answer; neither is Qwant.
comment 6mo ago · link · parent
Now I want to know the name. Companies that use psycho-tactics should be known to us.
comment 6mo ago · link · parent
I don't use AI, but I rarely respond to any PMs. There are many reasons for this; for instance, I remember in the old days, when I first heard about MMA, I registered on sherdog for a discussion. I don't recall when that was, but it was many, many years ago. Then, after many years of not using it, I logged in and found a PM merely insulting me. I very politely and skillfully correct that PM - however had, ultimately this is not really "interaction", this is just wasting my time (and, admittedly, I already was not using sherdog for many years before that either). Since then I have very decreasingly used PMs in general. It's a difference when I know someone, of course, but random people on the internet ... the barrier to want to talk via PMs for me is very low in general. I simply dislike the format of it.
I find it much easier when it is an open discussion, such as was the case on reddit (before moderators censoring everyone killed that). It's interesting to see how much censorship happens nowadays. That's very different to the 1990s era. Either way I think AI is not solely at fault here, because I could see problems way before AI emerged already. I very rarely use webforums these days, and Discord is no alternative either - Discord is even worse since it is all a private company controlling discussions. IRC was easier than that.
comment 6mo ago · link · parent
This is more correlated with modern games. Modern games, at the least non-Indie games, dumbed down the gameplay. I am not saying such games are awful per se, but they are often very simplified to the 1990s era in many ways.
Many old RPG games are quite complex; or told as a story. The old Betrayal at Krondor was kind of like a novel - unsurprisingly since Feist wrote most of the content (save various adjustments made to the gameplay itself). Yes, graphics are bad, options are too few, but storyline-wise this was my favourite RPG. Another example would be "Realms of Arcania" (in german the three DSA games). Again, graphics today are not great, and playing it in english versus german is actually worse (one of the few games where german was better than english, by the way), but the gameplay options in the second part were nice. Part 3 was a bit different, and people critisized it, but I still liked that you would explore a "real" city while still having tons of options available. Other RPGs such as Baldur's Gate 2 are a bit different - DnD itself is IMO a very bad system for RPGs (takes too long to explain now, but just look at static alignment systems - that makes zero sense) and most of it was focused on hack-and-slay for power and items, so it has the same problems. But with mods you can kind of extend the story and add more storylines, thus having more options. So BG2 is not the best example here, compared to the other two; even before that, if you remember the old Ultima series, the NPCs kind of had a regular life, worked at specific times, went to work leaving their homes (and you could then pillage that) and so forth. A lot of the "why do I want to slay the cute monster", is driven by the underlying design. These games often try to dumb down everything. I noticed this first with World of Warcraft. To me these games never were interesting, as it seems to have been deliberately dumbed down. Many of those games today are more like a movie with a bit interaction in between. That's imo not quite a game anymore. There are some exceptions though; I liked little nightmares, but this is also a simplified, mostly linear gameplay. This problem keeps on coming back again and again. For some reason modern games hate complexity. Either humans became dumber, or designers wanted to simplify things.
comment 6mo ago · link · parent
To me it is super-strange that one uses AI to come to the conclusion that language x is better than language y. In the past people spent some time using both languages for a while, before reaching any conclusion. With AI it seems insta-gratification or insta-evaluation now. I am beginning to see why Google ruined its search engine for real humans - those who control AI rule the world now. People aren't even noticing this how dependent they are becoming on AI in general.