[-] lysdexic@programming.dev 2 points 2 years ago

Like most have already said, the auto complete is top tier (...)

My experience is the exact opposite. Even though it has its moments, more often than not it just hallucinates and proposes a lot of stuff that neither matches definitions nor could possibly compile. I guess that this might reflect the impact of having classes with similar names in multiple namespaces but it's bad to the point I prefer to rely exclusively on plain old autocorrelation.

[-] lysdexic@programming.dev 2 points 2 years ago

std::unordered_map is one of the worst ones

It should be noted that the benchmark focused on the std::unordered_map implementation from GCC 13.2.0. I'm not sure if/how this conclusion can be extended to other implementations such as msvc or clang.

[-] lysdexic@programming.dev 2 points 2 years ago

I think a common misconception is that there’s a “right way to do git” - for example: “we must use Gitflow, that’s the way to do it”.

I don't think this is a valid take. Conventions or standardizations are adopted voluntarily by each team, and they are certainly not a trait of a tool. Complaining about gitflow as if it's a trait of Git is like complaining that Java is hard because you need to use camelCase.

Also, there is nothing particularly complex or hard with gitflow. You branch out, and you merge.

[-] lysdexic@programming.dev 2 points 2 years ago

This shape certainly beats a triangle (...)

Nature loves triangles.

https://en.wikipedia.org/wiki/Michell_structures

8
MISRA C++:2023 published (forum.misra.org.uk)

MISRA is very pleased to announce the release of the new version of MISRA C++; MISRA C++:2023 Guidelines for the use C++:17 in critical systems

Published in October 2023, this is the latest and current edition of MISRA C++. It is specifically targetting the 2017 language version (C++:17) as defined by ISO/IEC 14882:2017.

38
2
1
2

Here's the release notes: https://cmake.org/cmake/help/v3.28/release/3.28.html

Perhaps the update that's the most interesting - C++20 named modules support by Ninja:

C++ 20 named modules are now supported by Ninja Generators and Visual Studio Generators for VS 2022 and newer, in combination with the MSVC 14.34 toolset (provided with VS 17.4) and newer, LLVM/Clang 16.0 and newer, and GCC 14 (after the 2023-09-20 daily bump) and newer. See cmake-cxxmodules(7) for details.

80
2
27
228
1
2
27

So I've just learned that git rebase -i allows users to merge individual commits in the middle of a branch's history. For that,

$ git rebase -i

This should bring a list of all commits in reverse order, similar to the one listed below:

pick 2361d4d implements something
pick a700451 fixes a bug
pick 79f9d04 fixes a bug again
pick 3172f07 implements some other thing

# Rebase 484d6d2..3172f07 onto 484d6d2 (4 commands)
#
# Commands:
# p, pick  = use commit
# r, reword  = use commit, but edit the commit message
# e, edit  = use commit, but stop for amending
# s, squash  = use commit, but meld into previous commit
# f, fixup [-C | -c]  = like "squash" but keep only the previous
#                    commit's log message, unless -C is used, in which case
#                    keep only this commit's message; -c is same as -C but
#                    opens the editor
# x, exec  = run command (the rest of the line) using shell
# b, break = stop here (continue rebase later with 'git rebase --continue')
# d, drop  = remove commit
# l, label  = label current HEAD with a name
# t, reset  = reset HEAD to a label
# m, merge [-C  | -c ]  [# ]

It's possible to merge commit 79f9d04 with a700451 by updating the list of commands to set squash instead of pick in the commit you want to flatten onto the previous one, such as:

pick 2361d4d implements something
pick a700451 fixes a bug
squash 79f9d04 fixes a bug again
pick 3172f07 implements some other thing

(...)

Once we save the commit, Git opens an editor to rework the new commit message for the squashed commits, and you're set.

[-] lysdexic@programming.dev 2 points 2 years ago

appears to be a weak patch.

It's not a patch. It's eliminating an attack vector, and the one which is more pervasive and easier to exploit.

Security-minded people pay far more attention to what software you run than what hardware you have.

[-] lysdexic@programming.dev 2 points 2 years ago

For Signal, no.

There is an argument to make about using custom versions of Signal that route their traffic through your own infrastructure.

This would count as France running their own service.

Given that Signal relies on centralized servers to route traffic, and if I'm not mistaken they use AWS in US instances, this means that your Signal traffic is being fed straight into the US security services' infrastructure. France might be a staunch ally of the US, but they do go through great lengths to preserve their independence.

[-] lysdexic@programming.dev 2 points 2 years ago* (last edited 2 years ago)

Leaving my 0.02$ here:

Please don't deploy this bot. It's annoying, it contributes nothing to actually create interesting content for the community to engage, and in fact its main output is spam.

It does more harm than good. Please don't.

I'd add that if the idea was any good then instead of spamming people left and right, it would suffice to crosspost stuff on target communities.

[-] lysdexic@programming.dev 2 points 2 years ago

Even then, you’ll still want to have in mind instances known for spam, bots, or shady content have been blocked.

Is there a list tracking these instances?

[-] lysdexic@programming.dev 2 points 2 years ago

You're absolutely right. Wrong link posted to the wrong community. I apologize for the snafu.

[-] lysdexic@programming.dev 2 points 3 years ago

But since then, i came to a revelation, than it takes years of experience to knw which wire to touch

Might be, might not be. A popped capacitor doesn't require a lot of skill to spot.

Not all jobs are rocket surgery.

view more: ‹ prev next ›

lysdexic

0 post score
0 comment score
joined 3 years ago
MODERATOR OF