• 0 Posts
  • 24 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle

  • Ferk@kbin.socialtoProgrammer Humor@programming.devWhitespace
    link
    fedilink
    arrow-up
    12
    arrow-down
    1
    ·
    edit-2
    9 months ago

    But C syntax clearly hints to int *p being the expected format.

    Otherwise you would only need to do int* p, q to declare two pointers… however doing that only declares p as pointer. You are actually required to type * in front of each variable name intended to hold a pointer in the declaration: int *p, *q;


  • I feel it’s a balance. Each operation has a purpose.

    Rebasing makes sense when you are working in a feature branch together with other people so you rebase your own commits to keep the feature branch lean before you finally merge it into the main branch, instead of polluting the history with a hard to follow mess of sub branches for each person. Or when you yourself ended up needing to rewrite (or squash) some commits to clean up / reorganize related changes for the same feature. Or when you already committed something locally without realizing you were not on sync with the latest version of a remote branch you are working on and you don’t wanna have it as a 1-single-commit branch that has to be merged.

    Squashing with git merge --squash is also very situational… ideally you wouldn’t need it if your commits are not messy/tiny/redundant enough that combining them together makes it better.




  • it’s even ISO standardized

    Not only are there other ones that are also ISO standards when it comes to software layouts, but funny enough, when it comes to physical layouts, US keyboards normally follow an ANSI standard (not an ISO one), whereas many non-US keyboards typically follow a physical key layout known as “ISO Keyboard”, so one could argue those are more of an “ISO” standard.

    https://upload.wikimedia.org/wikipedia/commons/b/b2/Physical_keyboard_layouts_comparison_ANSI_ISO_KS_ABNT_JIS.png

    right ctrl + left shift + 9 will do?

    No keyboard layout uses ctrl like that… in fact, I don’t think you ever really need to press more than one modifier in any standard non-US keyboard. Unless you have a very advanced custom layout with fancy extra glyphs… but definitelly not for the typical programming symbols.

    ISO keyboards actually have one more key and one more modifier (“AltGr”, which is different from “Alt”) than the ANSI keyboards.

    In fact, depending on the symbol it might be easier in some cases. No need to press “shift” or anything for a # or a + in a German QWERTZ keyboard, unlike in the US one. Though of course for some other ones (like = or \) you might need to press 1 modifier… but never more than 1, so it isn’t any harder than doing a ) or a _ in the US layout.


  • Ferk@kbin.socialtoProgrammer Humor@programming.devifn't
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    9 months ago

    Yes… how is “reducing exclamation marks” a good thing when you do it by adding a ' (not to be confused with , ´,or’` …which are all different characters).

    Does this rely on the assumption that everyone uses a US QWERTY keyboard where ! happens to be slightly more inconvenient than typing '?




  • Many hosts allow you to set rules to protect branches from getting their commits removed in the remote (in fact, I think that’s the default for gitlab main branches) or to prevent people from pushing their commits to them directly.
    I expect even “the main branch has to stay more or less in sync with origin/main” can be automated… though it might not be what you always want, depending how you work.



  • coders revealed to 404 Media that “some of Kirsina’s Instagram posts are word-for-word copies of Sizovs’ LinkedIn posts, sometimes published more than a year later.” In addition, “some of the images [Kirsina] posted on Instagram show computer monitors with code that show her logged in under Sizovs’ name.” But perhaps most striking is the fact that an administrator told 404 Media that both Sizovs’ and Kirsina’s accounts were banned “multiple times” by the Lobste.rs coding forum for “sockpuppeting”—using a false identity to deceive others—in 2019 and 2020.

    Lol… for reference, this is the twitter account: https://nitter.net/UnicornCoding

    It’s full of advertisements about the DevTernity conference… as does the instagram, which has so many professional-looking photos that feel like she was an actual model, always with different backgrounds. Is the laptop wirelessly streaming to the ultrawide screen in her Twitter profile picture? because I see no cables, she’s not even connected to a charger, how long of a coding session can you have like that?


  • Ferk@kbin.socialtoProgramming@programming.devWhy Git is hard
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    11 months ago

    It’s also kinda annoying to have a history full of “merge” commits polluting the commit messages and an entwined mix of parallel branches crossing each other at every merge all over the timeline. Rebasing makes things so much cleaner, keeping the branches separate until a proper merge is needed once the branch is ready.





  • Yes, the way his hand is positioned, it would not have worked if they had wanted to make it hold the wooden stick. They’d have needed to edit the hand too much and it would have likely been noticeable / even weirder.

    Probably they decided: f*ck it, let them grab it however they want. Maybe it’ll even become a thing.

    And it looks like it worked, since we are talking about it and spreading the ad. Smart advertising, imho.


  • That might be a particular consensus in English grammar, but it’s still 100% dependent on what your linguistics are. If, at some point in time, the consensus in English grammar were to assign different pronouns based on age, or what kind of job that person has… then that would still be a linguistic trait, even if you were linking it to a perceived physiological appearance / job position, they’d be doing it because the community in that language wants to do it, not because biology/economics dictates it.

    So, like every consensus, the only thing making it change is for people in that Universe to agree with the change. Something that happens frequently, and has happened already several times across history.

    300 years ago people used the pronoun “thou” for the second person in singular, and “you” was only used as a plural. And a lot of people pushed back against change too, but change did stick with the community, to the point that today everybody uses “you” and “thou” dissappeared.

    It wouldn’t be unrealistic to assume that the same could happen, for example, with “they”, another 300 years in the future.


  • This has nothing to do with biology, it’s 100% English grammar. Biology books are not the ones explaining what’s a “pronoun”. In fact, many languages don’t even have pronouns, and yet their biology books can perfectly be translated.

    English grammar is constantly evolving. In fact, it would make it a lot more realistic if there were more strange expressions and mannerisms, even outside of pronouns. Battlestar Galactica did add some funny nonsensical expressions like “frak”, “rook”, “frimp”, “pogees” and popular phrases like “so say we all” that added a layer of depth to their futuristic culture, making it a lot more believable.

    I don’t think this mod really helps with “realism”. It would in fact be unrealistic to expect no linguistic changes at all in 300 years. The only reason why I think some people are mad is because they think it’s pandering to a political agenda so they don’t even want to see an option be given at all… despite it actually being a totally optional and even totally believable aspect of a future hypothetical culture. Whether you agree with the direction that this hypothetical futuristic culture developed towards or not.