HN user

pulsarmx

26 karma

Web Developer in Mexico City

Posts0
Comments15
View on HN
No posts found.

Is my brain broken somehow? I'm either at my desk or on my phone/tablet a good 75-80% of my waking hours, and have all this information and entertainment at my fingertips, and I'm _still_ bored half of the time or find my mind wandering or thinking about all sorts of things happening around me when I least expect it.

React 19 2 years ago

As for the empty array of dependencies to emulate the previous componentDidMount method, this was indeed the original message in 2019. I am almost certain — though I can't find this online now — that Dan Abramov subsequently tweeted to not rely on the empty dependencies array as a guarantee that the useEffect only fires once per component's lifetime.

This is one of the big reasons why I personally dislike React and the community around it. They seem to envision at the start certain ways to do things, and push them to the point of being "this is how you do X". Then, after not very long at all, the old way is discovered to be bad and inefficient and buggy and hard to reason about or whatever, now do it this other way. Repeat three or four times until a new API is created or something.

This also means that going from project to project can feel very whiplash-inducing. The code you find is not even dependant on the version of React that's installed, but on how the community was feeling about the "best practices" around the time that particular project was started.

I remember when render props were a thing. Then I remember when they stopped being considered a thing and now the new thing to do was HOCs.

Things like React Router also being wildly different between versions, or at least v3 -> v4. I remember needing to find out how to achieve certain behaviour with v3, only to then try to find that the docs only existed for v4 (which was the newest at the time), and addons that helped me with my original problem also only existed for v4. (Then React Router was no longer the Best Thing, so let's all switch to Reach Router... then back to React Router when it was again considered the new hotness. I may have forgotten one or two others in there, I just stopped paying attention around that point.)

Another example is CSS scoping, which is a complete non-issue with vanilla Vue and Svelte. But in React land you have styled-components, emotion, styled-jsx, and who knows what else in which you don't write CSS, but JS that looks like CSS but not quite, enough to throw me off every single time.

The whole periodic shifting of opinions about useEffect from "this is your componentDidUpdate replacement" to "use a linter to warn you about the footguns that we can no longer fix, also use one of these hooks instead" is just one more thing that adds to the frustration of having to work with a React-based project.

I'm actually starting to wonder if Facebook isn't so much "writing" React, but "discovering" it. Much like how we didn't quite invent fire, and we had to figure out how to use it properly over many, many thousands of years.

Many people would consider Spanish, my native language, to be much more straightforward when it comes to spelling.

We still have spelling contests at state and nation levels.

The funniest thing about this is that Sketch used to claim that it was impossible for them to port it to other platforms (i.e. Windows or Linux, let alone web) because only Mac OS had the kind of APIs the app needed to even work.

Thanks, I think I kind of get it now. But now my follow up question is, what stops me from just recruiting, say, nine other people at least as old as me, give them each 10 strawberries, and then collecting the payout afterwards?

uses proof of stake- doesn’t do energy intensive mining

I have an honest question that I haven't seen answered anywhere, and I'm not smart enough to answer it for myself by reading papers and whatnot.

Assume whatevercoin currently uses PoW and takes X energy to mine a single coin, but would take X/100 energy to mine it under PoS.

What stops people from simply throwing the 99/100 leftover energy from X into more mining operations, rather than just being content with the one and the leftover energy?

Or put another way, if mining a single coin suddenly costs 1/100 of what it used to, why would I not just mine 100 coins now?

It just all sounds to me like what happens when there's an increase in computational power/speed/capacity/whatever in PCs. When you can process a thing ten times as fast, you don't just do one thing ten times faster; you do ten things at once.

This intense hatred for Electron has always baffled me. I thought the community in general was in favour of allowing people to create whatever they wanted, however they wanted. More people making software is good! And the community grows because of it, and everything is better. But every time an electron app gets promoted somewhere (HN/Reddit/Twitter/wherever) there is always _someone_ yelling at the developer because they decided to use Electron.

As a javascript developer, I'm sorry that I don't have the patience/smarts/skills/time to learn C++/Qt/GTK/WxWidgets/etc. HTML/CSS/Javascript is all I know and it's probably all I will reasonably stay with for a while because of various circumstances. And Electron lets me use the knowledge I already have to make things.

That's not to say that Electron doesn't have all these issues, of course. But I feel that this policing of how people write their own software (especially when it's something purely done as a hobby and/or just to share something with people) is getting somewhat out of hand.

Here's a hypotetical/philosophical question for the community in general. Given no other alternatives to do X, what is preferable? An Electron app that allows people to do X, or no app at all?

I used to be able to actually buy MP3s from Amazon US. I actually have bought and downloaded a few albums this way.

Then they launched Amazon Music (or whatever its name is) in my country, which only provides app-based access to music, and also took away my ability to buy MP3s from the US website and neglected to add it to my country's version of Amazon.

Can't tell if this is genuine bewilderment, or just more of the usual "USA is full of dangerous murderers" meme to dunk on the country as a whole, but just in case:

According to https://en.wikipedia.org/wiki/List_of_countries_by_intention...

The USA has 4.96 murders per 100,000 inhabitants. 93rd in the world out of 230 countries or territories, below the global average of 6.2 and well below the average in the Americas of 16.3. It's also below the African average of 12.5.

CAF and Puerto Rico are the major territories with a figure closest to 4 times the US, and Puerto Rico is 20th on the list. Higher than Puerto Rico are 18 territories in the Americas, and 2 in Africa.

Of the 10th most populous countries in the world, the US is 5th and lower than Brazil, Nigeria, Russia, and Mexico. However, it _does_ have the highest rate of the 3, 4, and 5 most populous countries (Brazil is the 6th most populous, and with a murder rate of 27.38, more than 5 times the US rate).

Of its neighbours, Canada's figure is 1.7 (lowest in the Americas), while Mexico is at 29.07, 13th highest in the world.

In the Americas, only 4 countries or territories have lower rates than the US: Chile, Martinique, Aruba and Canada. On the other hand, 45 other countries or territories have a higher murder rate.

My own country is at almost 6 times the US rate, too, btw.

Firefox 93 5 years ago

Tab Containers are a nice feature, but aren't quite there yet. For example, history is currently not isolated per container:

https://github.com/mozilla/multi-account-containers/issues/1... https://bugzilla.mozilla.org/show_bug.cgi?id=1283320

Multiple browser profiles also let me have one profile for work, another one for personal stuff, and yet another one only with stuff like vue/react/svelte dev tools and remote debugging enabled, and _then_ decide which one to open at any given time. This instead of opening every container at once, or something like selectively opening a bunch of bookmarks manually into a specific container (I use buku to manage and sync my bookmarks too, so no tab container support there).

Hello, HN.

Location: Mexico City Remote: Preferred Willing to relocate: Yes[] Technologies: {Java|Type}script (vue, svelte, react, bit of node/deno), scss. Also very limited shell, sysadmin, podman/docker stuff, enough to get myself in trouble. Resume: https://docs.google.com/document/d/1ulzefZ3HZ_e6gTwcvQfw87fz... Email: antonio+hn@pulsar.mx

Kind of opinionated but always willing to learn and improve my skills and my workflows. Would rather not use React or Angular, wouldn't recommend unless absolutely necessary. Short, varied projects preferred (2-6 month long, agency style, I guess) but I don't really mind longer projects as long as I get the opportunity to work on new things.

I'm used to getting somewhat involved in the full lifecycle of a project, from specs to design to the actual development, although that might be just me having worked at small agencies. I personally value a high degree of autonomy when making technical decisions, down to the choice of framework to use, especially when I'm the one who's going to shoulder most of the technical responsibility. I tend to push bach really hard against poorly (or un-) justified decisions, especially non-technical ones.

One particular strength I have is my attention to detail, especially when reviewing requirements. Might be a case of a big fish in a small pond though.

[] I'm willing to relocate, but since I never finished any formal education, visas like H-1B are not available to me for the time being.