Git Product home page Git Product logo

Comments (4)

DraTeots avatar DraTeots commented on July 30, 2024

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.

mkirchner avatar mkirchner commented on July 30, 2024

@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.

DraTeots avatar DraTeots commented on July 30, 2024

"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.

mkirchner avatar mkirchner commented on July 30, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.