Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
G3rn0ti
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
G3rn0ti
3y ago
Many functions have acquired an async variant. For example, „shell-command“ runs shell scripts and redirects their output to a buffer. If you add the ampersand „&“ at the end of your command it won’t block your UI. On the other hand, pa
122.
▲
by
G3rn0ti
3y ago
Treesitter will make LSP servers obsolete at some point I believe. The parser framework also comes with query API you can use for semantic analysis of code — it’s about more than just syntax highlighting. Therefore, with treesitter you shou
123.
▲
by
G3rn0ti
3y ago
„C-h f“ (help on function) or „C-h k“ (help on keybinding) at least gives you some quick information on any function in Emacs. I also recommend „which-key.el“ showing you which commands are bound when you typed in an incomplete key combo. Y
124.
▲
by
G3rn0ti
3y ago
> I'm also not happy about the fact that I can no longer open large C++ files Regex-based syntax highlighting is usually the culprit in these cases. There’s probably a new RegEx inside c++ mode that burns too many cpu cycles. You mi
125.
▲
by
G3rn0ti
3y ago
Didn’t know this. Thanks for the tip! Personally, when I test REST APIs, I use „restclient.el“ all the time which also comes with a great JQ integration („jq-set-var“ for example for deriving request variables from responses). For traversin
126.
▲
by
G3rn0ti
3y ago
See my comment above. LSP servers are complicated beasts coming with a lot of specific dependencies. It is simply impossible to ship all available language servers together with Emacs. Even VSCode does not do it. For popular languages it do
127.
▲
by
G3rn0ti
3y ago
There are hundreds of language servers out there. Even VScode does not ship all of those. Emacs‘ LSP client „lsp-mode“ tries to download them for you if possible. For example, in case of JavaScript and TypeScript you don’t have to provide i
128.
▲
by
G3rn0ti
3y ago
> for the ... Raku devs it does not appear that finding references So the Raku server has a deficiency, currently. Too bad. But in Emacs you can work around that by writing into your config file: (remove-hook 'xref-backend-funct
129.
▲
by
G3rn0ti
3y ago
You don’t understand how Emacs works. It is not supposed to be an IDE from the get-go. But there are extensions that together can turn it into one. For whatever language you program with.
130.
▲
by
G3rn0ti
3y ago
> semantic location of variable declaration This can only work if the editor internalizes the corresponding language. That does not scale for all languages available. That’s exactly what the language server protocol is all about (and cer
131.
▲
by
G3rn0ti
3y ago
Well, Emacs is all about choice and flexibility -- not 1-click convenience. If you do not want to spend some time learning your tool, it's definitely not for you. I respect that. See, if you hate "lsp-mode" and "lsp-ui&q
132.
▲
by
G3rn0ti
3y ago
First, for every IDE experience you definitely need flycheck mode: (use-package flycheck :diminish flycheck-mode :init (global-flycheck-mode)) This will underline syntax errors for you. (It'll use the language server
133.
▲
by
G3rn0ti
3y ago
I feel you. I am using both cua mode and arrow keys proudly even after a decade of using emacs. Sometimes convenience is more important than keyboard efficiency. I learned to avoid (or even turn off) cua-mode where necessary (e.g. when reco
134.
▲
by
G3rn0ti
3y ago
For good autocompletion you‘ll need both an autocompletion framework and a language server client. I am still using „lsp-mode“ as a language server client which works well for me and it comes with „company-mode“ integration for good autocom
135.
▲
by
G3rn0ti
3y ago
"H0ffman" is also a respectable artist still doing live gigs w/ vintage hardware: https://youtu.be/zVF-GbGHxA8?t=4046 His tunes appear in many "Focus Design" demos.
136.
▲
by
G3rn0ti
3y ago
> Qui bono? It’s „cui bono“ because it’s using dative case i.e. „whom is the favor“. Declination of the Latin relative pronoun „qui“ is the following for the masculine genus: qui cuius cui quem quo Sorry for being a grammar nazi.
137.
▲
by
G3rn0ti
3y ago
I think parent means the YouTube app. On iOS (and android/chromos?) you can actually download videos and watch them offline if you got a premium membership. But then the videos are under control by the app.
138.
▲
by
G3rn0ti
3y ago
Keyboard macro. You convert the arrays into lines, you sort the result and then turn them back into arrays. If you do this often you could store the macro as an interactive command.
139.
▲
by
G3rn0ti
3y ago
If you are on the road and only have limited mobile bandwidth available you can instead read entire Seinfeld episodes: https://www.seinfeldscripts.com/seinfeld-scripts.html
140.
▲
by
G3rn0ti
3y ago
Biggest reason for the success of TypeScript is it aids IDEs in statically analyzing your code and providing enhanced autocompletion results like e.g. methods and properties. In dynamically typed languages this a much more difficult task a
141.
▲
by
G3rn0ti
3y ago
The company that’s really behind Proton [1] sells „CrossOver“ as a commercial product to run Windows applications on MacOS, Linux and ChromeOS with enhanced compatibility compared to free Wine. IIRC they started out to selling „CrossOver Of
142.
▲
by
G3rn0ti
3y ago
I got so used to staging individual lines instead of files — it’s so much more intuitive! With „s“ and „u“ I sift through my edits and discard any debug code that I haven’t checked-in accidentally for a long time. Magit also speeds up cycle
143.
▲
by
G3rn0ti
3y ago
Magnesium is lighter than Aluminum because it is in the 2nd group of the periodic system to the left of Aluminum residing in the 3rd. The latter has got one additional proton and a couple of neutrons more.
144.
▲
by
G3rn0ti
3y ago
You don’t need all that to emulate objects in C. Instead use this recipe: - classes <-> compilation units - objects <-> structs - methods <-> functions receiving a pointer to a struct as first argument; use name of the cla
145.
▲
by
G3rn0ti
3y ago
OOP is essentially a software architecture model. You can use this architecture in any language with a bit of discipline even if it does not give you all syntactical safety guarantees. At some point even object oriented assembler was a thin
146.
▲
by
G3rn0ti
3y ago
> It should instead track changes in terms of language constructs. This does not generalize very well. On top of GIT‘s core data structures and file management facilities you would also need parser plugins for all languages now and addit
147.
▲
by
G3rn0ti
3y ago
> It still looks fresh and modern, although maybe a bit too playful so that it appears a bit childish? The aesthetics is called „Frutiger Aero“. Lots of colors and especially of blue, lots of transparency effects and fake light reflecti
148.
▲
by
G3rn0ti
3y ago
If you’re into language parsing and how its patterns could be used in a modern programming language you should take look on Raku (fka Perl 6): It has native support for „Grammars“ [1] which are basically specialized classes to put Regexes i
149.
▲
by
G3rn0ti
3y ago
Perl 6 took longer than expected but „Raku“ is alive and well. It even moved into the Tiobe-Index at rank #48 recently: https://www.tiobe.com/tiobe-index/ This whole Python/Perl competition was always a bit silly.
150.
▲
by
G3rn0ti
3y ago
> Teachers are usually allocated by state government administrations. This. Biggest issue in all variants of Germany’s education system. Schools should have their own budget which they can allocate as they wish and be allowed to freely r
More ›