Masstamilan
    Facebook Twitter Instagram
    Facebook Twitter Instagram
    Masstamilan
    Subscribe
    • Home
    • News
    • Business
    • Technology
    • Fashion
    • Entertainment
    • Digital Marketing
    • Sports
    Masstamilan
    Home»News»Writing code to a style guide transfers that information into the code itself.
    News

    Writing code to a style guide transfers that information into the code itself.

    AlbertBy AlbertMarch 6, 2021Updated:December 22, 2021No Comments2 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    You’re able to acclimate quickly, sidestepping the tedious process of relearning what the code does before you can start investigating the real issue. Any good style guide prescribes when and how to leave comments in code. Most developers have an aversion to comments because it seems a lot like writing documentation — and developers tend to hate writing documentation.

    This is usually because writing documentation is seen as time not writing code. However, it’s the documentation that allows you to come back to code you wrote in the past and quickly get back up to speed. Another common argument against using comments is that code should be self-documenting.

    In reality, there is no such thing as self-documenting code. Self-documenting code is a myth perpetuated by people who hate to write documentation. A common argument against writing comments is, “if you can’t understand my code, then you’re not smart enough.” In reality, understanding code has nothing to do with how smart a developer is, but rather providing enough context so the code make sense.

    Read more about:  webeduportal

    Lastly comment

    Without comments, or a direct discussion with the code author, it’s very hard to get enough context. The best-understood code is littered with comments explaining key sections. You certainly don’t want a comment for every line of code, and comments must provide additional context and information that cannot otherwise be gleaned from reading the code. Here’s an example of a bad comment:

    Visit this site: 9xmovies to download all kinds of latest movies.

    brand guidelines example branding guide template c++ coding style google c++ style guide google coding style logo guidelines why code style is important
    Share. Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Tumblr Email
    Albert
    • Website

    Related Posts

    Factors to Look into When Buying Diesel Water Pump

    March 21, 2023

    How Gulshan Grover Has Used His Wealth

    March 18, 2023

    Advantages of a Fluid Bed Dryer

    March 16, 2023

    Comments are closed.

    Recent Posts

    Juice Wrld Hoodie

    March 25, 2023

    High-quality Boosting in World of Warcraft, Raid Analysis

    March 25, 2023

    The Environmental Impact of Disposable Gloves

    March 25, 2023

    The Association of Performing Arts Professionals Login Process

    March 24, 2023
    Categories
    • All
    • Apps
    • Arts and culture
    • Beauty Tips
    • Business
    • Diet
    • Digital Marketing
    • Drawing
    • Education
    • Entertainment
    • Environment
    • Exercise
    • Fashion
    • Financial
    • Fitness
    • Food
    • Games
    • Health
    • Home Improvement
    • Lifestyle
    • News
    • Nutrition
    • Pet
    • Photography
    • Social Media
    • Sports
    • Style
    • Tech
    • Technology
    • Travel
    • Web
    • Web design
    • Contact Us
    • Privacy Policy
    Masstamilan.audio © Copyright 2023, All Rights Reserved

    Type above and press Enter to search. Press Esc to cancel.

    Cleantalk Pixel