Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
foobarbaz33
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
foobarbaz33
3y ago
--I like the tabs. Tabs let everyone see the indent width they prefer. Some people get eye strain with indent width 2. This is why spaces are evil. Using spaces for indent is like hard coding the color-theme of the editor into your code fil
92.
▲
by
foobarbaz33
4y ago
Old school C/C++ dev is done with ctags, grep, and compiler output. Emacs and Vim both integrate with this stuff just fine. They are a tie here. Maybe a slight edge to Emacs with citre-mode; a really fancy ctags integration that brings
93.
▲
by
foobarbaz33
4y ago
What draw backs are there? I can't think of any beyond the initial WTF factor of seeing functions living free of braces {} prison. Multiple classes per file with would still be an option of course.
94.
▲
by
foobarbaz33
4y ago
No, by their namespace. Never suggested removing namespaces or classes. Just removing the "indentation".
95.
▲
by
foobarbaz33
4y ago
I've been doing something similar but with Excel. Spreadsheets might be old news but they get the job done for so many things.
96.
▲
by
foobarbaz33
4y ago
> hey, why every code is one level indented if everyone is using one namespace per file anyway? I would even take it 1 step further. Specify the class name at the top of the file, 0 indentation for functions.
97.
▲
by
foobarbaz33
4y ago
I think git flow has a lot of merit despite being classified as outdated by many. Many modern workflows literally have has you prematurely deploying experimental code into production. Hidden behind feature flags. Release branches may not be
98.
▲
by
foobarbaz33
4y ago
Do you mean "fast-forward" merges that don't have a merge commit? An actual "merge commit" should make it easier to revert/reset. I always use merge --no-ff to ensure a merge commit is created. With a merge co
99.
▲
by
foobarbaz33
4y ago
Well, not really. Not in the way OP is describing. Of course queries are literally compiled at run time. But by then it's too late as user-supplied data is already in the payload that is being compiled. Even stored procs don't pro
100.
▲
by
foobarbaz33
4y ago
The problem is windows slow process spawning. Magit spawns a lot of processes to achieve it's displays and interactivity. It is a real problem. If you don't believe windows process spawingin is slow, try this: clone a git repo wit
101.
▲
by
foobarbaz33
4y ago
You can paste this snippet into the javascript console (ie F12). It's my 5 minute attempt at artsy dark colors. Code blocks are red as in Sith (star wars). And as a warning that code is dangerous. (function hackerNewsDarkMode() {
102.
▲
by
foobarbaz33
4y ago
> Are you saying an attempted or successful blockade would end a war? Yes. I do believe a blockade and minor ocean fighting would be as far as it escalates. I see nuclear war as China's only option to retaliate.
103.
▲
by
foobarbaz33
4y ago
Well, yes the question is about a theoretical WW3 and what people should stock up on to prepare. The morality of WW3 is a separate question in its own right. But I don't see a blockade as the "initiation" of WW3. I see it as
104.
▲
by
foobarbaz33
4y ago
I'm saying a blockade would be the war. This is all just theoretical. Who knows what will happen after a Taiwan invasion. But I don't see a "blockade war" requiring too much preparation for the average US citizen.
105.
▲
by
foobarbaz33
4y ago
WW3 with China? I think the most likely worst case is the USA blockading China with its control of the oceans if they invade Taiwan. I don't see a land invasion in either direction. USA is not going to invade china and vice versa. I do
106.
▲
by
foobarbaz33
4y ago
Emacs and LSP servers work pretty well for some languages. Works great for Go. ripgrep and/or ctags cover any weird languages. brew tap d12frosted/emacs-plus brew install emacs-plus
107.
▲
by
foobarbaz33
4y ago
I'm not able to read the article. The website must be getting overloaded with HN traffic. But it seems like a simple purchase of a big bag of coffee would trounce any delivery service. All the extra human labor costs are removed. No lo
108.
▲
by
foobarbaz33
4y ago
If crypto is dead, then I'm sure you wouldn't mind gifting me several bitcoin :D
109.
▲
by
foobarbaz33
4y ago
> to .NET Core and then to .NET 5+ Just to nitpick. Core -> 5+ was not really a transition. Just a rename to drop the word "Core". Core is still itself, still Core, just no longer called Core. The old .NET is frozen at ver
110.
▲
by
foobarbaz33
4y ago
If 80% of the doctors in an geographical area belong to race B then about 80% of doctors should be of race B. Assuming everyone is roughly of equal ability/experience and no hiring biases are at play. Imbalances need to be measured a
111.
▲
by
foobarbaz33
4y ago
I'm not sure if it is still (or ever was) true, but I heard it uses a text file for the database. Arc lisp for the programming language. And vi (not vim) for the text editor.
112.
▲
by
foobarbaz33
4y ago
Pair of 24kg kettlebells. 5 clean, 5 press, 5 squat. 2 pullups on a pullup bar. Do that 2 to 5 times spread throughout the day.
113.
▲
by
foobarbaz33
4y ago
I'm not sure if it's known. But in general loading stuff off disk or spawning processes is slow in windows. But even on my fancy M1 mac, Org takes ~0.5 seconds to load initially. Assuming "emacs -Q". With some modest twe
114.
▲
by
foobarbaz33
4y ago
> please also say why you don't like Org Mode. I don't like that Org mode takes 30+ seconds to load on a windows laptop. After the library is loaded everything is fast for the rest of the Emacs session. There's thought in
115.
▲
by
foobarbaz33
4y ago
> the wealthiest Americans are the least likely to store their wealth in their homes. The bar chart is listing percentages of wealth in each asset. Wealthy invest a lower % of their wealth into toilet paper. So in the bar chart it would
116.
▲
by
foobarbaz33
4y ago
To this day nothing else beats the fast feedback loop of Common lisp. It has the best hot-reload abilities of any other language. Other languages tout fast build times (that actually are not that fast) completely unaware they are stuck in s
117.
▲
by
foobarbaz33
4y ago
> Want to get back to it. IDEs are driving me nuts. This. I get a great experience without even using LSP which itself can be finicky. 1. ripgrep. Regex searches are the universal "do-everything" tool. If you really master them
118.
▲
by
foobarbaz33
4y ago
ditto. I think the build from d12frosted on homebrew do not have the new native comp feature enabled. Not sure if that's a limitation of running on the M1. But on the M1, Emacs is fast and snappy regardless.
119.
▲
by
foobarbaz33
4y ago
> Android is not Linux It most certainly is linux. You probably mean it's not a GNU operating system.
120.
▲
by
foobarbaz33
4y ago
Instantly. By not having one. I paid in full. Mathematically it was not the best decision. Housing was cheap and rates were good. The stock market had big gains in the following years. But I would do the same thing again as I love having a
More ›