HNHacker News
TopNewBestAskShowJobs

drran

1,205 karma · joined July 10, 2019

submissionscomments
drran··on [dead]
> Rust and Relm4

Why not just design UI in Glade, then load it and bind handlers to UI elements?

drran··on PHP – The Right Way
Use JS + JSDoc comments with types + TypeScript to check types. No compilation step, but code is type safe.
drran··on Gut microbe linked to depression in large health study
Nature produces both edible products, inedible products, and toxic or partially edible (tomatoes, potatoes, etc.) products. AFAIK, there is almost no risk in transferring genes from one edible non-toxic product to another edible non-toxic product. For all other gene transfers, testing is required.
drran··on Ask HN: How do you deal with getting old and feeling lost?
Helmets, and other protective equipment, works, so it may help you to survive many kinds of incidents: road incident, train wreck, fall from sky, etc. There is no doubt.

However, cycling to work is the safest mean of transportation per km traveled.

Nobody will force me to do downhill on a bike without full gear on, because I can fall, puncture my artery, and then bleed out in 2 minutes. One of my earliest memories is: I'm laying on the ground on my back and watching as my bike flying over me, like in slo-mo.

However, I see no sense to wear a helmet when doing one of the safest routine on this planet. I had two road accidents (I hit another cyclist, I hit a safety pole with handlebar when a car in front of me suddenly closed the path for me) and a dozen near-misses while biking in about 40 years. I had much more near-misses in the city (dozens) when walking.

drran··on Ask HN: How do you deal with getting old and feeling lost?
I see no breakdown of incident number by years of experience in your papers.

Newbies are like toddlers, so they will fall more often and will skew the statistic. Nobody says that walking is a dangerous activity, just because toddlers are falling multiple times per day.

Still, cycling is the safest mode of transportation per km, so, if you want to improve safety significantly, convince drivers and pedestrians to wear helmets first. Cyclist will follow.

drran··on Ask HN: How do you deal with getting old and feeling lost?
I'm from Europe (Ukraine). Yes, I'm totally aware about risk of death in a road incident. After each incident, our bicyclist association does protest near to city administration, demanding more and safer bike lanes.

Our plan to fix it is to make the city safer for cyclist. We are heavily inspired by success of Netherlands: https://www.youtube.com/watch?v=Boi0XEm9-4E . Situation is improved in recent years. Currently, half of my path to work is safe, while the other half is not.

Helmet is a good idea (I recommend to wear helmet after all), but it has some downsides. We can discuss upsides and downsides of helmet a lot, but I recommend using my OKR instead, when you recommend biking to newbies: «use helmet until you will fall 10 times at least». It's simple, easy to understand, easy to remember, actionable, and leaves no room for doubt.

drran··on Ask HN: How do you deal with getting old and feeling lost?
Biking to work is not a skydiving.

See https://www.youtube.com/watch?v=35MHUtvIpP8

drran··on Ask HN: How do you deal with getting old and feeling lost?
If you want to sweat — lower tire pressure.
drran··on Ask HN: How do you deal with getting old and feeling lost?
When I was in school, our trainer was ill, so he was replaced by a craft teacher, which was fresh from the army. He was a soviet paratrooper, so he told us that he knows nothing about training, but he sure that we will fall a lot during our life, so he will train us to fall properly. We did about a hundred of jumps and falls and rolls per lesson, up to 2 meter height, in military style for 2,5 months, up to 1000 falls in total.

When I'm falling, I'm rotating my body to fall flat on the back. I'm wearing a bicycle backpack with thick absorber and protective plate (Wolf Skin, Kite, etc.), so it absorbs energy and protects my back. Bad for backpack and notebook, but good for me.

drran··on Ask HN: How do you deal with getting old and feeling lost?
> If you're only biking on the road I wouldn't get that, only slows you down.

They will make you feel like you are moving slower, but my bicycle computer shows that I move faster. Moreover, wheels follows ground more precisely, which reduces risk of losing contact with ground. I'm crossing road bumps at full speed, while sitting and continuing pedaling.

> Not sure if you're serious...

I'm serious for both recommending to wear helmet for first 10 falls at least (because newbie is like a toddler), and I'm serious that I don't need helmet (because I'm not a toddler anymore).

Bicycle is safer than walking per km traveled. Are you wearing a helmet when walking? It's dangerous!

drran··on Ask HN: How do you deal with getting old and feeling lost?
Buy a bike with matching frame for your height, with good double suspension, e.g. with front and rear RockShox or better, and raise the handlebar to a comfortable height. Your back will thank you.

Install all safety systems: front and rear bike lights, mirror, reflectors, use helmet, reflectors, wear reflective jacket, etc. You must be visible at the road at all times. (I use no helmet, because I'm trained to fall properly, but I recommend to wear helmet until you fall at least 10 times.)

Ensure that your legs are working for the full length, by raising the seat as much as you can, to avoid problems with joints. I'm raising my seat so much, that it feels like running, because I press pedal with toe instead of whole foot. Otherwise, you will have powerful legs, but weak foots, so you can break your heel just by running. (I did).

If you ride in winter conditions, lower the bike seat until you can reach the ground with the tips of your shoes instead, so you can reach the ground quickly when the road is slippery.

Bike will make your legs strong and healthy, but your upper body will require additional training. AFAIK, the best way to keep the whole body in good condition is to combine biking with swimming or sport dancing. (I use biking + ballroom dancing). Ballroom dancing also improves situation awareness a lot: I never had a collision with somebody else after few years of ballroom dancing.

drran··on Cause of Cambrian Explosion – Terrestrial or cosmic? (2018)
IMHO, the key element were 1) foam, 2) warmth. When large bodies of water are formed, wind and earthquakes started to generate waves, waves started to generate foam from floating organic compounds, and warmth start to generate complex reactions, like in a lava tube. We can see similar things at a shore after a tanker spill. Water-organic foam cells are similar to life cells. In a few cubic km of organic foam, short samples of RNA can be formed just by chance. RNA + RNA transferase can produce copies of itself, forming a primitive virus.
drran··on Automatically generate docstrings for your Python function
Yes. The goal of grading is to grade students. If you need more education than other students, then look for a different profession or get a private tutor. Education system should not push squares into round holes with force. If a square doesn't fit a round hole, then let it go.
drran··on Automatically generate docstrings for your Python function
Why I need to guess? `i++ // ++ adds 1 to i` makes it obvious, instead of throwing your brain out of code parsing loop to decrypt the message.

The primary goal of documentation is to make code easier to understand, not to copy code or to puzzle the reader. If the documentation doesn't help, then it's useless, so it must be deleted, or it makes readability worse, so it must be deleted.

drran··on Automatically generate docstrings for your Python function
It makes obvious that someone doesn't understand difference between code and documentation.
drran··on Automatically generate docstrings for your Python function
So, you want to put spam into code comments? Why not to put affiliate links then.
drran··on What the Omicron wave is revealing about human immunity
The epidemic will be over when COVID-19 IFR will drop below acceptable level, even when SARS-CoV-2 will continue to circulate. I.e. when covid will be like regular fly, nobody will worry about it anymore.

Is it wrong?

There are two main strategies to achieve low death rate:

1) Natural — let weak people die. Cheap.

2) Semi-natural — let weak people to be infected, then try to rescue them. Costly.

3) Supportive — support weak people with vaccines, to help them survive. Costly, but cheaper than (2).

Which one you prefer?

drran··on DeepMind says its new AI coding engine is as good as an average human programmer
Compilers automated 99.9% of work already.
drran··on DeepMind says its new AI coding engine is as good as an average human programmer
Who will fix bugs in code generated by AI?
drran··on C2rust: Transpile C to Rust
Yep. https://github.com/NishanthSpShetty/crust

CRUST

C/C++ to Rust Transpiler

drran··on Europe Is Losing Nuclear Power Just When It Needs Energy
> This is something that experts need to work out.

Experts put these regulations into place. To cancel regulations, we will need somebody who is opposite to experts.

drran··on Europe Is Losing Nuclear Power Just When It Needs Energy
«This small modular nuclear reactor will provide cheap energy for the city for decades! AND, in case of surprise enemy attack, it will be used as a nuclear land mine!! You all will be HEROES!!!»
drran··on Europe Is Losing Nuclear Power Just When It Needs Energy
In my country (Ukraine), 3 nuclear power plants out of 15 are competing with cities for fresh water because of drought.
drran··on How to Mislead with Facts
If you look at birth and death rates, you will see that more boys are born, but mortality for boys is higher[0]. Moreover, you will see same numbers as for salary difference. Natural selection did not stop that, so it's beneficial for society somehow.

[0]: https://ourworldindata.org/grapher/infant-death-rates-by-cau...

drran··on Ask HN: How do you explain the sloppiness of modern software?
> And the people who made the brittle architectural decisions

Bitrot is unavoidable, unless code is rewritten from scratch. Complexity rises proportionally to the number of links, which is `n(n - 1) / 2`, where n is a number of nodes, or `n²/2` for large n.

It takes significant effort and lots of experience to beat n², to keep code simple. The easiest way to reduce complexity is just to rewrite code from scratch. The harder way is to drop some old nodes (concepts, files, database columns, cases, fields, steps, etc.) when introducing new ones, which may shock somebody who has no formal training in software engineering.

drran··on Ask HN: How do you explain the sloppiness of modern software?
User resources: time, computer CPU and memory, user network bandwith, etc. are free for company. Why care?

In free software, developers are users, so they care. Software is free, but developer_as_user time is not free, so it better to spent 1 hour time once to save 1 minute every time in the future.

In commercial software, developers are not users, so they don't care. Software is paid, so ROI is important, thus it better not to spent 100 hours of developer time + 1 hour of upkeeping time every month to save 1 minute of users time, unless it's important to crush a competitor.

Commercial producers are quadruple prices, until users stop to buy, drops quality, until users stop to buy, stuff ads in, until users stop to buy, shrinkflate, until users stop to buy, and so on.

Did you switch to a competitor product? No? Then why company should care? Vote with your money.

drran··on How to Mislead with Facts
> why it is mostly women who reduce their work hours while the kids are small and why not more men do the same.

Because evolution did this decision for us. Woman stays with children, while man risk their lives, because those, which did the opposite, lose evolutionary competition.

drran··on The GNU Name System
Yes. For few purposes, this is a feature, not a bug.

Examples:

• if a site is banned from ICANN DNS, then there is no other choice,

• if I want to keep bots, spammers, search systems, providers, and government out of the door,

• if I want to welcome technical elite but hide from everybody else, like it was in old Internet.

• if I don't want to pay X$ every year for every domain.

• if I want to have a cool name for my site.

• if I want to create overlays for popular sites, to fight ads, spam, promotions, PR, and unwanted content.

drran··on Xorg update adds touchpad gestures and variable refresh support (2021)
If I need none of those, but need variable refresh rate for higher FPS in games, and if I trust my system because I use none flatpacks or snaps, then why not let me continue to use X11? Why not just integrate Weston X11 backend into Xorg and then let application developers to drop support for X11 completely, while letting me keep using X11? Do we need an IPv4 vs IPv6 battle again? Moreover, those «program X uses Wayland, but bla-bla-bla... set this environment variable to use X11 backend» are frustrating.
drran··on The GNU Name System
ICANN is easy to unseat: just point your computer to an alternative DNS server.
← PreviousPage 10 of 34Next →