Giter Club home page Giter Club logo

Comments (5)

jandrieu avatar jandrieu commented on August 17, 2024

Representing large numbers like 4,000,000 as 4*1000*1000 instead of 4000000 makes them easier to read, debug, and maintain.

I'd keep the clockspeed as it is, but I agree more readable property names for polarity and phase would be an improvement.

from t2-docs.

tcr avatar tcr commented on August 17, 2024

If we were using Java/Python/Rust, representing it as 4_000_000 would be ideal. ;) Since this is for docs, it probably if we show the audience clock speed can just be represented as 4000000. (Persons writing their own codebases can use the expanded *1000 forms. Different audience.)

+1 to polarity and phase. Where did terms CPHA and CPOL even come from? We probably sourced them from Arduino examples way back in the day, but I haven't really seen them used outside of that domain. (Also see "mode" etc.)

I feel like "clockSpeed" is more applicable than "frequency" but YMMV.

from t2-docs.

Smadattam avatar Smadattam commented on August 17, 2024

Hi guys, I'm new here, and am a pretty green programmer. Would it make sense to create a constant titled MHz (or some other descriptive name) instead, and set it equal to 1000x1000? That way the expression could become "4*MHz" which could be even more readable.

from t2-docs.

arushi019 avatar arushi019 commented on August 17, 2024

Hi @Frijol ! Can the issue be closed now that the pull request has been merged? Or is there something else that needs to be done?

from t2-docs.

Frijol avatar Frijol commented on August 17, 2024

Yes, thanks for noticing!

from t2-docs.

Related Issues (20)

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.