Giter Site home page Giter Site logo

Comments (3)

NoMoreFood avatar NoMoreFood commented on July 28, 2024

Agree with your comment, generally speaking. If I had any control of the upstream code (PuTTY), I would definitely change it. And like 100 other things -- I'm definitely not a fan of the PuTTY codebase (e.g., terrible indenting, lots of correctable warnings in Visual Studio). Being that I don't have control of upstream code, I try to follow the axiom of only making delta changes in the code style / technique of the original file even if those aren't best practices. While it may introduce room for error as you indicated, so does making larger changes to sections of code we'll have to try to merge later. If you can convince the maintainers of PuTTY to make the corresponding changes in the upstream first, PuTTY CAC will gladly adapt.

The only thing I see wrong in the second link is the comment next to the case statement -- which I will fix. Please let me know if you see something else.

from putty-cac.

GigabyteProductions avatar GigabyteProductions commented on July 28, 2024

I suspected that you were just trying to stick with what upstream does, but applying best practice to new code is also doable here ("Add PKCS Cert", "Add CAPI Cert", and their IDs are "new" to upstream Putty).

Regarding the second link: Yes; I was referring to the comments. I do understand there is no functional difference between the comment or case order, but I thought it was at least notable. That kind of thing has potential to cause issues in development, because of people of applying their code around what the comment says and nobody noticing it's wrong.

from putty-cac.

NoMoreFood avatar NoMoreFood commented on July 28, 2024

Addressed in latest commit (5f74bce).

from putty-cac.

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.