Better HN
topnewbestaskshowjobs
Log inSign up

ecmascript

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

Submissions

comment 5y ago · link · parent

And yet php pretty much power most ecommerce sites in existance. Sure maybe it isn't good enough for a banking systems, the NASA rovers, life supporting systems or similar stuff. But it certainly good enough for most web apps.

comment 5y ago · link · parent

> Which url? How do I find this URL? What happens when that package specified dependencies?

Litterally anywhere. On Github, on the Deno webpage, in a slack chat message. It is how the browsers has worked for ages and there's never been any issues with that. If the package has deps Deno will download them too in the same manner.

It also means that if there is any problems or dissatisfaction in how your dependencies are hosted you are free to change it to another hosting solution.

> These are empty words that literally mean nothing. The rest is at the link so as not to have the same conversation in several places.

What do you mean it doesn't mean anything? It means that there is not one single place where you have to get your dependencies from. You may think of it as something negative, but I think it's great.

comment 5y ago · link · parent

> You don't make a programming laguage as an after-thought.

Why not?

I thought programming languages was just a tool, a means to an end. If that is the case, which I believe it is, it shouldn't really matter in which way it is created.

I would pick a tool that's grown out of actual needs over some guy thinking in the basement for 20 years any day of the week. Because the first one will solve problems and the second most likely won't.

comment 5y ago · link · parent

From anywhere on the internet.

> So, how does deno help?

By decentralizing the package hosting.

comment 5y ago · link · parent

> Is Deno ready for production?

Yes.

> What limitations have you run into?

Libraries that exist for node that can't easily be ported over that don't yet exist for Deno. But that is basically it. In the beginning it was a bit hard to keep up with the rapid changes as well but that seems like a positve thing anyway.

comment 5y ago · link · parent

> You still need packages

Yes but with ES modules you can just import them straight into the code and there is really no need for a package manager.

> Does Deno implement its own TypeScript compiler? Even if it does, it's entirely at the mercy of Microsoft who are the only ones who develop Typescript specs.

This may be somewhat true. However I am not using typescript so I am not really sure about this.

My point is not really tied to the language typescript which I am sure will continue just fine. What I am much more worried about is all the packages hosted on npm. At any time Microsoft could do something to restrict it in ways I can't control. Highly unlikely that something extreme will happen perhaps, but I don't trust Microsoft enough.

For example, I could easily see them forcing everyone to use github for node packages in the future etc.

comment 5y ago · link · parent

Honestly for me it is:

- Follows the ecmascript standard and supports browser apis

- No npm, no Microsoft lock-in

- So far, no political bs like node has had

comment 5y ago · link · parent

This text seems like it is stuck in time. I wouldn't be able to do most of the stuff I am doing without libraries and frameworks. It would simply take so much time redoing the same shit that others have done before so I couldn't finish my task at hand and solve the problems I actually care about.

Plus, just look at this dudes website. Sure it works just fine but it's nearly impossible to read on my large screen. It feels like it was designed for an older CRT screen and has never been updated since.

I wonder how people like this can survive in todays world with the requirements people have on web software. You will sooner or later be out competed by a guy using a web framework.

comment 5y ago · link · parent

Looks like a nice set of video clips but what I can't stand with documentaries like this one is the preface. That everything was great and wonderful then suddently there was thousands of talibans there making decisions.

I mean, the talibans are many because many of the population supports them. They win because as soon as western forces leaves no one opposes them because there are too many that are not willing to fight or simply want them to be in power.

This video seems like it is a bit of propaganda. Unfortunately many afghans supports the talibans and I think it would serve them better to acknowledge that fact instead of trying to wish it away. Islam is a crap religion and ideology, there is no nation with a majority of muslims that I would want to live in.

Until videos like this acknowledges that islam is the root cause to the shitty situation in the middle east, I won't listen.

comment 5y ago · link · parent

Alright I get it and I am sorry, I will try to do better in the future.

But for my curiosity, does the rules not apply for the posters as well? Is it ok to post stuff that is inherently racist or promotes segregation?

For example, if someone would have made a dating site for nazis would that be ok on HN as a post and when the obvious comments are coming, I guess those would get warned and removed?

comment 5y ago · link · parent

Is it really that nasty? Is there no idea that is horrible enough to warrant it?

By the way, how did I break the guidelines exactly? I understand that you guys simply are protecting your investments but come on.

372.

Pregnant man emoji added to draft(emojipedia.org ↗)

5 points · by ecmascript · 5y ago · 2 comments

comment 5y ago · link · parent

> If they really think that why not just ask it to leave entirely?

I don't think that the french authorities think that, it is just my personal opinion. But it is good that at least some european authorities starts to kick back on their anti-competitive behavior.

comment 5y ago · link · parent

> Do you hate Google THAT much that nothing matters if they are hurt?

Pretty much as long as it's not completely unreasonable.

Bad practices are used by american mega corporations all the time, it is nice to see them get a dose of their own medicine.

comment 5y ago · link · parent

I don't feel any love for main stream media, but it's super nice to see a big fine to the IMO crappy company Google that clearly deserves it.

Google is bad for business in Europe.

comment 5y ago · link · parent

Woz seems like a good guy IMO. Too bad the company he started is pretty much a worst offender in this case but it is a good move by him that gives the industry a strong signal that they're doing something very unethical.

comment 5y ago · link · parent

I have a dog so I take around 21k steps per day. I don't understand how people I know manage to walk less than 4k steps per day which some do sometimes.

Altough, I moved to a country house and every time I need to go to the fridge for examples I basically take 2-3 times the steps I did in my apartment before. When I need to get eggs I need to go outside, walk to the chickens and retrieve them.

Small things like that adds up and now I more often than not take 150k steps per week. I think this is good for my health.

378.

Sensor.Community is a contributors driven global sensor network(sensor.community ↗)

39 points · by ecmascript · 5y ago · 14 comments

comment 5y ago · link · parent

Microplastics is probably a big one. We're just making more of it every year and they will never disappear. It's incredibly stupid and everyone just keeps using it, even in stuff like body wash, sunscreen and toothpaste.

People like us should get together and fill the world with at least sensors so that it becomes more visible.

comment 5y ago · link · parent

If you enjoy your work, do you really need to grow? You can always try to make things grow outside of work, like plants.

comment 5y ago · link · parent

Yes Javascript is weird but at the same time you almost never face many of these issues in the real world. Bad things exist in all languages, for some maybe there isn't the same in the sense of actual quirks in the language but rather other things that limit the language in some way.

I have been a web dev for about 10 years now and I rarely if ever run into these issues. More likely, I face issues and bugs regarding state and just flaws in the logic rather than issues based on that the language wasn't designed so great.

For sure this can be worrying if you do something really important but at the same time you have a lot of other languages to choose from.

comment 5y ago · link · parent

> Document your knowledge. Every time someone asks you a question, they are highlighting a gap in the documentation. Take the chance to write the answer down (in a document, bug, code comment—wherever) so that the next person doesn’t need YOU.

This and many more of his advice are very good for companies but suck for the individual.

I would say not to follow the authors advice because it will make no one reliant on you. It is also incredible time consuming and will only weaken your position.

This article is basically saying not to drive you car so much or else it won't be fresh for the next owner. This is corporate simping.

comment 5y ago · link · parent

Ok well it seems kind of cool, maybe I'll try it out. :)

comment 5y ago · link · parent

I completely disagree with you, bootstrapping your own internet company doesn't cost a lot. Except effort and time.

You can fund it yourself with basically any income. Of course you will never get anywhere with an attitude like the one you currently have.

It's not the skill or resources that is the problem, it's the mindset.

comment 5y ago · link · parent

Ok so it is a static site generator. Wasn't really obvious from the landing page.

Doesn't almost every large front end framework have a static site generator? I think Vue for example has it built in for example.

Why would anyone use this over the already existing one in their current ecosystem?

comment 5y ago · link · parent

I read "how astro works" but I don't really get it. How can this work for dynamic content? Does it render every possible scenario?

What if data changes?

comment 5y ago · link · parent

I'm all for SQLite and I am a fan of the author of the project but for a webserver I have turned my back away from Nginx for https://caddyserver.com/ because of the simplicity.

Caddy is just really awesome as a reverse proxy (2 line config!!) and I am in the processes of moving all my projects to it. It is fast enough as well since other things will be the bottle neck way before that.

I am not affiliated with Caddy in any way, just blown away by the quality of it.

comment 5y ago · link · parent

Why not build something on your spare time and try to create your own job then?
1
121314
28