Better HN
topnewbestaskshowjobs
Log inSign up

ecmascript

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

Submissions

comment 6y ago · link · parent

So because you're a CEO you can't believe whatever you want in your spare time? Or does the same rules apply for everyone that works at Mozilla? If so, how the fuck does anyone know what is a fireable opinion? It's not like he used company resources to promote his beliefs or enforced his beliefs on others. What Mozilla did to Brendan is essentially to enforce thought crime on their own staff. It's kind of hard to take them seriously when they say they value integrity after that.

This idea of an outrage culture is what makes Mozilla go down the shitter. No one cares about that shit except a very small minority in SF.

It's not like Google or most other for-profit company cares about marriage inequality either. Just because they don't explicitly say it out loud doesn't mean they care. They care about profits and market dominance only. If Google would make more money being anti same sex marriage, then they would most likely oppose same sex marriage and spend a lot of money on lobbying for the opposing view.

I'm certain that firing Brendan was probably one of the worst decisions Mozilla has taken so far. I trust Brave and Brendan far more on privacy issue since they only care about that and don't shove woke politics onto my face. I'm convinced that Brave will be larger than Firefox in market share sooner rather than later mostly because of this reason alone.

comment 6y ago · link · parent

Mozilla essentially did a "get woke, go broke". They fired Brendan for ridicolous reasons, they focused on products that were useless and were really focused on spreading propaganda for woke causes.

I still use Firefox everyday since it's the best browser for linux but I also use Brave. Mozilla as a company in my eyes are a bit lost and they need more focus on their technology. It seems like they have realized this in the last two years or so and I hope that trend will continue. Firefox is awesome, focus on privacy is awesome. MDN is awesome. If they need money from other sources than Google, why not create some kind of subscription service for their MDN docs?

There is a bunch of things they actually need to fix like lack of PWA support in firefox (still) which is pretty bad that they don't have that enabled by default.

Focus on what matters, no one cares about your woke politics in the long run.

comment 6y ago · link · parent

> So... I don't know how you're doing this, and admittedly I was away from frontend dev for a few years so I'm sure I missed some pain in the meantime, but I recently started a project with Next.js, and... this is the exact opposite of my experience. SSR is super fast, it only happens once, you get static HTML output and your site is basically as fast as your web server/CDN. All of this without any config.

This is only partly true if you use a big framrework like Next or Nuxt but it also means you will heavily buy into whatever these frameworks choose for you. For example, a node backend.

The pages are not faster, especially after adding some complexity like most websites require. The time to render is higher, input lag is commonplace. You're sending the html for that site + all the javascript that needs to be parsed to get that SPA-app that everyone wants.

And as soon as you step outside what the framework requires you too, for example using another backend. Then you're back to a classical SPA-application.

I like SPA-applications that are done well or when they are required, but the complexity to create one is a lot higher because the developers needs to reimplement what the browser originally did for you.

comment 6y ago · link · parent

Wow, such an elitist comment.

So you mean endless webpack configurations with tons of javascript libs are more maintainable?

The reverse can be said for SPA-like frontends in which you put forward as the better choice. It's unnecessarily complex and one error and the whole page becomes unresponsive and crashes. How many times haven't we all clicked on a button and because the developer didn't handle some error in a good way the entire page must be reloaded and all state is lost?

You want a good placement on search engines? Well, good luck chuck. Unless you utilize server rendered pages you are out of luck basically. This is also a big hassle. Also server rendered pages are usually slow as fuck compared to a normal multi page app.

I am using lit-html myself and like it, but it's not necessarily better than dom based templating imo. For some things I believe it to be worse. Right now I am on a slow and shaky connection and will be for a while, sites like HN which is a classic multi page app without any javascript loads fast and works great. Pages like youtube and the new reddit (old works great) works like total shite.

comment 6y ago · link · parent

Cool, but the main problem I have is that I don't have a robot to program and the complexity to build one is way too high for me.

comment 6y ago · link · parent

He doesn't show any statistics from his own blog to back his theories up.

I don't know, I don't think these are any valuable SEO lessons imo. The tl;dr of this post is "I find SEO optimization boring so I just write whatever I want and don't think about it".

There is nothing wrong with that statement except that it isn't a SEO lesson. Sure quality over quantity is a good SEO lesson. To provide stuff of value is good for SEO but that goes without saying.

SEO is about optimizing your content and the value you already bring. If you load the whole blog async for example, it won't be very good for SEO no matter how good or helpful the content it.

comment 6y ago · link · parent

Maybe houses have many bathrooms, but my experience from the US was that it is incredible hard to find public toilets which is very annoying when you're a tourist.

When we found one, they were pretty disgusting. Even places like Starbucks didn't even have a toilet. I mean what the hell? How can you serve people coffee which makes stomachs rumble without having a single customer toilet?

From a European perspective, this was very uncomfortable and I also have a condition which makes my stomach untrustworthy.

comment 6y ago · link · parent

What helped for the gaming part for me is that I went 100% linux on all my machines. Since very few games work great under linux it solved my issue with gaming too much.

I'm still addicted to youtube tho. Haven't really solved that part yet.

comment 6y ago · link · parent

Ironically, the archive link you provided also doesn't load for me.

comment 6y ago · link · parent

Would be cool but I don't trust Google enough. I rather pay more than to host on Google's infrastructure.

671.

Spotify will use targeted podcast ads (for all users)(theverge.com ↗)

2 points · by ecmascript · 6y ago · discuss

comment 6y ago · link · parent

Laravel, php and https://forge.laravel.com.

You can get basically the same functionality with Docker in other languages as well. But setting up Docker is a bit more complicated as it requires you to configure it properly and doesn't really secure your vps so you still have to have basic linux skills to configure ssh to disallow password logins.

A good thing can also be to setup a firewall or fail2ban if you intend to keep password login available for some reason.

I think you'll never really can avoid setting up stuff, even if you use AWS, Azure or GCP it will still require configuration even if a lot can come out of the box.

comment 6y ago · link · parent

What I am saying in northen europe where I live, it's uncommon not to have access to fiber.

comment 6y ago · link · parent

Well, with the advent of internet and better computers I guess producing music and distributing it became so much cheaper and faster the price dropped.

Since also many (like me) pirated their way in their teens I never purchased many cds. I got an mp3 early from japan with 512mb of disk space. This was huge, all my classmates had like 128mb or less.

It was clear for me anyway that I would never pay a lot for the music because there was simply no reason to. I haven't really experienced the time where it was a norm to spend a lot of money on cds.

I am 29 and this kind of experience you have seems to become more and more uncommon as time passes ;)

comment 6y ago · link · parent

I don't get whats weird about that? You need some kind of device in order to listen to Spotify and today there is a lot of services competing with Spotify.

Spotify also have a huge number of free accounts that rely on ads which probably means less profits for Spotify. Everyone still needs to actually spend money to get the device but you don't really need to spend money to listen to music. Also, while Airpods is a "one off" purchase, a lot of people don't like having subscriptions (like me for example).

I have spent hundreds of dollars the last years on headphones (not Airpods tho) but I hesitate for a long time before starting a subscription service. Not because I cannot afford to, I just do not like subscription services.

Spotify, Youtube Music etc provide a free service. With adblocker, music.youtube.com is totally free without any ads so I have a really hard time to justify the cost of another paid service like Spotify.

Edit: if you downvote this, please comment on why? What is incorrect about my statements?

comment 6y ago · link · parent

I have 250/100 mbit/s, my brother has 1000/1000 mbit/s. Both are included in our rent.

I don't like Stadia for other reasons but saying that consumer access is not capable because you live in a country that sucks on that part is not really a good argument.

Do you think modern cars are a bad idea as well because there are parts in Africa that doesn't have good roads?

comment 6y ago · link · parent

I think the user suggests that the money never change owner, it just becomes laundered.

For example. If you get money in some illegal way and need to launder it. You can use it as a "customer" at your own coffee house and pay a ridiculous amount for a latte. The money then goes to the bank and become laundered.

That is how money laundering work afaik.

comment 6y ago · link · parent

Maybe because some of the "science" today is more about spreading some political view rather than anything else.

For example, there are a lot of gender studies that are presented as a science in my country which I believe is complete bullshit and an ideology.

People are pushing shit like that today and I believe we need more of the hard sciences and less of the soft sciences.

comment 6y ago · link · parent

I don't think the majority of people had chat apps on their phones even in the late 2000s.

I remember a little of the pre smartphone days. Basically no one installed any apps that didn't come with the phone. I tried to download some apps on some symbian device but experience was shitty as hell and many times they didn't even work for some unknown reason.

comment 6y ago · link · parent

Well, 5 years may have been a stretch. Maybe more like 10+.

Doubt it as much as you want but we use several newer apis and phones wouldn't be powerful enough to run the damn thing 10 years ago since it's a web app.

comment 6y ago · link · parent

> Could you make a few examples?

Sure, not in any particular order (and there's a lot more)

1. Users can use drag and drop functionality on areas, making updates to the backend as they are moving stuff around. To have the webpage reload would not be an acceptable experience.

2. File management. Users can upload files and create folders, refreshing the page after every update wouldn't be nice.

3. Users can retrieve data on many objects. Open specific objects and see it's data in popups. Edit the data, add comments, upload images etc. Wouldn't work very well with a refresh.

> Why couldn't the requests be done by the back-end?

When the backend can do the requests, it does. I meant doing requests to our backend and to static resources.

> Absolutely, but isn't that exactly the point of the article? Working with a framework can make development massively easier - however, the benefits of this only go to developers, while users have to bear the costs.

Not really. I am saying that many new apps aren't simple crud apps anymore.

comment 6y ago · link · parent

While I completely agree with most of this article. I think some of it is untrue. A lot of the new functionality is needed for a increasing amount of apps.

For example, I work on an app which wouldn't be possible on the web 5-10 years ago. It's a single page app because it needs to be. It uses a lot of javascript making many requests because we have to and the customers requires it. We could probably make it a lot faster, the issue is that the amount of functionality that we are trying to include in a short amount of time leaves us no other choice than to include yet another library etc.

I know this case maybe isn't the kind of app the article is targeting. But I think even "simple" apps today often include some part of complexity that would be hard(er) to do in a "old style" multi page app.

That being said, I use a lot of old style apps. I use the old reddit instead of the horrible new one. I use HN, I use fastmail so I do think speed is very important.

comment 6y ago · link · parent

This is one of the big reasons I bought a projector instead of a large tv. Because all the large(r) TVs came with "smart" crapware in them.

I just need a HDMI port. Please. Let there be options for us that's not only a friggin' projector.

comment 7y ago · link · parent

Yes, it certainly is a good decision. For example, if we had no protections like customs China would easily subsidize any market they wish to gain monopoly of the market in question.

This is happening even WITH protectionism like customs and tolls. Chinas government subsidize stuff like steel production which makes it hard for companies like SSAB in Sweden to compete with them since they sell their steel cheaper than the cost to produce it.

How shall countries protect themselves from countries that act like that without protecting their market? It's extremely naive to think that countries that are rough dictatorships will play fair and nice.

EU should have A LOT higher customs against countries like China. Trading with them on a fair level gives them too much economic control which is good for us in the short term but incredibly bad in the long term.

That is why south park can make an episode like "Band in China" today because we have already given them a lot of control.

comment 7y ago · link · parent

How is their action discrimination? That's silly. Obviously it would be discrimination if they wouldn't hire people because they have a specific country of birth but that is not what they are doing.

They are afraid that the governments of China and Russia could easily force people who live in those countries to give up data. That is a valid concern since that is happening in China.

I know how it affects the economic. Just look at where stuff is produced. It's hard to find things that are produced in Europe or the states. You may say that this is a good thing but I disagree, the same thing could easily happen with software and that would be a dark day in my opinion.

I don't care if that would make me "poorer" in the sense that I can have less material goods. It would still be a better world in my view and better for the environment. I rather pay more for something produced in the EU than to have something shipped from China just to save a few bucks.

comment 7y ago · link · parent

What? For me this is a big reason on why I want to use Gitlab.

I am european and I think you're being pretty stupid. You celebrate that the company you work for hire people in Russia rather from where you live. You seem to fail to realize that if all companies in your country would do that you would soon find yourself out of a job since there is always some place cheaper.

No one is saying russians aren't knowledgeable or good at what they do. Maybe you should read what they actually write instead of simply projecting your straw man ideas onto them.

comment 7y ago · link · parent

Yes I would purchase something that solves an issue I am facing.

I think the lack of a standard way of doing things hurt for-profit development rather than the resistance to pay. For example, it is hard enough to make an application work well with one DE and in Linux there is plenty.

That is why I believe web apps such as VSCode, Discord etc are the saviour for linux desktop. With that, creating a cross platform environment is rather easy.

comment 7y ago · link · parent

Dude, it is Vice.
1
222324
28