[–] 2 points 2 weeks ago

That's the role of the commit title, with tags if you follow https://www.conventionalcommits.org/ standard.

99% of commit description will never be read. Only the title is usefull when you scroll to a git log.

But, for the remaining 1%, it means you ended up doing a git blame, git bisect or any funky stuff like this to troubleshot a bug. And when you find the commit that introduced the regression, written by some dude that leaved the company 5 years ago and see a description like "Add the whatever method in whatever class that do the stuff explained by the doc written in the file"... Well, thanks bro. But why did you do this ?!!!

  • source
  • parent
  • context
  • [–] 9 points 2 weeks ago (4 children)

    A commit message is not supposed to be a summary of the code. It is supposed to gives information that you cannot deduct from the diff. Like:

    • Is there an attached ticket ?
    • Does it produce side effects ?
    • Is it a quick and dirty fix just before the release ?
    • What are the consequence of the modification ?
    • Why you choose this approach instead of another ?
    • Why are you not able to add regression test ? etc ...

    The first guy at Cursor that create the feature to generate commit message from diff is just a fucking moron that don't understand the role of a commit message.

  • source
  • [–] 2 points 1 month ago

    I'm still convince that polish notation was the biggest mistakes of Lisp. At some point, the guy who create Lisp language decide to get rid of 2 centuries of mathematic convention just because of a technical limitation that last for maybe 2 decades.

    Oh, and no one to talked about (1- x) ?

  • source
  • [–] 2 points 1 month ago

    I find it strange to explain how everything works but keep the implementation closed. It gives a "Trust me bro !" vibe, so I understand that some people might be reluctant about your project.

    Anyway, using git as backend storage is cool. I love it when tools are repurposed for uses other than their original intent ^^.

  • source
  • parent
  • context
  •  

    The Quantum Playground is a set of small Quantum circuit I'm developping to help me better understanding Quantum processing.

    Last month, I have published an article in which I tried to understand the Bernstein-Vazirani algorithm.

    Now, here is a small interactive circuit where you can see the Oracle corresponding to a given secret key and the final quantum state of BV circuit.

    [–] 2 points 2 months ago

    Could be a comment indeed. It's hard, or even impossible, to clearly decide where to put an information. There are some guidelines, but no absolute rules. Commit messages, comments, API docs, tickets, wikis, etc... all of them serve different purpose.

    • Comments are here to explain an implementation detail when code cannot be self-explanatory. They live as long as the code live (and are unfortunately not always updated). They are used when a developer arrives on that line of code.

    • Commit message are here to explain why something has been added/removed. What happen before, what happen after, why this solution was needed. They are tightly couple to the diff and generally don't contain generic high-level information (unless commit is a design or architectural modification). They are used by the reviewer and 5 years later by someone that do a git blame to understand why this line was introduced and what happen if I remove it.

    • API Docs explain the behavior of an API, as seen from the outside. They should not explain the implementation, nor explain in which case and which part of the system they are used.

    • Tickets explain a user request. They detail who request this and for what purpose, but only from user point of view. No implementation detail.

    • Wikis are here to cover your ass so you can say "See, it was written in the wiki !"

  • source
  • parent
  • context
  • [–] 5 points 2 months ago (2 children)

    I'm really sad that after 20 year we still have to explain that commit message is not a summary of code modification.

    Commit message is here to gives information's that are not visible in the diff. The context, the side effects, the decision that were made, etc... All of this cannot be generated by LLM.

  • source
  •  

    I got back to quantum computing during this summer and spent time understanding the Bernstein-Vazirani algorithm. I wanted to have a better feeling of what's going on instead of focusing only on equations. Here is the result of my investigations.

    I'm also working on an interactive page on BV circuit on my Quantum Playground but I still have some issues. Maybe for next month.

    [–] 8 points 3 months ago

    It works. You have hammers and nails. Then, someday, a dude come with the new Hammer23, with better ergonomical grip, colored high density 3 sided head, and so on. Yeah, cool, but I still have the same nails to nail, and my current hammer do the job perfectly. And I drilled a hole in my workbench ten year ago that have the perfect size for my current hammer.

  • source
  • [–] 13 points 4 months ago (1 child)

    Asking to cyptography experts. Would it be possible to flood a discussion with AI generated slope ? The discussion itslef would not be encrypted, but would be lost in millions of other generated discussion. A "private key" mechanism would be use to identify which message are part of your real discussion.

    I suppose this would be compliant with Chat Control, as message are not encrypted. But without private key, you won't be able to identify which message are the good ones.

  • source
  • [–] 55 points 4 months ago (2 children)

    Here is my "Tuesday evening 15min before leaving work analysis".

    Before COVID, IT market was stable. After COVID, there was WAY too many IT offers. Then, market collapse supposedly because of AI:

    (Source: https://fred.stlouisfed.org/series/IHLIDXUSTPSOFTDEVE)

    In blue line, actual curve. In green line, what should have been IT market without COVID and AI.

    For IT market to get back to equilibrium, red area should be equal to blue area. If I do some patchwork, I ended up with this:

    So my conclusion is that it indeed slowly starting to recover and should be back to normal ~mid 2027.

    Time to go home, bye 😁

  • source
  •  

    I've created a nice quantum computing cheat sheet. It's not just a patchwork of stuff I've googled. It's a synthesis of everything I've understood in the last few month.

    There are things I had to get by myself because no one clearly mentioned it. Like the fact that Wikipedia pages on Quantum Gates use "1st qubit leftmost" convention whereas Qiskit use "1st qubit rightmost".

    Anyway, here it is: https://kissyagni.com/TheQuantumComputingCheatSheet.pdf

    Use it, Share it, and even Correct it 😊

    The Deutsch algorithm (kissyagni.com)
     

    I finally understood the Deutsch Algorithm.

    All the articles I found dealt with the equations too quickly, and my math is a little rusty. Also, I never studied tensor spaces in school, so handling tensor products is far from natural.

    I detailed every single steps here: https://kissyagni.com/the-deutsch-algorithm.html

    There are probably more compact method to explain the algorithm, but this the one that worked for me.

     

    publication croisée depuis : https://programming.dev/post/36003106

    I'm continuing digging into quantum computing with some Quantum gates acting on a single QBit. Next one will be on multiple Qbit gates.

    Representing Bloch sphere with sketches is a bit challenging. I'll try to find a better way to do this.

    view more: next ›