• 0 Posts
  • 15 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle



  • From the neovim 0.10 changelog:

    ‘termguicolors’ is enabled by default when Nvim is able to determine that the host terminal emulator supports 24-bit color.

    So for me, i previously had vim.cmd.hi 'Normal ctermbg=none' as the method for disabling the background. But now, nvim was deciding to use gui colors for the terminal, and I was only setting terminal background to none.

    The options are:

    • vim.cmd.hi 'Normal ctermbg=none guibg=none' (also none out the gui bg)
    • vim.cmd.hi 'Normal bg=none' (flat unconditional bg none)
    • vim.opt.termguicolors = false (just disable the now enabled by default function to go back to terminal colors)

  • bisby@lemmy.worldtoProgrammer Humor@programming.devAI Suggestions
    link
    fedilink
    English
    arrow-up
    17
    ·
    edit-2
    6 months ago

    too lazy to type this obvious thing in?

    This has been the thing for me. I get really bored and lose focus when doing all the obvious repetitive stuff. And the obvious stuff is the stuff I find copilot does best. For anything that requires thought I’m engaged. Those are the fun parts of the job. It lets me do more of the fun part.

    The one major downside that I’ve found is that sometimes I just want to tab complete a long variable/function name, and because of copilot i dont have “old style” tab completion anymore. (I could definitely still handle this myself, but i haven’t)

    edit: this all to say that I don’t use copilot to write code that I don’t know how to write, I use copilot to write code that I’ve written 1000 times before and don’t want to write again. Copilot does a good job of looking through all the open files for context to help make sure the suggestions actually fit into the codebase’s pre-existing style.



  • I didn’t realize that. I use a .xyz for a lot of my personal stuff and didn’t realize this. I wanted basically .website … i didnt want .com or .org or anything with tld that meant something, so xyz felt nice. Also, the domain I wanted with any popular tld was insanely expensive and i got my xyz for cheap when it was brand new (not for 1 dollar though).

    Maybe I need to look into new domains, but I probably will just stick with it since its primarily for personal use anyway.


  • bisby@lemmy.worldtoProgrammer Humor@programming.devHilarious
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    7 months ago

    Caveat: This is all written assuming the message is being written on a computer with a real keyboard. But if we’re assuming this is written on a phone, then my analysis doesn’t apply, but then again, writing a java program to execute in your messaging app is also a terrible idea. Which means we’re suspending disbelief, so I choose to believe that a computer keyboard and shortcuts are available.

    Type the phrase once. Select all. copy, paste, paste (the first paste replaces what you already have highlighted, the second paste adds a second copy). Now you have 2. Control + A, Control + C, Control + V… Now you have 4.

    It will take you only 7 cycles of this get 128*, you only need to copy/paste it one by one if you want to send each message separately. and even then, it’s would purely be copy the original, then paste, send, paste, send, paste send, paste, send.

    Assuming you can hold down control and just hit ACVV 7 times, that’s 28 keystrokes. I’d bet I can get that done in 5 seconds or less (i tried it, it’s less than that), so now I only save 5 seconds. Which means I only get 25 seconds to write the script. Which he chose to write in java for some reason?

    [print("I'm sorry") for x in range(0, 100)] is actually a script I could write in less than 25 seconds.

    *And I disagree with the “reason 4” given. She didn’t say “exactly 100 times” she said “100 times before I forgive you” and to me, “before” implies >= and not ==. So if you drop it in 128 times, that exceeds the criteria. No one has ever rescinded forgiveness for receiving extra apologies.






  • The issue is that no one is taking my words out of context to get offended. No one is getting offended because I said things. They are getting offended because of their own situation, that I just happened to have brought up. If someone in the military had PTSD because someone yelled “Duck!” and then a grenade blew up right near them, so now they have panic attacks anytime they hear someone loudly say duck. That isn’t them “taking the word duck out of context” that is “the word duck affects their brain differently.” No one is saying that using the word master makes you a mean malicious person. No one is accusing you of being on the attack trying to hurt people when you use a word without realizing how it impacts others. If a military vet was like “hey I have severe anxiety when someone says duck, can we say ‘leave early’ instead of ‘duck out early’”. I would be like “oh shit, i didnt realize. my bad, yeah, of course” not “YOURE TAKING MY WORDS OUT OF CONTEXT I HAVE THE RIGHT TO USE THOSE WORDS”. If you know the word hurts others and then you double down and insist on using it, then yeah, you’re on the attack because clearly you don’t care that you are hurting people.

    It’s pretty easy to tell a good faith argument most of the time. You don’t need to just blindly accept the opinion of all people. “Hey this word is heavily associated with slavery and makes people think of slavery” is pretty striaghtforward. Thats not a purely bad faith argument.

    I don’t know all who you think is “insisting” on the “master/main” change. Everyone I’ve talked to has been like “yeah, if we could that’s cool.” or likened it to more of a “its like if someone reminded you daily of that time you accidentally called the teacher ‘mom’ … having it go away would be nice, but if it doesn’t oh well.” No one is crying over it or making demands. The only “insisting” is just people questioning why the slight suggestion results in so much pushback.

    It seems like your only reason to not change is “because someone asked me to and I’m too stubborn and reject any decision that wasn’t my own.” At least “changing a branch name on the worlds largest repo has consequences” is a valid reason. But “I refuse to listen to others”… cmon.


  • I don’t know the history of who started the master/main debate. if it was a bunch of white people trying to show how progressive they were while black programmers were like “yeah, we don’t care”, then it’s virtue signaling. If it was the black programmers being like “this phrase feels weird to us… can we change it?” … then it’s not virtue signalling, it’s listening to underrepresented voices. I legitimately don’t know which scenario it is. I’m also not in a position where the word bothers me at all, but I also have an easy life, and if someone tells me a word used in a certain way feels weird and I can resolve that with 0 effort (ie, switch new projects to main), I will.

    And of course about the retroactive changing, which is why I said I wouldn’t expect linux to change.


  • Thats not the only definition though. It’s clearly the intended one, but it’s possible to make someone think of other definitions when a word pops up.

    And it’s not too hard to go “Oh, I get why alternate definitions might make people uncomfortable, even if I have no issue with it.” And if you can see why someone might be uncomfortable in a situation, and it’s zero effort to avoid that situation… why not?

    Unless you’re intentionally trying to not understand, or lack empathy and genuinely can’t understand why words with alternate definitions heavily linked to slavery might make people uncomfortable, it feels pretty self explanatory.

    I’ll give Linus a pass, because linux kernel is probably the most widely accessed repo out there, and changing defaults and standards can have an actual impact on third party tooling.