truly spoken like someone who has never worked on a large C/C++ project
- 0 Posts
- 17 Comments
not saying it’s good design, I ditched C++ long ago. at least the C++20 modules API is gonna fix this, right guys?
pretty sure the meme is about how the implementation looks ugly but using the implementation looks good because all the code is abstracted away. if it was like you said then why would they compare the code to the main.cpp
The reason is that header files are pretty much copy/pasted into your c files when you include them. so the code in them keeps getting recompiled for every c file, which drastically increases overall build times. If you only declare in the header and have one c file implementing the functions you compile them only once.
Why are you putting the implementation in the .h file? You’re supposed to declare in the header and implement in the .cpp files. The meme is reversed
Lauchmelder@feddit.deto Memes@lemmy.ml•diminishing returns but here's day 5 of stock photos memesDeutsch2·2 years agoin what backwards country are cashiers not allowed to sit down ???
A law like this would violate the rights of all EU citizens. The courts would (should!) strike this law down immediately
I go to self checkout because my closest supermarket has one cash register and the queue is always like 6 old people
Lauchmelder@feddit.detoGeneral Programming Discussion@lemmy.ml•Why use VIM/Nano/Emacs over VS Code?Deutsch2·2 years agoIn my neovim setup I have basically the same functionality as vscode. with the added benefit of not having to reach for my mouse to navigate the cursor to a certain location. Vim has a steep learning curve, but all the hotkeys let you navigate way more quickly than you could with a mouse (or with arrow keys)
Edit: By “same functionality as vscode” I mean file tree, quickly finding files by searching, fuzzy finding terms in the project, syntax highlighting, linting, intelli sense, and all the qol features the modern developer wants like auto-closing brackets etc. Really the main reason I use vim is just the hotkeys. I’ve gotten used to them and wouldn’t wanna go back to using my mouse that much. And ofc vim is a lot more lightweight than vscode
Lauchmelder@feddit.detoGeneral Programming Discussion@lemmy.ml•Why use VIM/Nano/Emacs over VS Code?Deutsch11·2 years agoThe appeal of vim is actually the opposite of just fast typitg speed. Vim’s default mode is one where you can’t type, you can only edit. The reasoning is that when coding as you said, you tend to think more and edit existing code, rather than writing completely new code. I find that vim has a lot more features for navigating and editing code than any other editor
I think that’s sage and not lavender
The first one ever was Lufthansa, the first one I flew with by myself was Korean Air
Lauchmelder@feddit.deto Technology@beehaw.org•"What do we do now?" - LMG's response to the recent controversies34·2 years agoBrowse link aggregator website. Complain about links being aggregated
Lauchmelder@feddit.deto Technology@beehaw.org•Built-in software ‘death dates’ are sending thousands of schools’ Chromebooks to the recycling bin32·2 years agostill using things like Google Chrome or Chromebooks in 2023 is actually reckless behaviour. stuff like manifest v3 and the web integrity api just prove that google will use their monopoly to take over the open internet
Lauchmelder@feddit.deto Open Source@lemmy.ml•Visual Studio Code alternatives for Linux?English101·2 years agoI wouldn’t exchange my neovim config for anything. After getting used to how vim works and installing all the plugins I need, I feel like this is my favourite editor. It looks nice and I enjoy using keyboard shortcuts over using a mouse.
That said, the day I lose my neovim config is the day I die. If it disappears I’m doomed
Lauchmelder@feddit.deto Technology@beehaw.org•Why You Should Use Bionic Reading in Chrome (or Any Browser): An extension to highlight the most important parts of wordsEnglish12·2 years agoIs this actually legit? I’ve heard this before but didn’t know if it was backed up by any studies. Guess I’ll just try it and see for myself
Edit: no firefox addon? booo
source: i made it the fuck up