HackerTrans
トップ新着トレンドコメント過去質問紹介求人

user8501

no profile record

コメント

user8501
·2 年前·議論
I personally believe that people just answer the question “do you visualize?” differently. I used to think I had “aphantasia” but like you said, you see it without seeing it. If your eyes and brain are functioning at all, your brain is perfectly capable of creating colorful images. Just look around. Those colors you see? That’s your brain.
user8501
·2 年前·議論
It is absolutely not bait. Declarative programming for the web is certainly more pleasant, but direct DOM manipulation will always and forever have a performance upper hand over rendering frameworks that sit atop the DOM. Now this performance difference is usually negligible, but for projects like VSCode or this, there’s a very good reason they aren’t written using frameworks.
user8501
·2 年前·議論
SQLite essentially achieves this as well by keeping the entire database in one file. It’s even faster than the filesystem in some cases: https://www.sqlite.org/fasterthanfs.html
user8501
·3 年前·議論
Thank you for informing me. I feel dumb for having chuckled.
user8501
·3 年前·議論
Testes? Do you mean tests?
user8501
·3 年前·議論
Aw crap! What are we gonna do now?
user8501
·3 年前·議論
That’s a very good point. I feel, however, that the main idea is that bad philosophy is what ultimately fuels complexity.

The grug brain philosophy is simplicity at all costs, unless absolutely unavoidable.

The big brain philosophy as grug sees it is reusability at all costs, unless absolutely unavoidable.

The issue with this philosophy is that it tends to lock in first generation design choices and makes iteration more difficult.

It’s true that simplicity is difficult to find, but iteration is the key to finding simplicity.
user8501
·3 年前·議論
1. initialize all your variables - you will trip over this one, and it's always nasty

2. I typically throw a _ptr at then end for global pointers

3. use a unity build - create a build.c file and directly #include all .c files, and then just compile your build.c file. This will speed up compilation by many orders of magnitude, as well as allow the compiler to make better optimizations. Don't think too hard about how to separate your C files. I typically start in one file and I begin separating as themes or modules start to emerge. And even then, I wait a while, because I may change my mind. This allows my designs to become quite refined.

4. Make as few allocations as possible.

5. no comment

6. I get a personal kick out of sticking to C89, to my own detriment probably.

7. Errors are handled differently on a per function basis. But when an error requires a lot of cleanup, don't be afraid to use a GOTO.

8. Throw -fsanitize=undefined in there as well.
user8501
·4 年前·議論
Seems like kind of a crazy thing to say. The first thing to note, is that we should obviously be free to write software like games and other utilities in whatever language we want, especially if they’re not connected to the internet. Second, why exactly are we demonizing people now? Suddenly declaring a language deprecated not only doesn’t actually make any sense, but also seems like a great way to influence people’s personal opinions about others. I can tell you from experience that sentiments like this breed hostility in the workplace. And finally, this is pretty short-sighted, considering the supply chain attack is clearly the attack of the coming age.