Hacker Newsnew | past | comments | ask | show | jobs | submit | deepsun's commentslogin

I believe Rust will never be a major player in GUIs.

As in other areas where business outcomes of a software is more important than efficient memory management. I don't like Electron, but its popularity just makes it obvious that nobody cares about RAM usage in the GUI area.


I couldn't understand author's point, because they haven't provided the right way to do each thing, their opinion.

It's easy to criticize.


Yes, and that's normal (except for maybe eastern European cultures who better hire an American/west European).

I would argue that command line is for human input, so the failure already happened when they composed a `ping` shell command programmatically.

Granted, a lot of software works like that, but the command line was invented as a human interface, we just bungee-strapped a computer instead.


On the other hand, seperating concerns by process boundaries leads to more secure, composable and stable code. By not reinventing the wheel, you avoid a whole class of problems. Of course a stable API or library might be better, but convenience always wins out.

No-no, I mean launch processes by all means, just without shell substitutions.

Ever noticed that docker (and k8s) accept command line as an array? That's the way to go. It does not expand any env variables, path expansions (.. or *). Like

   command: ["java", "Main.java"]
But people hack it in order to get shell features, and that is the failure I mean:

   command: ["sh", "-c", "java Main.java"]
the second example runs shell, and shell is for humans, so is vulnerable to the attacks above.

Yes, and I probably was that student in school.

The thing is -- grades looked to me like a silly attempt in gamification. I did not really care about grades, but I care about learning. So you might have taught them good, and they will carry it to their lives, they just don't care to show it off in the form of grades.

Now, an admission tests grades are way different deal, of course.


And that is why China wins in production.

Because they'll pollute their land/air/water and force their people to be harmed whenever it's economically convenient because the people in China don't have a voice in their government? I think I prefer democracy.

Just, for god's sake, move SELECT after GROUP BY, I beg you.

Current structure makes sense to me.

  SELECT .... what do I want
  FROM .... where is it 
  WHERE .... what filters do I want to apply
  GROUP BY .... how do I want it aggregated
Maybe it's just that I'm so used to it. I could see FROM being first, that would actually make a little more sense to me.

A pretty common request is to lift the FROM up before the select, like the below. I'm pretty fine with status quo since my mind is usually "hmm what do I need to get" first, then I figure out how to get it, but some engines (duckdb, I think?) support both so everyone gets their cake.

What people often want: <where to get data from> <what I want from it> <how it's filtered> <how it's grouped> <how it's filtered post group>


Also helps with autocomplete, which is why LINQ starts with `from`

Linq took that from Hibernate in believe. But in general, I'd say almost all ORM and SQL-gen libraries have FROM first, because it's clearer for programmers.

Hibernate puts SELECT last if requesting only specific properties?

LINQ:

  var query = 
    from e in entities
    where e.property1 == value
    select e.property2;

> I could see FROM being first, that would actually make a little more sense to me.

Personally, I disagree. In English, an imperative statement like "move that chair from the dining room to the living room" is generally verb-first (with respect to location, anyway). SQL's flow has always made perfect sense to me.


Don't make a work off your hobby, you'll stop loving that.

"Find a job you enjoy doing, and you will never have to work a day in your life" is a lie.


Not necessarily true for everyone, either of them. Both parts feel too dogmatic, it always depends.

True for me. I used to love writing software. About fifteen years into my career I lost interest in side projects, and by the time I retired anything that smacks of coding seems like drudgery.

I occasionally watch a woodworking YouTube channel. The creator tells people if they start woodworking as a job they'll have to find a new hobby.


I don't think it is cut and dry as that. Of the top of my head I can think of "Jorge Luis Borges" who was a voracious reader and much of his career involved reading (literary adviser, librarian etc.). I don't think (can't know for sure) he hated his job.

Hard to say at this point. Imagine in 50 years historians would write like "but crazy regimes kept developing nuclear weapons to exterminat nations they don't like, and the whole world just kept watching doing nothing until it was too late".


The world was not "just watching doing nothing", there was a Iran nuclear deal that made sure they didn't get nuclear weapons.


Was. Expired in 2025, as agreed at its inception. Since then it's "just watching doing nothing".


I know right? countries with nuclear arsenal constantly attacking like rabid dogs and has no respect to human life, what a nasty combination.


It is.

Guatemala, Grenada, Panama, Afghanistan, Afghanistan (that's deliberate), Kuwait, Ukraine, Georgia, Vietnam, Vietnam, Vietnam (also deliberate)... all of these countries and more have been invaded by nuclear powers.


Yeah, it's not very comfortable having a tiny-penis-syndrome's and alcoholic wife beater's fingers on the nuclear launch button...


We already watched while the crazy Zionist regime developed nuclear weapons.


Add to the price calculation some part that may break, or you want to upgrade after a year or two.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: