Better HN
topnewbestaskshowjobs
Log inSign up

staticelf

2,500 karma · joined Dec 4, 2013 (13y ago) · 1,025 submissions

Submissions

comment 4y ago · link · parent

Into what topic? I have no problems using Kyiv if that's what Ukranians want. I do not require any other explanation or further discussion. I am just no that politically correct that I care either way.

comment 4y ago · link · parent

I have a gut feeling that Americans care more about this than Ukrainians themselves. I am no fan of russia and using the "incorrect" spelling kiev instead of kyiv doesn't imply that IMO.

comment 4y ago · link · parent

I am eagerly waiting for their post about how SQL GROUP BY is racist and must be avoided.

comment 4y ago · link · parent

A couple of years ago Tinder only hid the profile pics with CSS in their web client so I installed a custom css to get the functionality you had to pay for free.

Unfortunately, as I recently got single again I discovered that this wasn't possible anymore.

To be more on topic, Tinder is a very american company. I haven't had personal issues with the company but I think their new features of weird matching from some shitty interactive videos is a sign of classic over-engineering. It seems like the app is "done". Maybe they should focus on creating something else than add useless features that no one seems to use ( at least where I am from ).

comment 4y ago · link · parent

> Kyiv (Ukrainian: Київ)[a] or Kiev[b] is the capital and most populous city of Ukraine.

From Wikipedia ;)

comment 4y ago · link · parent

This is an article you can only write after your brain has been washed over and over again by identity politics.

127.

NPM Is Having Issues(npmjs.com ↗)

6 points · by staticelf · 4y ago · 1 comment

comment 4y ago · link · parent

I like the dracula theme but I unfortunately have to advice people to not purchase the early access on the dracula ui. I bought early access pretty much when it was announced because I thought it looked nice and would fit to a product I was building at the moment.

The thing is that the development of the ui seems to have died pretty much and there hasn't been any updates for months. It requires you to use npm to use the ui and if you don't use React (which I don't) you may only use it by using the classes directly.

I had higher hopes for the ui and that the development would have been more active since they charge you a pretty large fee for it.

comment 5y ago · link · parent

I like following your work and you are a big inspiration for me!

comment 5y ago · link · parent

I don't quite get how it works or even what it is? The landing page unfortunately does not give me a great understanding. Is this something like Phoenix Liveview?

You probably should explain what it is and what problem it solves first.

comment 5y ago · link · parent

True true about the preexisting buildings. But usually the towns can grow wider and that is what's happening at least in my home town of Stockholm.

But they are also building out bicycle paths and a lot of public transportation. When you go in the states a lot of shops etc is so far between so walking between them is possible to not really feasible.

Such places exist in my country as well but they are rare and far between. In the US it seems to be the standard. I visited 4 states and only NYC had good enough public transportation IMO.

comment 5y ago · link · parent

Sure thing, but at least most european countries have a lot easier when it comes to lower the emissions from cars.

Seems incredible wasteful for everyone to have their own car. Perhaps it will be more of a taxi service in the future with electric cars but until then even electric cars does release a lot of carbon when they are created and their batteries etc is not that great when they expire.

comment 5y ago · link · parent

As an european this feel very US-centristic to me. "Green new deal" is something in the US right?

When I visited the states, I was kind of shocked how bad the public transport system was. It's hard to be a tourist in a city like LA for example.

It also feels like it gotta suck to be in that traffic every day which I am sure many are. So many cities seems completely built to for everyone to have a car. There is no walking distance anywhere.

Ofc I rented a carto travel around since there was no other option available. While I really enjoyed the large straight roads of the US it just amazed me that there was so bad sidewalks, little to no bicycle paths and bad public transportation systems.

What I don't get is how the US will ever get to zero emissions. I have a hard time believing that when there is literally no other option than using a car.

comment 5y ago · link · parent

As an european this feel very US-centristic to me. "Green new deal" is something in the US right?

When I visited the states, I was kind of shocked how bad the public transport system was. It's hard to be a tourist in a city like LA for example.

It also feels like it gotta suck to be in that traffic every day which I am sure many are. So many cities seems completely built to for everyone to have a car. There is no walking distance anywhere.

Ofc I rented a carto travel around since there was no other option available. While I really enjoyed the large straight roads of the US it just amazed me that there was so bad sidewalks, little to no bicycle paths and bad public transportation systems.

What I don't get is how the US will ever get to zero emissions. I have a hard time believing that

comment 5y ago · link · parent

Not the author, but I can elaborate on the difference with Meteor since I have experience with both.

Meteor is not server generated but rather a SPA framework with a server side part to it. It helps you build a SPA app quickly and it also uses websockets for all the transport but usually you just send json data there.

I don't really like Meteor because the performance is not that awesome and there is problems with node since it is single threaded. Meteor still doesn't support worker threads or other similar solutions in node so if you have something blocking on the server side the entire app will go down.

Liveview in the other hand is server side only (except for the liveview part). All the state is on the server and when the state changes it will push out the changes in the template and rerender automatically. In Meteor the recommended stuff to use is pub/sub and meteor methods but you still have to rerender yourself just like in a normal SPA.

Meteor is thus simply a way to quickly build SPAs and Phoenix and Liveview is a way to quickly build SPA-like feeling to apps but with everything living on the server.

You can think of Liveview as Google Stadia but for websites. Everything is rendered on the server and you just get the updates.

comment 5y ago · link · parent

That is something I suspected. When I first saw your talk about LiveView on youtube my mind was completely blown away.

It is such an awesome technology.

comment 5y ago · link · parent

To be fair it probably works tho.

comment 5y ago · link · parent

Are you guys looking into the Web Transport protocol for the future? Right now you have to tunnel the websocket connections over http2 and it will probably be the same for http3 afaik.

I know there is this work in progress (https://w3c.github.io/webtransport/) and websockets are probably fine for a long time but sooner or later (unless there is an update to websockets) it will probably be faster to just do normal http requests and listen on server sent events.

What are your thoughts for Liveview for the future? Will it forever stay on websockets or would you be open to change the underlying technology if / when new stuff becomes available?

comment 5y ago · link · parent

While it seems cool, I just think that it is kind of self-defeating?

Sure I can see my friends posts after a while, but at the same time if you really live off-grid you will probably not have a connection for a while and in these times there is really no use case for the app anyway.

I just think I am most likely to check the stuff I want to check whenever I have a connection. But perhaps I am wrong.

comment 5y ago · link · parent

While I think people should have good security and hash the passwords I honestly think the guys behind this are real scumbags.

Probably not going to happen, but it would be interesting with an arrest.

comment 5y ago · link · parent

> How did you first get into programming? Were any books, blogs, forums, or people particularly helpful for your growth? What is it about coding that got you hooked?

My interest for computers in general started with modding and cheating in Diablo 2. I learned about how programs worked and how to change local files in order to get other items and change the game in various ways.

I remember the site mewgood.net (I think it was, which was extremely helpful at the time).

> What is your experience with university? Did you get a degree, was it worth it, do you think it helped you find work, what did you love/hate about uni?

Went to uni but never finished to get a degree. It was fun, so in that sense it was worth it but the education itself could have come from a much shorter work education that we have in the country I live in.

I think today going to university is probably still very fun for the students (except covid restrictions) but it's not really worth it education wise. You can get a better and shorter education with less fluff.

> How did you get your first paid work (family & friends, internship, freelance, full-time)?

I got a part time job at the same time as I got accepted at a company to do my Bachelors degree (which I never completed).

> What do you do now and what do you love/hate about your job?

I work as a developer. I love the freedom that I get. I can work remotely, leave the job earlier or come in later. It is fun and interestin but the thin I hate is that it sometimes can feel like a jail. I am bound to my computer with too little human interaction.

I think part of that is because I work remote and live on the country side. But I have taken action to involve myself in meeting new people on my spare time. Covid was thouh for my mental health tho. Felt very lonely.

Also even if I walk a lot, it feels like sitting still like a shrimp in front of a computer is not very healthy. I have been gettin much more issues with reflux that I don't think I would've had if I had a job where I moved around all the time.

comment 5y ago · link · parent

I thought this was a SPA app with WASM and thought it was really cool. Obviously, it is still great work but I think it would've been a tad bit cooler if it were a SPA rust app.

comment 5y ago · link · parent

I hate titles and I have worked in larger corporations and smaller ones and I very much prefer small businesses every time.

I would recommend Joshua Flukes videos on Odysee / Youtube. I think they're usually very spot on in pointing out some corporate BS and a lot of people can draw valuable lessons from that instead of having to burn themselves like a lot of us has done.

I have downleveled once in both salary and title because I got promised work that was good for society. Turns out it wasn't and it was all empty promises.

My only advice is to always go for stuff they cannot change like salary, other benefits like remote work (but that should be in the contract) and so on. Because with time, stuff will undoubtably change. People will quit, focus will be shifted etc but no one can take away your salary.

comment 5y ago · link · parent

That is great, good work you guys!

comment 5y ago · link · parent

You can come a long way with css animations or svg-updates. There are limitations and they are mostly connected to the latency part.

For example, if you want a 60 fps animation created and the server is far far away, like the other side of the globe that could be an issue or if your connection is bad.

With liveview, you cannot create offline apps without javascript for example. That is a big limitation. But since most apps don't really require offline capabilities that is not really a big issue.

I have however tried to use a liveview hosted in Sweden from Japan (which is basically on the other side of the globe) and I didn't experience any noticable latency for simple html updates.

I think if you're making a game, you'll still need to use javascript. But if you are just making a simple crud app you may not need it for at least most of the stuff.

I still think creating modals or things that the user expects to be instant should perhaps still be done in javascript but for all the server requested data liveview is probably faster than your average SPA.

comment 5y ago · link · parent

Nice way to put it

comment 5y ago · link · parent

> According to this logic, anyone who works in the subway should be dying, what, 10 years earlier? Which is obviously not happening.

Are you sure this isn't happening? I could easily imagine people working in dusty places for example dying earlier due to health related issues that could be traced back to the lifestyle.

comment 5y ago · link · parent

I downloaded it but honestly, it alerted me 5 minutes before. "5 minutes more to focus" - yeah thanks, that is 15 minutes of focus then. I really, really hate such pointless alerts which made me uninstall the app instantly.

It also completely defeats the entire purpose of the app.

comment 5y ago · link · parent

Snowden is a modern day hero, there's really nothing else to say.

comment 5y ago · link · parent

Economically it's my experience as a web dev that overselling is the best way to get more resources because people always fall in the trap of sunk cost.

It is easy to get more funding by whatever resource you want when you got at least a bit. For example, lets say I want to refactor a whole codebase and I oversell it to my boss that it will take only 2 weeks when in fact it will take 3. Very few managers will in my experience say no to you getting an extra week due to the sunk cost trap when they may say no if you said 3 weeks at the beginning.

Of course, people may get disgruntled and unhappy with you if this happens to frequently but it is a powerful phsycological trick you may use when you really need it.

1
456
35