[-] KissYagni@programming.dev 5 points 6 days ago* (last edited 6 days ago)

I was prepared to use my Cunningham Law mental model to correct your article, but no. I have nothing to say 😊

I've seen way too many wrong usage of git merge/rebase in lots of article but you get the point and clearly explained it.

Maybe just at the end, instead of

git checkout main
git pull
git checkout feature-branch
git rebase main

I would just do:

git fetch
git rebase origin/main

This avoid checkout main and checkout back to working branch, which may takes times on big repos.

5
submitted 1 week ago* (last edited 1 week ago) by KissYagni@programming.dev to c/qubits@mander.xyz

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 😊

[-] KissYagni@programming.dev 6 points 2 weeks ago

You mean that a company whose business rely on collecting user data actually collect user data ?

[-] KissYagni@programming.dev 4 points 1 month ago

Everytine I've seen a pre-commit hook in my job, it was something that should have been in integration pipeline.

You should not run linter, test or any static analysis tool in a pre-commit (I'm looking at you husky 😑). Why ? Because:

  • It takes time. A commit should be instantaneous.

  • It may change the content of the commit or of the repos without explicite action of the developer.

  • The developper's branch is the developper's mess. He don't have to respect any convention, any quality gate or any workflow on its branch. Quality gates should happen only when integrating into trunk.

I always commit and push on Friday afternoon before leaving as "WIP", in case my computer crash during week end. I don't want to address issues of a WIP job. I just want to backup my work.

I may commit several time per minute, and do a rebase latter. I don't want to spend 2min each time waiting for eslint to parse the repos. I don't want to fix styling because I now I will fix it later and rebase -i before pushing.

You can use custom pre-commit in your own workflow, but forcing all developer to have the same pre-commit is a bad idea.

3

I'm currently playing with qiskit, the IBM Python library for quantum computing. I don't know if it is good or bad; I just took the first one I found.

[-] KissYagni@programming.dev 1 points 3 months ago* (last edited 3 months ago)

"Next-gen AI computing for seamless 3D Gaming"

What's AI has anything to do with 3D ? Apart maybe for DLSS and Neural Radiance Field, AI has nearly no application in current 3D gaming. Stop putting AI into fucking everything just to look cool !

[-] KissYagni@programming.dev 59 points 4 months ago* (last edited 4 months ago)

"Bad abstraction is worse than duplication"

Oh shit, thank you so much for this part ! I don't even count number of time I had to face enthusiasts developers saying "These lines of code are very similar, let's factorize them ! "

And that's how MathManagerHelper class is born...

[-] KissYagni@programming.dev 4 points 4 months ago

I gave a try to jj. It's fine for personal projects or small team and make the workflow a bit easier. No more "git add; git commit; git push" each time you do a modification. You just "jj git push" and everything will be automatically pushed.

However, the biggest criticism I have is that he doesn't encourage to push every time. It really encourages you to keep your modif locally and push only to create a PR, and that's not a good approach.

Even if you code is WIP, even if everything crash, you really should push your code to backup it. Who cares ? As long as it is not on master branch, it's your own mess.

2
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.

[-] KissYagni@programming.dev 2 points 5 months ago

Ok, fine, what's the point of generating commit message based on what's already inside the commit ?

Commit messages are supposed to give informations that are not in the modfied code. It's supposed to be the "why" you did this, not the "what" you did !

4
submitted 5 months ago* (last edited 5 months ago) by KissYagni@programming.dev to c/blogging@programming.dev

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.

3
submitted 5 months ago* (last edited 5 months ago) by KissYagni@programming.dev to c/qubits@mander.xyz

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.

[-] KissYagni@programming.dev 2 points 6 months ago

Wow, thanks for feedback. I've rephrased some of the sentences.

You remarks make me think a talk I had we a colleague. I thought for a very long time that univers were actually like what we describ through equation. There were really some "energy gauge", "mass", "speed", etc... until this colleague told me "That's just a model, it's not the reallity. it gives good results in its field of application, but it will always be just an approximation."

3
submitted 6 months ago* (last edited 6 months ago) by KissYagni@programming.dev to c/qubits@mander.xyz

Just started my journey into quantum computing. I hope this would help beginners to understand what the hell is this thing 😊

4

Hey, just want to share a new step in my learning of Quantum Computing. I've digged a bit into Quantum gates and tried to redo the math by hands. There are probably mistakes, but that how you learn things.

Btw, I've also recently moved from WordPress to pelican, codeberg and statichost.eu.

[-] KissYagni@programming.dev 3 points 6 months ago

I never really understood the advantage of worktree over having just several clone of the repos on different folders.

Can someone explain me ? I should have missed smth.

[-] KissYagni@programming.dev 1 points 6 months ago

It was usefull for me. Not everyone is a webdev πŸ™‚

[-] KissYagni@programming.dev 2 points 6 months ago

Yes, unfortunately, we don't have time to learn everything, we have to choose. Sys engineer is a rabbit hole which is too deep for me, I prefer spending time on other things.

Currently, I'm into quantum computing. I'm configuring the uConsole so I can easily edit my blog on the go.

[-] KissYagni@programming.dev 1 points 6 months ago

I've installed several windows managers, bash, kernel, etc... without really knowing what I'm doing. It help me quickly check on which config I am.

-1

Just moved my blog from wordpress to Pelican. I was pissed of by the wysiwyg interface and was looking for simple markdown based blog engine.

Pelican is great and easily customisable with theme. It can also be deployed on a gitlab/github/codberg/whatever page (next step πŸ˜‹)

view more: next β€Ί

KissYagni

0 post score
0 comment score
joined 7 months ago