Better HN
topnewbestaskshowjobs
Log inSign up

shevy-java

2,067 karma · joined Mar 7, 2023 (3y ago) · 2,930 submissions

Submissions

comment 1y ago · link · parent

It will be written with AI, of course. :)

I am also getting annoyed at AI. In the last some days, more and more total garbage AI videos have been swarming youtube. This is a waste of my time, because what I see is no longer real but a fabrication. It never happened.

comment 1y ago · link · parent

I swear, we need better ways to control the superrich. They are milking us dry here. There is a reason why a certain president is constantly associated with the naughty terms "insider trading".

comment 1y ago · link · parent

> What made Steve an effective and visionary leader was that his values were so crystal clear.

Steve also underpaid developers - see the court proceedings here.

I am not saying Steve was not creative and effective, mind you. He was that. But he also had a criminal side, and I hate this whitewashing of praising Steve without pointing at the criminal side at the same time. See reports such as this one here:

https://www.thedrum.com/news/steve-jobs-named-top-conspirato...

The media is often not critical of the superrich, even more so when it is owned by them, which is why unaffiliated media must be a LOT more critical in general. The whole article here babbles about how great Steve Jobs is and how bad Tim Cook is. I'd rather like to think that both are or were humans with failure points.

comment 1y ago · link · parent

> this is honestly the sort of thing I grew to hate in Ruby

But nobody forces you to use a DSL such as rails, so I am not sure why ruby should be hated for this when it is a rails dev who does that.

The blog has much more to do with rails than ruby; such API design is really strange.

I don't think this design causes problems as such, but it is too verbose and way too ugly. To me it seems that they are just shuffling data structures around; that could even be solved via yaml files.

comment 1y ago · link · parent

I don't really like the API design. Perhaps in the rails-world this makes sense, but it looks really strange to me.

    Billing::Plan::Factory.find_or_create_by!(
      name: :pro,
      interval: 1.month,
      amount: 50
    )
It is not only the verbosity or use of trailing '!' in a method for no real reason, IMO, but also things such as "1.month". I understand that rails thrives as a DSL, but to me having a method such as .month on an Integer, is simply wrong. Same with HashWithIndifferentAccess - I understand the point, to not have to care whether a key is a String or a Symbol, but it is simply the wrong way to think about this. People who use HashWithIndifferentAccess do not understand Symbols.

comment 1y ago · link · parent

People like VLC. Personally I am a mpv-user though. For some reason the mental model by mpv (and before that mplayer) works better for me.

On Windows, VLC is quite convenient though. While I also use mpv there, for an elderly relative I have simply used and installed VLC there, as the default GUI mode is more convenient for elderly people.

comment 1y ago · link · parent

Google censors the world, together with Microsoft.

Well - it is time that the rest of the world censors these two corporation. I don't want them to restrict information.

People will find workarounds by the way. This is now a Streisand effect - as people see that Google and Microsoft try to hide information from them, they will now look at this much more closely than before, with more attention.

(Having said that, my bypass strategy is to not use Windows 11 altogether. I don't depend on it, having used Linux since 21 years now, but my machine to the left is actually using Win10, for various reasons, such as that I can fix problems of elderly relatives still using Windows. But I won't use Win11 ever with its recall-spy software. I also don't care that it can be disabled - any corporation that tries to sniff-invade on me, is evil and must be banned.)

Edit: Ok so the video was restored. That was good, but still, we need an alternative here. Google holds WAY too much power via youtube.

comment 1y ago · link · parent

> I discovered this a few years ago

Right. I think I found it on stackoverflow.

The question is: why does the official documentation not mention this, along with guides?

Answer: because documentation is something the ruby core team does not want to think about. It is using scary language after all: English. The bane of most japanese developers. Plus, it is well-documented in Japanese already ... :>

comment 1y ago · link · parent

Right. But ruby also has awful crap. The documentation - look at opal, webassembly and many other projects in ruby. The documentation is just total garbage.

rubygems.org also has decided to, rather than fix on existing problems, eliminate all former maintainers and instead put in Hiroshi Shibata as the solo lead - the same guy who keeps on writing on different github issue trackers how he does not have time to handle any issue requests for low-used projects. Wowsers.

comment 1y ago · link · parent

One could do a conversion e. g.

    if x.is_a? Array
      x = x.first
Or something like that. Could be one line too:

    x = x.first if x.is_a? Array

comment 1y ago · link · parent

> But had forgotten how core Ruby is just an excellent programming language, regardless of what I think of the Rails ecosystem.

A problem is that ruby lost many developres; rails too but it is by far the biggest driver in ruby. And this creates problems, because it overshadows the remaining ruby developers.

comment 1y ago · link · parent

I am not sure. What I do know is that they used to go to pubs, so they probably used to drink pints.

comment 1y ago · link · parent

I would not call it a "piracy" streaming site.

I would call it a hero-site. That's what they are - they are heroes for unrestricting information.

Take ublock origin. Now, many say it is an ad-blocker; the ublock origin author says the extension is a generic content blocker. I agree with that but I go further: I call ublock origin a hero-blocker, or better, a heroic blocker. It blocks unwanted things in general. For similar reasons I think the term "piratebay" is old. It made more sense in the 2000s. Now I would call it herobay.

People may wonder about those terms, but I think it is important to use better terms than old terms. The old terms often were hijacked by the law system and mega-corporations with their own particular interests. It is time that the people re-define the law. Law should serve the people.

comment 1y ago · link · parent

To me it sounds as if he is trying to open a new chapter in his life. Good for him, but I wonder if everything was really as smooth as described. People often write how everything is always perfect on their blog. Well - could be. But it could also be that not everything was perfect but no description followed on the blog.

comment 1y ago · link · parent

But it is so damn HOT there. And Australia has the most vicious animals and plants too. It is like an alien continent.

comment 1y ago · link · parent

That's actually an interesting take. I have not thought about it from that point of view. It's kind of strange how people in the same government come up with orthogonal decisions - the left hand doesn't know what the right hand does and vice versa.

Clouflare actually does have a point. If you censor xyz, then you may also censor some businesses that are legitimate and pay taxes.

comment 1y ago · link · parent

We need to preserve data. The FBI is trying to kill data.

We can not allow the FBI to work for Evil here. I actually think there should be a human right to data. With that I mean, primarily, knowledge, not to data about a single human being as such (e. g. "doxxing" or any such crap - I mean knowledge).

Knowledge itself should become a human right. I understand that the current law is very favourable to mega-corporations milking mankind dry, but the law should also be changed. (I am not anti-business per se, mind you - I just think the law should not become a tool to contain human rights, including access to knowledge and information at all times.)

Wikipedia is somewhat ok, but it also misses a TON of stuff, and unfortunately it only has one primary view, whereas many things need some explanation before one can understand it. When I read up on a (to me) new topic, I try to focus on simple things and master these first. Some wikipedia articles are so complicated that even after staring at them for several minutes, and reading it, I still haven't the slightest clue what this is about. This is also a problem of wikipedia - as so many different people write things, it is sometimes super-hard to understand what wikipedia is trying to convey here.

comment 1y ago · link · parent

Because they have an easier time knowing and assessing how fudged up everything is.

comment 1y ago · link · parent

> Instead of mining oil or boiling vats of chemicals, Colorifix uses engineered microorganisms, (essentially programmable microbes) to grow colours in the lab.

Biotech is cool, but the title is wrong. "colour without chemicals" refers to "we don't need chemicals", e. g. industrial scale-level chemicals. But you actually do, you just use different chemicals; in particular all energy given to the bacteria, all materials needed to have them grow in the lab or in a bioreactor. All these media are also defined and need to be constantly monitored.

This is in general more efficient than in organic chemistry, but to insinuate "we need 0% chemicals" - sorry, that's also not the case. Also, the term "growing colour" is just wrong from a scientific point of view. You may have organisms grow, and they may produce some pigments in some substance - but that is not "growing colour". This is just a catchy title to make people be more interested in the topic. I think the topic is interesting without a need for catchy titles.

comment 1y ago · link · parent

That's ok - I give medical advice all the time so just ask me!

"If it hurts when putting it in, don't put it in."

I mean, that might come close to ChatGTP in quality, right?

comment 1y ago · link · parent

This may sound strange, but I actually think we need just ... one editor.

Now, this is not a "we need to favour vim over emacs". I think this is a stupid war, the vim versus emacs war.

What I mean is ... basically most editors do almost the same exact thing. They look at some buffer for a file and help the user modify this. There is a finite number of operations possible. Why do people keep on re-implementing basic things here? Why can it not be solved once and for all and then everyone uses that implementation?

We really should have that; and then people can decide ON THEIR OWN what kind of editor they want to use. Many years ago I started with crimson editor as my main editor on windows. I have since then hopped to many other editors. My favourite one was oldschool bluefish in gtk2. I am not saying it was perfect, but I found it much easier to go on my poor brain than e. g. remembering all vim shortcuts. But, it would need xorg + gtk2, so if that is not available, then I can not edit things - that's bad. That was (and still is) also one reason why I use e. g. nano. But this in turn requires ncurses and I hate ncurses with a passion (nano is great though, I can recommend it for quick ad-hoc editing; for larger things it is not quite as good, but if you have to just change some value in a config file, nano is really great).

Even then I used only like 20% of what bluefish offered (the newer bluefish releases are also nowhere near as good as the old releases, also because GTK really sucks nowadays). I'd like to cherry-pick on my editor and declare what I want it to be, without needing to implement everything on my own. Why can't we transition into this? Why do we need to reimplement everything almost from scratch? That just makes no sense to me.

We live in the age where AI autogenerates code (which they heavily drew from stealing people's code). Why can't AI autogenerate the best, most perfect editor/IDE?

comment 1y ago · link · parent

I can't help but try to find the second 'd' ...

comment 1y ago · link · parent

I'd include both approaches.

The thing is that the "scripting" approach, is just so much easier to distribute. Just look at how popular python got. Smalltalk didn't understand that. The syntax is worse than python IMO (and also ruby of course).

comment 1y ago · link · parent

Agreed with that; this is why I think it should unite both the "scripting" as well as image approach, at the same time.

comment 1y ago · link · parent

That part is also cool. I'd like this in ruby too, e. g. where we could have tons of objects reflect on that state, and just resume work there. Everything is an object. Squeak everywhere, but to also retain the "scripting" (light) commandline approach. Nobody in smalltalk really understood why "scripting" is important. Python showed why.

comment 1y ago · link · parent

I kind of like Smalltalk. Unfortunately syntax-wise Smalltalk is a huge set back and step back compared to Ruby. But Alan Kay's ideas are still epic today. I still don't think any language came close to his vision either; smalltalk definitely not. Ruby got closer but also no dice.

Elixir kind of got close too (prettier "erlang") - to have fault-tolerant mini-CPUs ("objects", aka similar to biological cells). The problem is that even people with grand ideas, such as Alan Kay, are not automatically great language designers. Matz is a better language designer than Alan Kay, for instance, whereas Alan Kay has the better ideas. It's a trade-off.

Note: I myself would not know how a language should look like that would follow Alan Kay's vision closer. It is definitely not smalltalk; it is also not ruby, though ruby is very good. I know I would suck as language designer, but as an improvement I would have a language similar to ruby (no, not crystal - crystal is a worse "ruby"), with a stronger focus on speed (perhaps have a second language that can be as fast as C here and be similar) and with a much stronger focus on what erlang brought to the table; that would get us close to, say, around 85% or 90%. And then add the rest that could fulfil Alan Kay's vision. Of course we need a specification too, because just saying "90% of his vision" is also pointless. I would perhaps start from erlang, retain the good bits, make it a modern variant of OOP (and OOP is also defined differently in different programming languages, so we need to define that term too, in the specification).

comment 1y ago · link · parent

Time to pull away all EU data from the Trump USA.

comment 1y ago · link · parent

> Example: people wanting to keep X11 alive have been literally banned from the freedesktop.org infrastructure

Yeah - that has been my experience with ebassi etc... too. Also prior to that with Poettering. These people seem on a mission, a crusade. Anyone not conforming to this will be ignored or isolated/banned.

comment 1y ago · link · parent

Which demographic do you evaluate? Because I am clearly among the xorg users. I don't even use systemd either.
1
9495969798