HNHacker News
TopNewBestAskShowJobs

yeneek

82 karma · joined April 12, 2020

submissionscomments
yeneek··on How to avoid losing items? Holding pens
My home is too small for me to have such a problem.
yeneek··on Bugout: Browser-to-browser networking built on WebTorrent
If the random numbers can be 1-6, then yes, it would be trivial to attack. If the numbers are 300 bytes long, then it's impossible to predict.

> "I can try to be lucky and find your number by hashing random ones," If we were using sha-256, then you would be very impossibly lucky. There are 2^256 possible hash values for sha-256. It's extremely unlikely, that you would find a collision in the lifetime of the universe.

yeneek··on Bugout: Browser-to-browser networking built on WebTorrent
Good point. Honestly, I think that it won't happen often. Who would wan't to sacrifice all fun to have bunch of blocked accounts with a few wins?
yeneek··on Bugout: Browser-to-browser networking built on WebTorrent
> "how can one player trust the dice of the other player?"

I have an algorithm for that. To roll a dice: 1. both players create a random x bytes long number.

2. both players make a hash from their number and then send it to the other one.

3. players exchange their random numbers and check if hashes are correct

4. concat both players random numbers and hash it to get the final random number

By exchanging hashes, both players can be sure that other player didn't tamper with their random number after getting yours.

(edited formatting)

yeneek··on AI Music Generator
There are 35 million released songs. Completely original music is a myth. If it doesn't use samples without a proper license, then it's legally OK.
yeneek··on Ask HN: Experienced software engineer – but unable to consistently work
28
yeneek··on Ask HN: Experienced software engineer – but unable to consistently work
ADHD software engineer from Prague here.

Here are some things I do to be reliably productive. To be clear, I don't do everything written below everyday (except limiting phonetime). They are tools to stop the downward spiral. Pick what works for you.

- Get StayFree app to limit your fun unproductive screentime. Getting bored is good for you. - Generally limit things that gives you easy dopamine. It messes with your reward system. - Clean up your home. - Get a cheap A4 notebook. Write down stuff you need to do into bubbles all around the page to get them out of your head. Break down complex tasks into simple short defined actions. Connect the bubbles according to the order you want to complete them. Don't overcommit. It should be easy to follow. - Sport helps - Sleep and eat well - Monday is the day when I'm the most productive. It's crucial to get rested during the weekend. - Drink enough water - Frontend development is less stressful than backend - Try Headspace app

My medication: Elontril, Concerta

Don't give up, keep fighting

yeneek··on Microsoft takes a $100-$200 loss on all Xbox Series sales
Correct. Still, it's how this industry works. PS3 has been sold at a loss for around 4 years.
yeneek··on Ask HN: What Recession?
Interesting insight. Thanks!
yeneek··on Ask HN: What Recession?
I believe it's a good compromise on timezone (8-9 hours is manageable), political stability, safety and reasonable talent pool. You can still relocate people from cheaper countries yo richer ones. You can convince Romanian to move to Germany, but you can't convince German to move to Romania.
yeneek··on Microsoft takes a $100-$200 loss on all Xbox Series sales
It's just how this market works.

https://www.forbes.com/sites/paultassi/2021/02/03/ps5-is-bei...

yeneek··on The pool of talented C++ developers is running dry
My favourite example of this is that you have to recompile program when a used table schema changes, otherwise it will crash.

edit: Just realized that it's more platform specific than site specific.

yeneek··on The pool of talented C++ developers is running dry
I was a Cobol developer for a year in 2016 in Prague. It's hard to make a proper market research because the Cobol market is small. My limited point of view is, that it's not worth the stress. There is nothing new to build with it and young developers are there just to replace the old ones and maintain what's left. Even that it's hard to find a Cobol developer, i couldn't find a Cobol position that would pay more than a React developer.
yeneek··on Ashton Kutcher’s non-profit, Thorn, supports EU plans for CSAM scanning
I don't see how government reading through personal messages is gonna protect children. From all the possible solutions, this is the most useless and the most unsecure.
yeneek··on Solving the double (quintuple) declaration Problem in GraphQL Applications
I had some issues with typegraphql years ago. I tried to split resolvers between modules and it behaved weirdly during unit tests. We also already used graphql-compose at job, so I wrote my own typescript decorator based solution on top of graphql-compose (https://github.com/captain-refactor/graphql-compose-typescri...) My module worked as expected, and I tried it on my personal projects. Then I realized, how my projects code became confusing and result api was really bad. I abandoned development of the module, because it had flawed design from the start. The code-first approach doesn't really work well and result graphql schema is ugly, which makes it a bad solution. Generating typescript from schema gives better results. When you think about it, it makes sense, because your graphql schema is your applications api blueprint and it should be designed in advance, not generated from the result product. Also when I wrote idiomatic typescript code, it generated bad graphql schema structure. It's hard to create consistent api when it's scattered over many files filled with implementation details.
yeneek··on Solving the double (quintuple) declaration Problem in GraphQL Applications
I already solved this problem for me. I use graphql code generator (https://www.graphql-code-generator.com/) to generate graphql resolvers on BE and angular services on FE. I use MongoDB and database models are written in typescript. I want to manage db models separately from the API. With this approach, I'm type-safe from end to end.

Edit: I forgot mobile. Apollo Android client generates schemas from schema and queries. I've never written iOS app, so I can't recommend anything yet.

yeneek··on Driving engineers to an arbitrary date is a value destroying mistake (2020)
Author is wrong about the underlying cause of that disaster.

From my point of view, the cause is different:

1. Lack of design a.k.a. designed by coders > At 5 months the team has happy path coded the entire feature list, the screens are ugly and non-intuitive, ...

It's obvious, that the product wasn't designed. Feature list isn't design. Competitors app isn't design. When you have UX/UI/API designed, it doesn't happen that the result product is ugly because of the lack of time. Lack of time may cause, that there will be nicely looking, but slow/incomplete/unreliable product. You need blueprints before building. It can be designed upfront by one designer who is in contact with user and stakeholders. When not, it has to be designed during coding by software engineers which are drowning in technical details and cut off from users. So just having some more time wouldn't make it a good product.

Also with some plan, they could have created estimation based on something. That would help them to get a realistic timeline.

In the end, the boss and PM should have known better.

yeneek··on [dead]
Github is the new Twitter
yeneek··on Bitcoin Plummets Below 40K
33% down is a lot on stock market but it's nothing unusual for bitcoin. People bought it for wrong reasons and now they couldn't handle it and sold their positions.
yeneek··on Blockchain Is Not Decentralised
I agree that you alone have no real say. The community does.
yeneek··on Blockchain Is Not Decentralised
It's other way around. Majority of miners were against SegWit and blocked its activation for over a year. Community then decided to collectively upgrade their nodes to accept only certain transactions. It is called User Activated Soft Fork (#UASF) The miners had to make a decision. Mine coins that rest of the world dont want, or activate segwit.
yeneek··on A Lock Picking Game Changer [video]
This and there is also higher probability that you will loose keys and picking simple lock is much cheaper.
yeneek··on A Lock Picking Game Changer [video]
We have no such law in Czechia. Burglars usually break locks or doors, it's quicker and works every time.
yeneek··on A Lock Picking Game Changer [video]
I bought pick gun long time ago and was pretty disapointed. Pick gun need wide keyhole. Most locks I encountered had zig zag keyhole.
yeneek··on An Apology to COBOL: Maybe Old Technology Isn’t the Real Problem
Sorry to disapoint you. My friend who works in recruiting told me, that one company wouldn't accept perfectly skilled candidate, because he was around the same age as their current COBOL developer. They argumented, that they don't want both of them die around the same time.
yeneek··on SwiftGraphQL – A GraphQL client that lets you forget about GraphQL
I have the same opinion. The big problem I had with generating graphql api from code, was that the result graphql schema was badly done. It's hard to design API that way. I made similar module for typescript just to realize, that I don't want to build graphql endpoints this way.

that module: https://github.com/captain-refactor/graphql-compose-typescri...

yeneek··on The Bit Short: Inside Crypto’s Doomsday Machine
JackFr Fair point. Thank you.

Well, it will be an interesting week for sure.

yeneek··on The Bit Short: Inside Crypto’s Doomsday Machine
Tether market cap is 24bil, Bitcoin market cap is 714bil. Its just 3%. I think that Tether isn't inflating BTC that much. The institutions that buy BTC like PayPal, Square, JPMorgan have much bigger effect on Bitcoin than Tether.
yeneek··on The Bit Short: Inside Crypto’s Doomsday Machine
Crypto today is pretty wild. Most of the crypto currencies are trash with good intentions or straightforward scam. On the other hand, the flaws make it a great opportunity for those who dare.
yeneek··on To the moon: defining and detecting cryptocurrency pump-and-dumps (2018)
There are dozens of theories who Satoshi is. All transactions in bitcoin are public, that makes it really a bad idea to use it for illegal activity. I doubt that criminal mastermind would create system to publicly backup incriminating evidence.
Page 1 of 2Next →