Comments (4)
If you have 4 lines of code that require a TED talk and a GitHub repository to explain them... It points to some generic flaw, smell or whatever you call that feeling of something which not that elegant.
P.S. And yes, the talk and the repo are not only an explanation but also a hymn to the "beauty" of those lines but you know what I meant.
from linked-list-good-taste.
@mansoor2016 and @DraTeots, I agree that there is a difference between code that is just elegant and code that is suitable for production!
There is also something to be said for code that can be understood with a cursory glance, and do not require explanations.
For me, that's a function of my fluency and experience in a language. I am sure I would have grokked Linus' approach immediately if I were a better C programmer.
If you have 4 lines of code that require a TED talk and a GitHub repository to explain them... It points to some generic flaw, smell or whatever you call that feeling of something which not that elegant.
To be fair, the TED talk is not explaining the code, it uses the code to explain what Linus Torvalds considers good code. But yes, if your and your peers' C experience does not match the experience of the Linux kernel developer, you probably should not be using this in production! ;-)
from linked-list-good-taste.
"But yes, if your and your peers' C experience does not match the experience of the Linux kernel developer, you probably should not be using this in production! ;-)" - you are so proud of them while one probably shouldn't be. It is like living in abusive environment and be proud of it (and many do, I know), proud of oneself about survival and endurance. While sane person would probably be happy not to live in such environment, try to avoid it and try to improve / build better environment for themselves if they live there for so many years.
from linked-list-good-taste.
@DraTeots, my apologies, this was a tounge-in-cheek comment. My point is that you need to adjust your code complexity to your environment and that that is a perfectly fine thing to do. No pride involved.
from linked-list-good-taste.
Related Issues (12)
- Will this result in memory leaks? HOT 2
- Crash HOT 1
- do you think it would be doable in other languages like python for a linked list? HOT 2
- About Linus taste HOT 1
- pointer vs value equality HOT 1
- I found out the **p can be removed, which leads to lesser codes, but I don't know whether it's better or worse since it introduces a warning, what do you think? HOT 2
- A question about the implementation HOT 3
- How did you make these diagrams? HOT 1
- Code fails on null or item not in list. HOT 4
- test doesn't compile on GCC HOT 1
- Related to derivatives of data structures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linked-list-good-taste.