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

What do you mean zero prestige in that? Do you know the difference in salary, importance and status in managing a team of 50 vs one of only two?


I think you misread GP. That was the point they were making.


What is a "mapping" structure?


Key value, dictionary, ...


The original baby was only designed to live inside and come out of it's mothers womb. It was only supposed to drink milk and cry.

How dare it learn how to talk, walk eat solid foods and grow bigger!


> How dare it learn how to talk, walk eat solid foods and grow bigger!

For sure. That ship sailed 25 years ago, when XMLHTTPRequest was invented.


> “This time we can make an app based on web technologies for real!” > - it failed when Microsoft tried it

VS Code is one of the most successful open source cross platform GUI apps of all time. Who would have thought that good ol' HTML would finally fulfill the promise of "build once, run everywhere".


VS Code is a great success of Electron-based apps but also has massive memory usage and performance bloat that comes with this style of app, see https://news.ycombinator.com/item?id=19144039

Sublime Text is implemented natively (C++) and uses a fraction of the resources to accomplish similar functionality. I know we live in a period of plentiful system resources where RAM usage no longer practically matters, but using 1.5GB RAM for a few files open seems insane, even more so that this is now normalized.


> Sublime Text is implemented natively (C++) and uses a fraction of the resources to accomplish similar functionality.

If VS Code is slower than sublime with the same level of functionality, why does it currently totally dominate the market? Is it because devs just love Microsoft?


Importantly, it isn't slower.

It does use a lot more resources, but it turns out that people care a lot less about memory usage than UX speed.


VS Code has a quasi-IDE implemented for a bunch of popular languages including a debugger [1]. Sublime is a straight text editor, with limited debugging capability. Sheer usefulness beats performance, so VS Code won the editor war.

[1] https://code.visualstudio.com/docs/editor/debugging


So in other words, not the same level of functionality.


Sublime Text is an independent product from a small developer; VS Code is actively pushed and marketed by Microsoft, one of the biggest, best-known companies in the world.

That may or may not be the primary reason for the difference, but I don't think it can be ignored.


> If VS Code is slower than sublime with the same level of functionality, why does it currently totally dominate the market? Is it because devs just love Microsoft?

Because it only has the same level of functionality when you conveniently ignore how easier it is to write plugins


Sublime Text and VS Code are pretty different, despite looking superficially simmilar. VS Code gets much further along the path to being a full IDE (albeit not completely), where Sublime is more of a pure text editor.


At what cost? VS Code is a trillion dollar company throwing thousands of man-years at the problem and still running into issues like "we can't make the terminal fast enough because of web tech": https://code.visualstudio.com/blogs/2017/10/03/terminal-rend...


> At what cost?

It is free! Free as in free beer. So all those trillions are going to very good use, considering it is the most used editor. And its open source too!! What a web tech success story this one...

> and still running into issues like "we can't make the terminal fast enough

Imagine that! A cross-platform code editor with its own configurable integrated terminal that hooks into the apps extension system. But someone wrote a blog post in 2017 explaining some performance improvements, so bring out the pitch-forks and burn it all down!


> It is free! Free as in free beer.

You're confusing price and cost of development

> so bring out the pitch-forks and burn it all down!

That is literally not what I wrote, but at this point it's clear you're not interested in discussion beyond low-level trolling.

Adieu


> That is literally not what I wrote,

Yes. Not all discourse has to be literal. It's called a a metaphor. And your "trillion dollar company throwing thousands of man-years" is called a hyperbole. You are talking about the most successful cross platform code editor of all time, so if you want to be taken seriously, use level-headed arguments rather than emotional exaggerations.

> but at this point it's clear you're not interested in discussion beyond low-level trolling.

> Adieu

I wouldn't consider a discussion where someone cites a 6 year old blog post about performance improvements as proof of "throwing thousands of man years" as a serious, or worthwhile discussion. You can go. Don't let the door hit you on the way out.


And yet he was entirely correct, and you're just coming off as being petulantly pedantic.


It is also not running on a mobile phone with limited memory, no swap, a small screen and where battery life is at a premium.


> ask three people, and they will give you five answers on what exactly PWA support means

Or maybe just refer to the definitive docs [1] instead of relying on what 3 random people say?

[1] https://developer.mozilla.org/en-US/docs/Web/Progressive_web...


"That PWAs can use", but it's not a requirement.


So what exactly are you asking for here? A list of PWA api's that must be used all the time in every single PWA app? What's the benefit of that? Which application development API has such an asinine requirement in the first place?


> So what exactly are you asking for here?

I'm not asking. I'm telling, and quite clearly: ask three people, and you will have five answers as to what APIs people think PWAs can't live without.

Because of this you will always have people scream "Apple is killing PWAs" because they don't support a yet another random API.

And yet, see bullet point two in my original comment.


> Because of this you will always have people scream "Apple is killing PWAs" because they don't support a yet another random API.

I like the "yet another random API" phrase. It creates the impression that PWA APIs are being generated fast and furious, and apple is trying very hard to keep up with all these "random" new APIs. Yet, the reality is that apple has for a long time deliberately crippled PWAs on their platform by not supporting just 4, crucial, old and fundamental APIs. I will list these for you:

- Background Sync

- Web Push

- Before Install Prompt and Installation Banner

- Background audio for PWAs

They do not have to implement any "yet another random API". Just those four. Everything else is a bonus, considering this is Apple's Safari (the new IE) we are talking about.


> I like the "yet another random API" phrase. It creates the impression that PWA APIs are being generated fast and furious

They are

> not supporting just 4, crucial, old and fundamental APIs.

At least these two are definitely random APIs that you think are "crucial", and not everyone who complains about Safari lists them.

> They do not have to implement any "yet another random API". Just those four.

Just those four that you decided are crucial.


Imagine going 2000 years back with a book and showing it to some caveman. To you they are words, with meaning and purpose. To him, they're just random gibberish scrawled on some leafy stuff. He might even nibble on one of the pages and declare "it doesn't even taste good, what can be its use?"

Random APIs indeed. Lol


>Imagine going 2000 years back

Imagine having a discourse in good faith. Imagine not resorting to false analogies. Imagine not resorting to low-effort trolling the moment you run out of arguments. Imagine...

Anyway. I bid you adieu in a sibling thread, I'll do the same here.

Adieu.


> Imagine having a discourse in good faith.

haha. Seriously though, do you honestly believe that is what you are doing here? You think you are acting in good faith?

> Anyway. I bid you adieu in a sibling thread, I'll do the same here.

> Adieu.

You cannot even keep track of all your "adieus". Are you saying goodbye to a thread, or to an individual? Or is it all just random. lol

FYI: I do not respond to individuals. I respond to comments. Usually asinine comments because they trigger me. So the best way to say goodbye to me, is to think before you post.


You might have five answers, but all of them will agree that ios is lacking important ones.


They won't, of course.


I feel you are putting yourself, and others in a box. We all can gain more clarity from an idea by talking, writing or drawing about it. You don't have to be good at it, it will still improve your grasp of the problem. Of the three, writing is the slowest, meaning your mind takes more time and effort. And the time spent on something has a direct relation to its quality.

Long story short, you will become an even greater engineer by drawing and writing out your ideas.


You drink your glass of water, then continue burning forever and ever.


This kind of reminded me of the module pattern [1] popular with ye olde jQuery plugins. Just realized that hooks try to emulate what JS does natively, which is keeping track of all local variables in a functions calling scope. Meaning that if that function returns an object, that Object still has access to all the variables declared when that function run.

[1] https://stackoverflow.com/questions/17776940/javascript-modu...


> React famously asserts "it's just javascript".

I think that specifically deals with when using JSX, compared to other templating systems.


> and why, for example, you can't use a hook inside an if branch

Within the component functions's body, you may have many calls to the same hook, lets take useState() as an example.

Each useState() returns a different state variable, that is kept track of in a cache outside the component function.

On the first render, the state variables are created. On subsequent re-renders, the state variables are read from the cache.

The cache is a simple array. It keeps track of, and identifies each individual state variable from it's index in the cache array.

The first call to useState() gets slot 0 in the array, the second call gets slot 1 and so on and so forth..

For the tracking to work consistently, all calls to useState() within the function's body must also happen consistently.

In the same order, every time. Having a useState call within a conditional "if" branch breaks that consistency.


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

Search: