Better HN
topnewbestaskshowjobs
Log inSign up

ecmascript

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

Submissions

comment 3y ago · link · parent

I like linux and I want linux laptops and their companies to succeed but this page is so bad on so many levels:

- No information about price

- No shipping information / warrenty for abroad

- Weight and other measurements is only in american system

- DVD drive on a laptop 2023?

- Censored information?

- Barely any pictures, the single one that exist is so small so it's hard to see.

- Shitty design that looks like one of my first webpages

Sorry but you could do a lot better in just the presentation of your products.

comment 3y ago · link · parent

That may work for very easy tasks like animation but nearly all apps I have worked on and continue to work on is not going to work as stateless. People expect that they will just continue off were they left in an app and for some apps, you can't fit all the state as query params.

It's just not possible to calculate most stateful things. It's interesting to me since I am currently working on a state manager where we have many "apps" on in the same app. The user needs to be able to switch between apps and only some state is going to be shared.

Thus, I need to store the state somewhere and it's not going to be in the url or in some calculated way since it's based of user selections.

comment 3y ago · link · parent

How do I know if my model has this chipset? I have the S22 Ultra but I cannot find what chipset it's using from the settings.

Ordered it from their website and I am located in Sweden.

comment 3y ago · link · parent

Wow, posts like these kind of want me to sign up and become a customer. The honesty and openness is something I highly value and it's weird that this is so uncommon that you get surprised by reading stuff like this.

Seems like they have a good understanding what the problems are so they will most likely be solved sooner or later.

Good work and keep honesty as open as you've done so far :)

comment 3y ago · link · parent

I like Elixir and Phoenix liveview. It is a fresh take to web dev in my opinion. However, I have for the past couple of years worked on apps that really push the bounderies of what can be called a web app.

So my need for Elixir is limited and even on my spare time projects I find myself having a hard time justifying using Elixir since my invested knowledge in other technologies are so vast in comparison.

To get in par it would take me years of Elixir development and I have a hard time justifying it. For example, I want to build an ecommerce site, a perfect suitable case for Phoenix. The issue is, that I find it to be easier, faster and more reliable for me to just spin up a static site and then add some API layer for the checkout process.

I kind of want a need for Phoenix, but so far I haven't had a strong case. Unfortunately though becasue I really like the community and spirit it has. I think it is a language and framework that deserves much more adoption than it seems it has.

comment 3y ago · link · parent

Since it seems many of these chemicals takes hundreds if not thousands of years to break down, I think it's safe to say that the benefits of making them illegal outweighs the costs.

comment 3y ago · link · parent

Maybe I'm stupid but I don't really understand your first sentence. What does it mean? Care to elaborate?

comment 3y ago · link · parent

I think Rust is probably great for certain types of projects that need effecient programs but the main problem I have always had is not having enough time and Rust does the reverse for me in that regard.

It is hard to learn and takes quite some time to write compared to many other popular languages. For what benefit? Most languages are fast enough and the bugs I encounter is not bugs that Rust solves. I do web dev stuff, like I would assume most of us do, and the performance bottlenecks are pretty much never due to the language being too slow.

Granted, I understand completely why large companies that work on complex systems have a use case for Rust, the main issue I have with the community is that it tries to sell itself as a solution to everything when in reality the most likely scenario for most of us is that we would be more productive and successful in basically any other language.

comment 3y ago · link · parent

I love this article. It's funny and informative in a consice manner.

As a javascript dev with a security mindset the npm package repository and similar ones are kind of scary since it's very hard if not impossible to inspect every package for every update etc.

As soon as you run any framework or basically any bigger library at all you're in the hands of hundreds if not thousands of other people. It's like something big is just around the corner to happen and it can be used to make massive damage. If I were a state actor for example, I would use npm and similar tools to be able to shut down sites and systems on a massive scale at will if a war would break out or similar.

The thing is that if you would not use any libraries and similar it would be much harder to compete against the people and companies that do use all the libraries.

So what can you do? I guess the main thing is to use a language that has a massive standard library which you don't need so many external packages. That way, every change is at least audited and perhaps it's possible to audit all the external packages you need yourself?

comment 3y ago · link · parent

I love these kind of cheat tips that I can bring up whenever I design, thanks for this!

comment 3y ago · link · parent

Sorry for the late reply but HN didn't allow me posting it before.

I did send them an email. Only one replied.

comment 3y ago · link · parent

Personally, I really dislike DEI initiatives and think they should be avoided. Just treat everyone the same. How hard is it, really? Unfortunately, because I am a white man that express these thoughts I am now a racist and a sexist even if the ones who actually commit the racist/sexist/etc acts nowadays mostly are the ones who claim to fight it.

If more people would view people as individuals instead of some kind of collective, I believe a lot would be improved.

comment 3y ago · link · parent

Very few wants to pay for hosting crap, so yes I would also believe it would get rid of the overwhelming majority of the crap.

comment 3y ago · link · parent

Very short notice but otherwise I don't get why people are mad that it is going paid only. Try making an API request to Instagram or the other thousands of large websites that doesn't evne have an api.

If you like the service, just pay for it. I pay for a lot of services already and I do not see why Twitter must absolutely be free. Honestly, I prefer a world where people charge for their products because it will make it easier for everyone when people stop expecting great stuff to be free.

I also love how the people who mainly hate on Twitter now is roughly the same people that constantly said "If you don't like how it's being rung, build your own" etc. Now when Musk bought Twitter and thus got ownership fair and square, it does no longer apply?

comment 3y ago · link · parent

Seems cool and I understand you're getting hugged to death by HN right now but I could not use it because the search was too slow and as soon as I change focus to another window for example, it removes whatever I wrote in the search bar so unfortunately completely useless due to this bug.

comment 3y ago · link · parent

Honestly, I would believe some of them already do it. You're reading the news from a Swedish company anyway so we use to be pretty vigilant on privacy issues.

Sweden is a small player compared to Germany and France, so I am uncertain how much weight our words have.

comment 3y ago · link · parent

I don't understand how this is an argument for staying though, even if so many brings it up.

It feels more or less impossible to influence EU-politicians. I don't know who they are, what they do or barely how the EU system works. It is too complicated for laymen to get into in general.

If a local politician proposes a stupid law as this one, I can call them up on my phone while when EU does it you don't even know it's happening.

comment 3y ago · link · parent

Yeah I know, sorry to hear that but:

1. It is way easier to change the minds of the people in your home country rather than in several countries.

2. My country of birth, Sweden, has more history of rejecting stuff like that.

comment 3y ago · link · parent

I do not think so, Swedens population has a history of rejecting mass surveillance ideas and lot's of privacy advocating stuff has come from Sweden like Mullvad and The Pirate Bay.

Anyway, it is way easier for a citizen to affect your local politician rather than some other random countries politicians that don't care about you.

comment 3y ago · link · parent

This is really, really scary and what scares me even more is these proposals just seems to keep coming and in time some of them will probably make their way into law.

Used to be for EU but if any regulation like this goes through, I will immedietly vote for any politician willing to exit the EU.

Honestly, I am kind of for leaving the EU anyway since I don't like the large centralized power it has become. There is litterally few who understand how the EU works, there is practically no way of knowing how to change EU politicians minds etc. If I want to change public opinion in my home country, that is way easier than doing it for the majority of the EU countries.

It is barely a question of time until bad stuff happens in my view.

comment 4y ago · link · parent

I'm not upset, I am just curious and think the guy had quite the ignorant take on the whole subject matter.

I kind of disagree though, most websites do need javascript even if they simply contain only an article. Extremely few devs will care about the astonishing minority that disables javascript by default and saying that the websites that do this is trash, like so many people that favor this kind of thinking does, is being ignorant.

The javascript hate is strange because it's like people would hate programs written in python for no other reason than the program being written in python. I think it comes down to devs not being able to chose and that the only real choice is already made for them so then they end up hating it.

But even alternatives like Phoenix Liveview / Hotwire that minimizes the usage of javascript requires javascript to work properly. In time I believe most websites will ship a wasm binary and then this debate will be over forever and javascript will become irrelevant.

But what do I know? :)

comment 4y ago · link · parent

I have used Co-pilot when it was in beta and I use Tabnine at this very moment. From my experience Githubs Co-pilot genereates a lot bigger chunks of code and it have always felt like they're just copied from somewhere.

I would never pay for Co-pilot since its Microsoft who owns Github and now my fears about the product seems to have been proven.

comment 4y ago · link · parent

Wow. I wonder how you use stuff like instant messaging, music streaming and so forward. Do you also skip all browser based desktop apps because you hate Javascript so much?

Ignorance is bliss I suppose.

comment 4y ago · link · parent

I live outside a rural town in Sweden, maybe 10k inhabitants. But its about 20min drive to a larger town with about 100k inhabitants.

I love it. I have a big house for the price of a three bedroom apartment. Its very calm and no worries of the rising criminality that is soaring my country due to high immigration. I have a fucking pool and a sauna. 1gbit/s fiber connection like anywhere in Sweden.

I can still bike to the small cozy town and go to local bars and drink beer etc. I wouldn't want to go to the large town anyway since it's too many hostiles there.

I can take walks when I work remotely with my dogs, I can run in the forest. I can breathe good air quality and grow my own stuff in my large garden.

To answer your questions, no I don't miss the city life. Not the slightest. If anything I loathe it more and more for every year that passes. I didn't go to meetups or similar events that often anyway and I talk to more people now than when I lived in Stockholm. People in larger cities don't really speak to one another. I kind of hate modernity though even if I grew up in the capital. I think there are lots of issues with the modern city life so it's not for me. I have a hard time understanding why people want to live there. If I really want to go to an event, it's not like I can't travel for the occasion.

comment 4y ago · link · parent

Interesting, wasn't this possible before in the states? In Sweden we've been able to access our medical journal for years, not really sure of when it first arrived.

comment 4y ago · link · parent

I think you also can get it by just having unpopular opinions. Hackernews used to be much more nuanced than it is today imo.

comment 4y ago · link · parent

Just another reason not to use instagram. High horse morality seems like something that should belong in the past.

comment 4y ago · link · parent

Of course they have, now they have a reason to escalate

comment 4y ago · link · parent

Sorry for being overdue! I have just asked once a year when I remembered it, love the fact that someone else appreciated it enough to continue asking when I forgot

comment 4y ago · link · parent

Twitter doesn't even let me click the link unless I signup or login. Great website.
1
8910
28