HNHacker News
TopNewBestAskShowJobs

snemvalts

451 karma · joined April 10, 2015

https://sander.codes
submissionscomments
snemvalts··on Vitamin D supplements lower risk of autoimmune disease, researchers say
Sunlight isn't enough in most northern hemisphere places for vitamin D. Or when you have darker skin.

Plus intense sunlight carries the risk of cancer.

snemvalts··on Ukraine is a major producer of neon gas, critical for lasers used in chipmaking
For Russian one - Putin controls all of the companies in a way. Shareholders have no say. This is reflected by the markets. Market cap of the exchange was 700b, largest US tech companies are larger on their own. For Ukrainian one - the country might not exist in a few weeks in the current state.

If you want to play on the effects of the conflict, either buying or shorting the ruble is the best way to go.

snemvalts··on Ukraine is a major producer of neon gas, critical for lasers used in chipmaking
Don't put any money into both stock exchanges right now, especially the russian one.
snemvalts··on Estonia, allies to trigger NATO Article 4
Estonian here, our society is unequivocally happy to take them. Most will probably go to Poland and surrounding countries of Ukraine first though.
snemvalts··on Ask HN: Can we ban Twitter links, please?
Let's ban Medium as well when we're at it. They go a step further and actually paywall free articles, rather than twitter that just needs a free account.
snemvalts··on Apple unveils contactless payments via Tap to Pay on iPhone
Context https://twitter.com/theryanking/status/1485784823641755648
snemvalts··on I Quit Shopify After Five Months
The logic etc that you're writing in the templates is in the backend language though? And it's all run on the backend.
snemvalts··on Ten Years of ThinkPadding
Probably storing them in near plastic of the screen frame. Newer thinkpads (x270 etc) don't have it. Nor do macbooks.
snemvalts··on I Quit Shopify After Five Months
If I need to call Rails services and methods from ERB, then it isn't frontend :)

It's comparative to hiring a front-end and putting them to work on .php files. It's so far back in the past, that it becomes degrading, and you start feeling regression in front-end skills.

snemvalts··on Ten Years of ThinkPadding
The biggest build quality problem on it (and x230) is the top bar made of plastic, at the top of the back of the lid, for antennas. It's held so weakly that even a 10-20cm drop will break the plastic clips.
snemvalts··on Don't make me think, or why I switched to Rails from JavaScript SPAs
Some back end devs unwilling to learn React are planning to try it.

However as I understand, it's using WebSocket. At my previous job, building a customer service view that used it solely for real time updates, I wouldn't use it for anything critical without some heavy fault tolerance (like checksums or a simple incrementable number to count how many messages have been sent). The messages can be randomly dropped by whatever is in between.

I wouldn't want to write in Stimulus as a front-end dev. It looks like writing AngularJS from 2012, way too imperative. Template and logic are also separate which makes legibility harder compared to JSX.

snemvalts··on Don't make me think, or why I switched to Rails from JavaScript SPAs
Yeah, SPA approach would separate the frontend and backend conceptually to different microservices.

Frontend is served separately off CDNs, backend isn't involved with it. When frontend team decides on a different framework/approach, they can switch, and the frontend just consumes the backend API.

Backend focuses on building an API, doesn't have to deal with templates etc. The other server side piece doesn't necessarily have to be Node, it can be whatever the backend team wants it to be, Rails is also fine. All it has to do is spit out JSON.

snemvalts··on Don't make me think, or why I switched to Rails from JavaScript SPAs
Working in a Rails based startup that took the same approach as OP, then at one point understood that we need React in the frontend, and a few years later the development process is a pain:

* Weird pockets of react everywhere (data-something-something) with tons of JSON just being interpolated into attributes.

* Webpacker and other rails magic is required for building the frontend

* Frontend and backend are tightly coupled. Default error handling is the Rails error view which certainly isn't user friendly.

* snake_case_for_data_from_ruby in frontend code

* The app feels more sluggish than if it were a SPA.

What I've learned from all this is that sometimes it's better to take the less opinionated road (SPA in this case), so you can be more specific later.

snemvalts··on Framework Laptop with Ubuntu Review
The usb c ports have recesses for standardised dongles, that's mostly it.
snemvalts··on Log4jmemes.com: for those of us that need a laugh
It's missing this one https://i.imgur.com/zTGw5zN.png
snemvalts··on Linux Touchpad Like MacBook Update: Touchpad Gestures Now Shipping
Happened to my x220
snemvalts··on Linux Touchpad Like MacBook Update: Touchpad Gestures Now Shipping
Just wait until your wifi or suspend breaks on a distro change on your 5 yr old laptop.
snemvalts··on A Civil War cartoonist created the modern image of Santa Claus (2018)
Didn't you know? All culture of the world revolves around the US /s
snemvalts··on Square is now called Block
If the design for this didn't create negative reactions like this they would have probably considered the design a failure.
snemvalts··on How to build a low-tech website? (2018)
This feels a bit like counting the amount of coffee you drink when calculating carbon footprint, or a bit like code golf aiming for 1KB of executable size.

Makes more sense to do the 80/20 approach, 20% of work to get 80% of results sustainability wise and the move on to the next.

snemvalts··on Raspberry Pi Zero 2 W
Nothing on ARM (and with linux) probably that can run off a button cell. Down to arduino etc microcontroller level.
snemvalts··on Sustainable coffee grown in Finland with cellular agriculture
I've started to move from pre-ground Paulig (finnish brand) to grinding my own beans. Just while reading this post, drinking the left-over Paulig made me wonder if I have COVID. Very little smell and taste compared to freshly ground Italian beans, made even worse by the oxidation.
snemvalts··on Dutch cities want to ban property investors in all neighborhoods
Greed is innate to humans and you can't even take it away with communism, people will still find a way to collect and hoard. The problem is the low interest rates from central banks flooding the economy with money.
snemvalts··on Valneva and Pfizer announce Phase 2 study for Lyme disease vaccine candidate
It's nothing compared to the other tick disease: tick borne encephalitis. Thankfully there's a vaccine against that
snemvalts··on A shot to prevent Lyme disease could be on its way
And a booster lasts around 5 years I believe? So not as bothersome as a flu shot even.
snemvalts··on Europe's all-time heat record set in Sicily at nearly 120 degrees
Depends where you live. Germany has done an idiotic 180 away from nuclear, but France is heavily into it. https://www.electricitymap.org/
snemvalts··on An Open Letter Against Apple's Privacy-Invasive Content Scanning Technology
With regulators forcing encryption backdoors with "the children" as the argument, Apple's solution seems like the least of the possible evils.
snemvalts··on My small revenge on Apple
I wouldn't obsess over the design of Apple's "Sign up with Apple" button, if the default darkmode just applies an inverted filter (inverting Google's and Facebook's logo in addition to the UI), and paddings and margins are all over the place.
snemvalts··on RNA demethylation increases rice and potato yields 50%
It needs to create biomass from something.
snemvalts··on Xiaomi becomes number two smartphone vendor for first time ever in Q2 2021
I don't think that's lineageOS, it's for unlocking the bootloader on Xiaomi phones
← PreviousPage 3 of 5Next →