The Art of Clean Code: Mastering the Betty Style 🧑🏾💻 Angel Oduro-Temeng Twumasi on July 16, 2023 Introduction When it comes to developing software in any programming language, adhering to a consistent coding style is crucial for main... Read full post Submit Preview Dismiss Collapse Expand Paul J. Lucas Paul J. Lucas Paul J. Lucas Follow Retired Principal Software Engineer, Instructor, Author — most recently of the book Why Learn C. Email paul@lucasmail.org Location San Francisco Bay Area Education University of Illinois at Urbana-Champaign Work Retired Principal Software Engineer Joined Jan 21, 2017 • Jul 17 '23 Dropdown menu Copy link Hide The style for documenting code should be the de facto standard of Doxygen. Collapse Expand Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Follow Hey there! I'm here to simplify tech for you! Let's break down the jargon and get started on your projects together. Email kwabenaatwumasi@gmail.com Location Accra, Ghana Education Kwame Nkrumah University of Science and Technology Pronouns He/Him Work DevOps Engineer | Data Engineer | Technical Writer Joined Nov 6, 2020 • Jul 17 '23 Dropdown menu Copy link Hide I see that. I just read and it has some interesting notes in there. But I still believe, Betty has the best of both worlds. Code styling and documenting Collapse Expand Paul J. Lucas Paul J. Lucas Paul J. Lucas Follow Retired Principal Software Engineer, Instructor, Author — most recently of the book Why Learn C. Email paul@lucasmail.org Location San Francisco Bay Area Education University of Illinois at Urbana-Champaign Work Retired Principal Software Engineer Joined Jan 21, 2017 • Jul 17 '23 Dropdown menu Copy link Hide For formatting, clang-format is the de factor standard. Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Follow Hey there! I'm here to simplify tech for you! Let's break down the jargon and get started on your projects together. Email kwabenaatwumasi@gmail.com Location Accra, Ghana Education Kwame Nkrumah University of Science and Technology Pronouns He/Him Work DevOps Engineer | Data Engineer | Technical Writer Joined Nov 6, 2020 • Jul 17 '23 Dropdown menu Copy link Hide Interesting one. I gave a resource in the write-up, you can check it out. Collapse Expand Maxime Guilbert Maxime Guilbert Maxime Guilbert Follow Education selftaught Joined Dec 3, 2020 • Jul 17 '23 Dropdown menu Copy link Hide Always useful to share the noble art of clean code. By sharing this kind of standards we are sure that anyone can read any code. Collapse Expand Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Follow Hey there! I'm here to simplify tech for you! Let's break down the jargon and get started on your projects together. Email kwabenaatwumasi@gmail.com Location Accra, Ghana Education Kwame Nkrumah University of Science and Technology Pronouns He/Him Work DevOps Engineer | Data Engineer | Technical Writer Joined Nov 6, 2020 • Jul 17 '23 Dropdown menu Copy link Hide Yeah Maxime. Clean code should be advocated. If you want to be a good programmer, be good at writing clean codes. This makes code interpretation easy and hence working on the code doesn't become tedious Collapse Expand Jeff Barnes Jeff Barnes Jeff Barnes Follow Joined Jul 19, 2023 • Jul 19 '23 Dropdown menu Copy link Hide The 'use of braces' section is wrong. It should only have start brace on the next line for functions, not statements. Collapse Expand Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Follow Hey there! I'm here to simplify tech for you! Let's break down the jargon and get started on your projects together. Email kwabenaatwumasi@gmail.com Location Accra, Ghana Education Kwame Nkrumah University of Science and Technology Pronouns He/Him Work DevOps Engineer | Data Engineer | Technical Writer Joined Nov 6, 2020 • Jul 19 '23 • Edited on Jul 19 • Edited Dropdown menu Copy link Hide I love that you comment on this post. However, I would plead you get your facts right. You can go to the links I shared read about it. This article is C programming and the Betty coding style. Collapse Expand Jeff Barnes Jeff Barnes Jeff Barnes Follow Joined Jul 19, 2023 • Jul 19 '23 Dropdown menu Copy link Hide This article claims this conforms to the Linux Kernel code guidelines. I was just pointing out that it doesn't. Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Follow Hey there! I'm here to simplify tech for you! Let's break down the jargon and get started on your projects together. Email kwabenaatwumasi@gmail.com Location Accra, Ghana Education Kwame Nkrumah University of Science and Technology Pronouns He/Him Work DevOps Engineer | Data Engineer | Technical Writer Joined Nov 6, 2020 • Jul 19 '23 Dropdown menu Copy link Hide In what ways does it not? Remember that this is Betty Coding Style Collapse Expand David Asiamah David Asiamah David Asiamah Follow I'm a Full Stack Software Developer with a passion for JavaScript Email daveasiamah@gmail.com Education Bachelor Work Full Stack Software Engineer Joined Nov 20, 2018 • Jul 17 '23 Dropdown menu Copy link Hide I think most of the rules regarding formatting can be handled by a linter. Collapse Expand Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Follow Hey there! I'm here to simplify tech for you! Let's break down the jargon and get started on your projects together. Email kwabenaatwumasi@gmail.com Location Accra, Ghana Education Kwame Nkrumah University of Science and Technology Pronouns He/Him Work DevOps Engineer | Data Engineer | Technical Writer Joined Nov 6, 2020 • Jul 17 '23 Dropdown menu Copy link Hide The Linter is also a great one. However I think Betty has an edge as it not only check the formatting, but it checks the docs as well. In fact, Aunty Betty makes you adhere to strict coding protocols 😀 Collapse Expand Solomon Ovie Okomowho Solomon Ovie Okomowho Solomon Ovie Okomowho Follow Aspiring Software Engineer Location Lagos, Nigeria Education LAUTECH Work Student Joined Jul 31, 2023 • Jan 21 '24 Dropdown menu Copy link Hide This is fantastic!!!! can I share this article on my page? Collapse Expand Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Follow Hey there! I'm here to simplify tech for you! Let's break down the jargon and get started on your projects together. Email kwabenaatwumasi@gmail.com Location Accra, Ghana Education Kwame Nkrumah University of Science and Technology Pronouns He/Him Work DevOps Engineer | Data Engineer | Technical Writer Joined Nov 6, 2020 • Jan 23 '24 Dropdown menu Copy link Hide Under condition that you attribute the authorship to me. You can share the knowledge. Also reach out to me on my socials let's discuss if you want me to write for your agency Collapse Expand Jason Viers Jason Viers Jason Viers Follow Education CompSci at CWRU Work Developer at Thunderstone Software Joined Jul 19, 2023 • Jul 19 '23 Dropdown menu Copy link Hide Functions must contain 40 lines of code Functions must FIT IN 40 lines. So they have to be less than 40, not greater than 40. Confused the heck out of me at first. Collapse Expand Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Angel Oduro-Temeng Twumasi Follow Hey there! I'm here to simplify tech for you! Let's break down the jargon and get started on your projects together. Email kwabenaatwumasi@gmail.com Location Accra, Ghana Education Kwame Nkrumah University of Science and Technology Pronouns He/Him Work DevOps Engineer | Data Engineer | Technical Writer Joined Nov 6, 2020 • Jul 19 '23 Dropdown menu Copy link Hide Error corrected. Thank you for pointing that out 😊 Code of Conduct • Report abuse
The style for documenting code should be the de facto standard of Doxygen.
I see that. I just read and it has some interesting notes in there. But I still believe, Betty has the best of both worlds.
Code styling and documenting
For formatting, clang-format is the de factor standard.
Interesting one. I gave a resource in the write-up, you can check it out.
Always useful to share the noble art of clean code. By sharing this kind of standards we are sure that anyone can read any code.
Yeah Maxime. Clean code should be advocated. If you want to be a good programmer, be good at writing clean codes.
This makes code interpretation easy and hence working on the code doesn't become tedious
The 'use of braces' section is wrong. It should only have start brace on the next line for functions, not statements.
I love that you comment on this post. However, I would plead you get your facts right.
You can go to the links I shared read about it. This article is C programming and the Betty coding style.
This article claims this conforms to the Linux Kernel code guidelines. I was just pointing out that it doesn't.
In what ways does it not? Remember that this is Betty Coding Style
I think most of the rules regarding formatting can be handled by a linter.
The Linter is also a great one. However I think Betty has an edge as it not only check the formatting, but it checks the docs as well.
In fact, Aunty Betty makes you adhere to strict coding protocols 😀
This is fantastic!!!! can I share this article on my page?
Under condition that you attribute the authorship to me. You can share the knowledge.
Also reach out to me on my socials let's discuss if you want me to write for your agency
Functions must FIT IN 40 lines. So they have to be less than 40, not greater than 40. Confused the heck out of me at first.
Error corrected. Thank you for pointing that out 😊