HNHacker News
TopNewBestAskShowJobs

_hao

1,306 karma · joined June 13, 2016

Just a lowly developer - https://paveldanov.net/
submissionscomments
_hao··on Ask HN: Stay fit as a time-poor remote worker
OP has stated he has ~50 free minutes a day (which I find doubtful anyways, no one is that busy). So he does have the time even if he doesn't do it early in the morning. I suggested early in the morning since that's where people actually can get free time usually.
_hao··on Ask HN: Stay fit as a time-poor remote worker
Wake up earlier in the morning and exercise BEFORE starting work. The moment you're out of bed do 30-60 minutes of running/HIIT/calisthenics and add some stretching at the end for a couple of minutes. It's good idea to do some light stretching throughout the day anyways especially if you're that sedentiary. Humans weren't built to sit on their ass for so long.
_hao··on Ask HN: Who is using C++ as the main language for new project?
I'm using C++ for my game engine and games I'm making with it. The biggest pain is the toolchain and build process. With that said, I'm happy with my (modern) CMake + Conan + Ninja setup which took some time to create, but it's good and works for my usage.
_hao··on “Code” 2nd Edition Now Available
In my opinion this book is absolutely essential for anyone even remotely interested in computers! Charles Petzold is a true master!
_hao··on Godot 3.5
There are good arguments from both sides of the fence in the “generic solution” VS “custom solution” debate. I think the decision should be made on a case by case basis after sufficient analysis has been conducted. For example, I wouldn’t do an RTS/Total War type game in either of the 3 aforementioned engines. Also it should be noted that sign of the times is that we’ll be getting less AAA games, not more. It’s clear that those huge budget games carry substantial risk if not successful (hence early incremental updates, DLC, mico-transactions etc.) and studios are weary of that.

For CD Project the move to Unreal might make sense just from labour market perspective - it’s easier to hire programmers for Unreal than to train programmers to learn and develop your own in-house engine. Larger community and support already exists for Unreal etc. That move will affect their bottom line on their next games though. 5% is nothing to scoff at for a big product from a big company.

In any case, I’d advise caution to companies relying entirely on a single platform for their business. To echo my previous statement choosing only between Android and iOS for mobile is an illusion of choice. If you’re a mobile game dev your entire business relies on two relatively hostile companies.

_hao··on Godot 3.5
Unreal is ahead for a couple of reasons (mainly historical + money) and they target industries outside of games as well now - namely film productions.

With that said most big AAA companies still use their proprietary game engines and I don't see that changing. General purpose engines like Unreal/Unity/Godot have their place of course, but to use the full set of features of Unreal you need a big team anyways, so comparing it to Unity and Godot doesn't seem right to me at least. Godot is slowly eating Unity's lunch though. Especially given the direction that Unity has taken after their IPO they might be in trouble in the near future.

Also there are some crazy people (like me) that just write their own engines for the projects they are doing and here's hoping that in time our number will actually grow. It would be very sad if the game engine world ends up like the OS or browser world for example.

_hao··on Ask HN: Looking for feedback on our website (freelance platform))
The website is so slow to load that I just didn't bother to actually explore it.
_hao··on Playstation Store removes Studiocanal movies, no refunds offered
Harr harr mateys...
_hao··on Ask HN: Why doesn't HN have tags/filters?
This is the way.
_hao··on Euro Truck Simulator 2: ZX Spectrum Edition
As an aside there's something very meditative in Euro Truck Simulator/American Truck Simulator. After a long/tiring day doing a virtual haul for 30-45 minutes is really relaxing and soothing.
_hao··on Britain being forced to go cashless 'against its will'
Can confirm. Beggars and small street paddlers in China all just have their WeChat Pay QR code printed and laminated or you can scan their phone. Hell, summer of 2018 when I was in Hong Kong there was an American tourist(? granted, he did look like one) that was begging with his QR code printed so he could "fly back home".
_hao··on GTA 6 Confirmed
I was heartbroken when it was announced United Front Games are closing. It was a very sad day. Sleeping Dogs is one of my favorite games and have replayed it many times. Truly great piece of work that shows you don't need to be a GTA copy to be successful.
_hao··on Ask HN: What do you do to jump start your brain in the morning?
Martial arts/Exercise
_hao··on There’s No Such Thing as Clean Code
> Casey lives in a bubble of his own, where he's the sole developer of every project he starts and he gets to make all the rules for himself. He doesn't really have customers, stakeholders, deadlines, he doesn't work on distributed enterprise software, etc. He makes indie tools and games.

Perhaps. I don't agree with everything he says all the time, however, from my own experience on working on distributed enterprise software I can say that following patterns blindly is an actual problem that impedes a good working solution designed for the specific problem(s) a lot of the time. Devs are pushed by DM's and PO's to have a working product ASAP and what might be a good idea for MVP prototype ends up being a burden down the line because now the entire system is built on top of that decision made in a moment in time without serious thought. Then some time passes and the whole thing crashes down. Then a rewrite happens in the exact same way and the wheel keeps on spinning.

My 0.02c are that I think we should build things more sustainably and expect software to work longer. We should hold ourselves to a higher standard.

_hao··on There’s No Such Thing as Clean Code
There's a good take on this by Casey Muratori - https://www.youtube.com/watch?v=7YpFGkG-u1w

And I agree with him. Things like SOLID and "Clean Code" really are just buzzwords nowadays that don't mean anything.

_hao··on Ask HN: How to make my macOS less distracting?
Somewhat related, but I'd recommend you to read Digital Minimalism by Cal Newport. I was already underway of doing some of the things he proposes before finding that book because I also felt that this machine I have grown up with is actually eating my precious time away. He proposes very concrete steps and I've pushed things a bit further for myself after reading it.
_hao··on A Better Git Flow
Your use case is a bit different than what the article is arguing for. If you have a personal preference to have everything shown as a single commit in the PR by all means do things the way outlined above.

My original comment was targeting the two supposed problems that the article is framing and the supposed convoluted (and possibly dangerous) solution with git reset.

_hao··on New genetic study confirms that alcohol is a direct cause of cancer
People won't show up drunk to work, but KTV company parties or among friends where everyone gets totally hammered are not uncommon in the big cities.
_hao··on DynamoDB 10 years later
I'm really happy that Cosmos DB has this - https://docs.microsoft.com/en-us/azure/cosmos-db/sql/sql-que...

I haven't used DynamoDB in a couple of years, so I'd be curious to know how querying compares if anyone can share some light that has used both Cosmos and Dynamo recently.

_hao··on A Better Git Flow
> If that line is inside some huge blob of changes (from weeks of work) inside one commit, that is less useful to me.

Yes, that's true. My original point still stands though. That commit will have a PR associated with it. You can go to it and see the details of all commits that were used for the merge commit that went into master. Not really a lot of extra work to go to the PR if you're investigating that deep.

> Even if the original branch is still floating around somewhere, that would still be an extra hassle.

If the branch deletion setting when merging a PR is selected, then only the origin branch will be deleted. If you're the one doing the PR and you don't delete your local branches you'll be able to see it locally. In the other case where is someone else's then it becomes harder, and I agree it's an extra hassle.

In my work I try to mandate PR's to be as small as possible, but not smaller. Big PR's do happen, but that and resorting to git blame or bisect happens maybe 2-3 times a year. I think the general rules for source control followed by the team are more important than the implementation details and git magic.

_hao··on A Better Git Flow
Why not create a new branch (let's call it B) from your messy branch (call it A) and squash everything in B before raising a PR from B -> master

That will solve your problems if you're the messy type.

_hao··on A Better Git Flow
You are implying the original branch holding that history will be deleted when squashed into a single commit for a PR. That's not the case (granted, that's based on settings on GitHub, Azure DevOps whatever you're using, but the option is there) because in the PR you still see which branch the changes come from. If you're not deleting the branches you're good. Even if you delete the branch when merging I think most PR views nowadays will keep that info (the commits) in perpetuity. Again, I don't think this is a problem.
_hao··on A Better Git Flow
What a waste of time and effort. Squash when merging to master and be done with it. Every PR/commit merged to master should be a clean logical unit. That means not fixing a bug in a branch where I'm doing something else. Those will be two separate PR's. The second problem shouldn't exist IMO.
_hao··on Teaching how to code is broken
I think people are missing the main point here. It's not about problem solving.

From my experience people that are good programmers are people that like to tinker with things. The logical part of programming can be learned by any intelligent person reasonably fast. It's not about variables, statements, expressions, ifs, loops etc. It's about having a conversation with the machine and trying things out. The tools, languages, frameworks are just extensions of this.

Computers and the way they work are fundamentally alien to our human way of thinking about things. You need patience and dedication. One approach might work for person A, but not for person B. At the end with time just like everything else in life you forge a meaningful "relationship" where you understand each other and can work together with the machine.

_hao··on Ask HN: My coworker doesn't work. Does it make sense for me to say anything?
"Damn it feels good to be a gangsta..." booming in the office corridor.
_hao··on You Feel Like Shit
As a person that regularly fasts this question just made me exit the site immediately.
_hao··on My work routine: plan, do, learn loops
When I read PDL I thought it sounded familiar. Funnily enough it's from this discussion two days ago (also relevant to this post) - https://news.ycombinator.com/item?id=29818894
_hao··on Update on fire incident at ASML Berlin
Waiting for a slightly larger market correction on ASML so I can dump a lot of money on their stock. The news of the fire barely affected the price. Bought some time ago and they are such a unique company that I don't think anyone can catch up with them soon.
_hao··on World of Text is an infinite grid of text editable by any visitor
It's a bit sad that most of those links are now dead.
_hao··on My 2021 Review
> Additionally I think SOLID principles should be part of every (software) engineer’s skills repertoire.

No.

I don't agree with Casey Muratori on a lot of things, but he hits the nail on the head about that statement in this video (around 23:00, but I'd suggest you watch the whole thing for context) - https://www.youtube.com/watch?v=7YpFGkG-u1w

I've walked out of interviews (politely) because I was asked to recite some buzzword bullshit like SOLID.

← PreviousPage 4 of 9Next →