Better HN
topnewbestaskshowjobs
Log inSign up

ecmascript

902 karma · joined Mar 1, 2019 (7y ago) · 822 submissions

Submissions

comment 6y ago · link · parent

> Good websites use graceful degradation.

Well not necessarily, if you are like 1-2 devs it's really hard to manage to make such a web application if it's a complicated one. And for what reason? So that you can cater to the 0.00001% of the users because they hate javascript for no other reason than that they hate it?

> Of course I couldn't do photo editing with that concept in a browser, but that's not what I use a browser for anyway.

Maybe not you, but I certainly use my browser for that kind of purpose as one example of several that won't work with javascript disabled.

> Having this fallback also has the advantage that it helps disabled users and users on poor network connections.

Yeah maybe having an alternative for drag n drop helps disabled users but just removing javascript doesn't help them at all. I would actually argue the reverse. With javascript you can do text to speech for example for people that may have bad eye sight. On poor networks a well written PWA works a lot better than a traditional server side generated page, depending a bit on the application itself of course. I would agree that because SPA apps need to do stuff the browser does for you, people simply don't build resilient enough apps that handles failures well.

There are many bad SPA apps out there, but also many good. I was travelling and used Airbnbs web app that was terrific when I had a bad connection. I could still open up cached content and access a lot of stuff even if some things wouldn't load which was very good for me.

If you don't want to use javascript but still want a SPA like feel there are alternatives like Phoenix Liveview for example. They still use javascript, but it works without it since it's just server side generated stuff. Unfortunately it doesn't work well on bad connection or at all when offline but I guess most sites would be ok with that trade off.

comment 6y ago · link · parent

> try to do as much web browsing as possible in Links2. It's a fast, lean browser with zero support for JavaScript and CSS. The latter means some sites look a bit funky. The former means some sites won't work at all. My usual strategy for sites that won't render without JavaScript is to simply ignore them. If they can't produce something worthwhile without scripting, it's probably not worthwhile at all.

Honestly, I have a huge problem with this mentality even if I can agree with most other stuff. There is a lot of features and apps that are very useful that won't work without javascript. C'mon, this is a really bad point. It is not javascript itself that is bad, it's how people misuse it. Why would native apps be any better? People include tracking and alaytics in those as well and it's just even harder to block / know what actually gets monitored since the application is likely not sandboxed.

I use many apps that require javascript that is really good and privacy motivated. Apps like, Fastmail.com, DI.FM, podd.app etc. I use adblockers and a pihole to take out the worst offenders and tracking scripts.

The solution is not to go back in time and try to convince people to use sites without javascript, that will never work because there is a lot you cannot do without javascript. Drag and drop for example, video conference, photo editing etc etc. There are so many examples of apps that weren't possible before but now is. The web is clearly the best platform to be on since no one company can block you and you can self publish whenever you want. You are in control, not some shitty american company. I have a hard time actually believing that this person never use anything else than that shitty browser. I just don't buy it because the user experience is horrible.

Instead, it's better to lead by example. Build apps that challanges the modern overuse of javascript and tracking / analytics. Don't be the old guy that simply complains how everything was better in the past, you couldn't do shit on the web in the past and now 80%-90% of the applications I use on a daily basis is web based.

comment 6y ago · link · parent

> bogus self-employment

What do you mean by that? I don't understand. That you wouldn't be a real professional or what?

484.

Plypp Piano - play instruments in the browser(plypp.net ↗)

7 points · by ecmascript · 6y ago · discuss

comment 6y ago · link · parent

If you work in Stockholm you could easily get closer to 5k or even above that if you have some experience. If you work somewhere else the figure could be smaller.

comment 6y ago · link · parent

In Sweden, what you get paid isn't really your full salary. Sweden has a hidden tax system called "arbetsgivaravgift" which only the employer can see. It's hidden and not labeled as a tax because it tricks people into believing you're paying less taxes than you actually do.

So when you think you're paying ~32% income tax, in reality it's closer to 50%.

comment 6y ago · link · parent

Peertube seems like a very nice idea. I think I will create my own instance.

But is it possible to configure a locked down instance, so that not anyone can upload videos? Because I would like to publish videos myself but prohibit others from uploading videos on my instance.

Thanks

comment 6y ago · link · parent

> They are easy and painless.

They usually are, for most people. But for me the first time I did it was the most painful experience ever. So painful in fact that they had to abort it and book me for another time and that time I went under.

That was before my surgery and when my intestines were all over the place. That being said, after my surgery in which they corrected the placement of my intestines, it was painless. That time, the last time I did it, I chit chatted with the doctor and nurse and it was funnily a pretty relaxing experience since I'd gotten some mild drugs before because I was nervous it would hurt as it did the fist time.

I have done a colonoscopy 3 times.

comment 6y ago · link · parent

The thing is, it's obvious that it is a political piece intended to stir up confusion and anger towards the current administration.

When you point out the very obvious flaws, it gets you downvoted as well because orange man bad. HN has become a sad place just like everywhere else.

comment 6y ago · link · parent

So why should we not include children of all ages and retied people as well then? They are also unemployed.

The reason you don't include full time students is the same for children and retired people. They are on their way to becoming productive citizens or have done their part for society.

comment 6y ago · link · parent

> If you measure the unemployed as anybody over 16 years old who isn't earning a living wage

That seems like it will give you a really bad number because they are for sure unemployed but a lot of people in the age 16-20something will go to school.

I didn't earn a living wage until I was 22, but I also earn pretty well nowadays and pay a more taxes than most of my friends.

Seems like the author has come to a conclusion before writing the article. A pretty dishonest piece imo. Because if you include students, why not include children and retired people as well?

comment 6y ago · link · parent

I have a quite rare condition called intestinal malrotation which basically means my intestines didn't rotate completely before I was born (apparently they do rotate).

I had surgery and I am basically living a normal life, I didn't have symptoms until I was about 25 years old. The thing is it made me lactose intolerant and very sensitive against sleep deprivation.

What basically happens is stomach pains from time to time and that I need to visit the bathroom quite often, sometimes in a big hurry.

I'm living basically as before, eating too much lactose still and getting too little sleep. I am starting to get better on it though.

Get enough sleep is a big point in general I believe if you want to your body to be healthy. Also eat healthy and move a lot. I have a standing desk and tries to stand most of the day. It helps a lot.

comment 6y ago · link · parent

Since when is asking for sources to ridiculous claims taking it into a flamewar? Extrqa ordinary claims requires extra ordinary evidence.

comment 6y ago · link · parent

The main problem with media today is that I don't want to subscribe, I want to pay for maybe a specific piece. But all media outlets require one to subscribe so I won't even consider it.

comment 6y ago · link · parent

"Smart contracts" has always seem incredible dumb to me. Code that controls how money being transferred that cannot be updated or changed even if a bug is found.

Awesome design. It is like the opposite of what I would want to control my money in any transaction.

comment 6y ago · link · parent

I honestly think that is the main reason though. They are like many others obsessed with identity politics and push away everyone else that disagree (like myself). They send money on worthless (and racist) diversity projects, feminist filmmakers, random projects that they hope to bring in another source of revenue etc.

For example, their VPN service is not actually theirs, it's a Swedish company called Mullvad that actually provides the service. I am already a user of Mullvad and I can't get Firefox VPN. Isn't that kind of strange? Even if I could get it, why would I pay Mozilla extra money for a service that I can get cheaper directly from the provider? Not only that, but Mullvad accepts cash and I believe Mozilla VPN probably won't. So the privacy aspect is already bigger with simply using Mullvad to begin with. They go into the VPN business because they want to make money but paint the picture of that they want to protect the privacy of consumers. It's just a dishonest picture they're painting and I think users sense that a mile away these days. It's the woke mindset that they pretend to care but doesn't really. They just follow like so many other tech companies what's popular to care about in California and completely forget that the world is larger than one US state. And even if they did care, really a VPN service? That market is so overly saturated by hundreds of services it doesn't require a genius to realize that this will be a hard thing to make any kind of dough on.

Their ventures into other things have mostly been failing ones and if they really want to get rid of google the obvious choice is to monetize Firefox itself. I, like many others, would gladly pay for Firefox if I knew it went to the development of Firefox and maybe to other projects that benefits it like Rust, MDN etc. But if I donate today, my money will most likely go to Bakers ridiculous salary.

comment 6y ago · link · parent

In this case it probably is though. They have done everything else than focus on the core product since he left and they continue that trend today even if it's failing one.

comment 6y ago · link · parent

Since when is doing stuff for an open standard that will have backwards compability for likely decades following a hype? The hype technologies is imo android and ios apps. They will only work for a few years and soon enough their UI will look so ugly because of the hundred times Google or Apple has revamped their entire UX so they deprecate all apps that don't update SDK version.

Then, the clients have to replace their devices because otherwise they can't run the new app versions. This is literally a hype.

I on the other hand dont use any big frameworks, I just do web apps after the open standard that everyone agreed upon. You're a slave for whatever platform you develop for.

In 10 years when people run iPhone 50 my apps will still work as they do today or probably better due to better hardware. Can you really say the same of yours, given no updates are made?

comment 6y ago · link · parent

I would like to live about a thousand years, but I'd be happy for a few hundred as well.

comment 6y ago · link · parent

I'm in my thirties right now and I feel a huge sense of urgency already. I hate that life is so short :(

comment 6y ago · link · parent

> So they hire a developer who was just like you "if it can be a web app then should be a web app"

I can see arguments and I am not like that, you're portraying your predisposed view about me onto me.

This argument you have is not really saying a lot to me actually since you could use Rpis with a web app as well? Tbh I don't think you save that much battery on just making it native. You complain about battery, but fail to mention that Android phones needs to be switched to be able to use the newest api:s in android development. So if you want to use new shit, your client needs to update their phones, something they would not have to do if it were a web app. But in your case, I would probably also have made a native app but that app you built don't really describe how most apps are. You are talking about an exception to the rule IMO.

I can give you a pretty similar counter example:

I worked for a client once that made a newspaper. This client has a list with all shops, kiosks etc that sell their newspaper in a database. To save fuel and to be efficient, they used an old Java Swing application that would every day calculate the most efficient route for each driver. It did a lot of other stuff as well, but that isn't important for the story. The app was fine, it was just a pain to develop and release. Because it was still actively developed. In every release, a jar file had to be distributed to each user of the app since there was no good way of auto updating the app since it was so old. Any way, the users of the java swing application would run the calculation functionality and it would give a result that was printed out and given to the drivers.

What happened later was that the app was remade and presented in a web page. Each driver didn't have to wait for a paper printout of the result of the java swing app, they could simply open their phone, visit a specific url and see their route for that day. There was nothing to install for each driver, since drivers was often changed, no need to wait for some guy that had to print out a paper for them and everything was basically automated.

The benefit here of a web app was great, since as you say truck drivers aren't the most tech literate people in the world, managing a native app here would be a great pain.

So what can we learn from our examples? That the needs are different. I get that. I never said every app should be a web app. But if you can make it a web app, you probably should at least consider it. The benefits usually outweighs any negatives. My entire point was never to not make native apps, it was to avoid them if possible.

comment 6y ago · link · parent

I completely disagree. Stability isn't better when you do everything yourself, actually in my experience, it's worse.

For example, if I want my users to be able to scan a generated qr code, I am not going to write a qr code generator myself since that is quite a lot of work. I will use a trusted library to do that for me.

In this way, the library will have had a lot of eyes, patches all the time fixing bugs and so on. If I would try and make a QR code generator, I would most likely make a lot of mistakes and bugs that more seasoned people that have experience in making such functionality already have experienced and fixed.

If I stopped writing code for the company I work for today, the application would work just the same in one year, in two years etc. I don't get why a desktop app would be more stable than a web app in that sense. I would argue a web app is more stable since we don't really break backward-compatibility in a browser in the same way people do in desktop operating systems.

Sure there is something to be said to not use a big ass framework for some small app. I think frameworks usually brings more pain than it's worth in the long run. But having dependencies in modern applications is a must, even in desktop applications because people expect and demands it. If you would not use dependencies, your customers would choose your competitors most likely.

comment 6y ago · link · parent

Yeah so lets continue throwing money on a company that actively prohibits you as a developer to actually make your game for the web. /s

By giving money to apple and by continue to build for their platform only ensures that this will remain true in the future as well.

comment 6y ago · link · parent

If SpaceX can have a web app for their astronauts, I think so can you even if it's "mission critical". I just don't see any argument why a web app cannot be mission critical and work just as fine as a native app would.

Ok if you make an AAA-game title with extreme need of performance or if you make a database engine or something. This is however a very tiny minority of apps with extreme performance needs but again probably 99% of the apps on the appstore doesn't have those requirements and could be done as a web app.

I understand why you don't want code running medical equipment be dependant on some garbage collection or whatever, but no one is saying that we should use javascript for your heart monitoring equipment, unless it can fail and it won't kill you or hurt you physically.

comment 6y ago · link · parent

Sure that is true, but it is fast enough for many apps already and will be even faster in the future or do you really argue that most native apps on Apple Store couldn't be done as a web app?

comment 6y ago · link · parent

I think that is a very pessimistic view of what you actually can achieve in a browser! With web assembly a lot of those things actually are very possible today.

comment 6y ago · link · parent

I watched this as a kid and I remember being very inspired by it and a few other movies. This together with Diablo 2 cheating/modding was the thing that made me interested in computers to begin with.
1
161718
28