There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

WolfhoundRO , in Which side are you? Javascript or Typescript

I’m still using CommonJS and occasionally ESM, but I always get to integrate JSDoc for weak typing in IntelliSense. It’s like getting the (almost) juiciest part from Typescript without committing to it

dreadedsemi , in OC: Me since Bun 1.0.0

Oh no. Another thing to learn.

DARbarian ,
@DARbarian@artemis.camp avatar

God my thoughts exactly. Probably super cool, but still I just can't keep up

choroalp ,

Compatible with node

starman OP , (edited )
@starman@programming.dev avatar

It’s almost 100% compatible with node but faster. A lot faster. So no need to learn anything but few cli commands. For example bun run dev instead of npm run dev.

Edit: website

mvirts ,

Alias npm bun level compatibility?

NotSteve_ ,

Bun is designed as a drop-in replacement for Node.js

It does seem so!

ExtraMedicated ,

This is the first I’ve heard of this. Might be worth checking out.

beeb ,

I’m trying to get my work to switch to bun but we have packages in a private AWS codeartifact repo. Does it support this? I tried to use it with our npmrc file but it couldn’t install those packages.

beeb ,

This answers my question bun.sh/docs/install/registries

Solemarc ,

you probably don’t need to learn it, Deno was a massive upgrade over Node and it didn’t matter, not convinced this will be any different.

nonearther ,

IMO, deno’s approach was bad as it was reinventing the wheel, so one had to relearn. And then they brought package.json which they said they wouldn’t. This again got people to unlearn and relearn things.

Bun, on the other hand, acts like what Typescript is to Javascript. It’s just feels like superset of Node, instead of completely different tool.

I expect Bun will get more success than Deno.

snowe ,
@snowe@programming.dev avatar

Makes sense. Deno was created by the same person that created node. They’re both going to be terrible, especially when they ignore everything ever discovered in software engineering about writing good code, good frameworks, good languages, etc.

sip ,

deno was also created by one of the guys who created node.

snowe ,
@snowe@programming.dev avatar

huh? that’s what I said.

sip ,

sorry, brainfart. I read “bun is created as the same who created node” 🤦🏻‍♂️

snowe ,
@snowe@programming.dev avatar

gotcha. I don’t think bun is created by the same person that created node. deno is, and has just as bad a design as node as a result. it honestly baffling that people trust someone to write a language who failed so badly to write a language that they set back the entire world for decades to come.

sip ,

idk I think people can learn from their mistakes and evolve. especially if they accept collaboration and RFCs.

I haven’t worked much with deno, so I can’t tell. But I earn my living with Node and it’s ok. I still hate js more than node itself.

sip ,

idk I think people can learn from their mistakes and evolve. especially if they accept collaboration and RFCs.

I haven’t worked much with deno, so I can’t tell. But I earn my living with Node and it’s ok. I dislike js way more than node itself.

I guess all the hate is around module resolution and package management.

SmoothSurfer ,

This will be last 🥲

chickenf622 , in OC: Me since Bun 1.0.0

I’m looking at it with optimism for a new build tool. I just need Sass/CSS compilation and I’ll give it a whirl.

starman OP ,
@starman@programming.dev avatar

It’s on the roadmap

fosforus , in OC: Me since Bun 1.0.0

This will generate lots of fun moments when developers use Bun and the runtime environment is stuck at Node for some reason. For instance, because of AWS Lambda.

rikudou ,

I’m pretty sure someone will make a custom layer.

BlackEco ,
@BlackEco@lemmy.blackeco.com avatar

Can’t you deploy Docker images to Lambda now? Granted, startup times will probably be slower than native Node.

rmi , in Every Single Freaking Time

I bought a Mac to solve this problem lol

4anon ,

Average itoddler

beeng ,

Should have used middle mouse button instead

jungle ,

Yeah, I was looking at this wondering why anyone would stop a program just to copy a line, and then I remembered that not everyone uses a Mac.

Vilian ,

you can literally change the shortcut

Doug ,

That sounds a lot like

My rear passenger tire was about 3psi low so I bought a new Grand Cherokee

EqMinMax ,
@EqMinMax@lemmy.world avatar

Modern problems require costly solutions.

confusedbytheBasics , in Every Single Freaking Time

Select text to copy. Middle click to paste.

Don’t use Ctrl…

jmcs ,

deleted_by_author

  • Loading...
  • BakedGoods ,

    Don’t they ever test shit?

    NotSteve_ ,

    It’s less that it’s broken and more that it hasn’t been implemented yet AFAIK.

    nintendiator ,

    Same difference.

    Jean_Mich_Much ,
    @Jean_Mich_Much@jlai.lu avatar

    I’m using sway and I still can do that with urxvt

    30p87 ,

    To be fair, I would not expect someone using a wayland WM and urxvt to use the mouse to copy-paste.

    Jean_Mich_Much ,
    @Jean_Mich_Much@jlai.lu avatar

    I understand. I’m not using sway and urxvt as someone more skilled would do. I’ve Made this config some years ago to try but nowadays I’m not doing computer things anymore but I’ve kept this config because it’s light, fast and it’s simply working. So basically, today I’m just copying my passwords from pass in urxvt to my webmail in Firefox with my mouse for checking mail …

    Vilian ,

    what?, no

    Bazz ,

    I’m sorry but… it works on my machine

    Trobador ,

    I never realized that was why people used the primaey clipboard on Linux…

    But I’ll be frank : fuck that. I’d rather disable it entirely and stop having to deal with random text pasting in bad places when I’m using the touchpad

    confusedbytheBasics ,

    What wonky touchpad makes that a problem?

    You could use shift -insert instead I suppose.

    Haus , in Console Logs : Hello from the other side
    @Haus@kbin.social avatar

    Bad variable names and then awful "temporary" log lines... I feel attacked this morning. ;)

    Button777777 ,

    It blows my mind how often i see people using temp logs for debugging when breakpoints exist

    deegeese ,

    When the issue is only seen after hours of runtime, logging is more practical.

    Chreutz ,

    I recently had an issue that happens on one out of between ten thousand and a hundred thousand interactions between two embedded processors. Thank god for logging!

    o11c ,

    Even logging can sometimes be enough to hide the heisgenbug.

    Logging to a file descriptor can sometimes be avoided by logging to memory (which for crash-safety includes the possibility of an mmap’ed file, since the kernel will just take care of them as long as the whole system doesn’t go down). But logging from every thread to a single section of memory can also be problematic (even without mutexes, atomics can be expensive and certainly have side-effects) - sometimes you need a separate per-thread log, and combine in the log-reader tool.

    marcos ,

    Well, conditional breakpoints exist.

    But use whatever is easiest. People trying to micromanage how others use computers are the worst. And on the most popular languages by job count, your debuggers isn’t all that more powerful than a well-constructed log anyway. (Hell, the people insisting that others adopt better tools should start with the language.)

    Omgpwnies ,

    Or when the overhead of the debugger causes the issue to never happen

    XTornado ,

    Idk… I had problems in the past with weird bugs where the breakpoints do not match the right line although using sourcemaps and all that so sometimes you end up doing stuff like this. Or if you want to know how many times something executes without well having to “continue” on each breakpoint or similar.

    Ediacarium , in Needs consent

    sudo apt-get install consent

    oo1 ,

    -y

    Norgur ,

    User not in sudoers list. This incident will be reported

    aeternum ,

    to whom?? TO WHOM!?

    Kidplayer_666 ,

    The answer is: Santa

    Norgur ,

    And he is not pleased.

    Crakila ,
    @Crakila@kbin.social avatar
    Ediacarium ,
    Untitled_Pribor ,
    su
    apt install consent
    exit
    touch women
    
    
    Norgur ,
    su  
    
    Enter password:
    
    
    Deceptichum ,
    @Deceptichum@kbin.social avatar

    hunter2

    aeternum ,

    i can't read that. it just appears as stars to me. what's it say?

    Norgur ,

    Stars? I see absolutely nothing there. Linux login prompts are quirky.

    snooggums ,
    @snooggums@kbin.social avatar

    All I see is *******

    MonkderZweite ,

    The superior version of UAC?

    “Do you want $USER to touch you?” Do you want $USER to cat you?" " Do you…"

    trones ,

    Reading package lists… Done

    Building dependency tree… Done

    E: Unable to locate package conset

    spez , in Every Single Freaking Time

    Kitty has the feature that if you have text selected it will copy and if not then it will interrupt the command

    lappy ,

    Yeah I love this feature. I love it so much that I’ll also tell everyone who cares to listen how you can use it. Edit your ~/.config/kitty/kitty.conf file to include map ctrl+c copy_and_clear_or_interrupt and you are good to go. Only issue I have that it doesn’t seem to work in the vscode terminal.

    spez ,

    Any keybinds I have set don’t work in vscodium terminal for me too. I mainly use neovim for those things.

    4am ,

    Oh what a great way to further entrench a bad habbit! Hang on I need to remedy some refactored code with rm -rf * which Kitty made safe if I’m in a directory with my project files 🙄

    Sgarcnl , in Some people just wake up and choose violence

    Repo?

    annoyed_onion ,
    @annoyed_onion@lemmy.world avatar
    PipedLinkBot ,

    Here is an alternative Piped link(s): piped.video/Bv3YhGku92w?si=uuyb8Cyfn06BLX6o

    Piped is a privacy-respecting open-source alternative frontend to YouTube.

    I’m open-source, check me out at GitHub.

    Rooki ,
    @Rooki@lemmy.world avatar

    I still dont get it why they remove ts??? its dumb in many ways.

    annoyed_onion ,
    @annoyed_onion@lemmy.world avatar

    Is strange… In the video I linked, he said it apparently broke some repos. He also said that they could have at the very least added in jsdoc comments to keep types without requiring extra tooling.

    Rooki ,
    @Rooki@lemmy.world avatar

    ok.

    UlrikHD ,
    @UlrikHD@programming.dev avatar

    Got a few minutes into the context video before I head to close it. Do people actually enjoy YouTubers presenting stuff in this manner?

    PizzaDeposit ,

    Yes I do.

    annoyed_onion ,
    @annoyed_onion@lemmy.world avatar

    Found him when learning vim and watched a few of his twitch streams. Quite enjoy his takes on things. Not the biggest fan of this new reaction content but do occasionally watch ones related to the tech I use for the day job

    MashedTech ,

    Yeah, sometimes it’s too over the top. But he has some thoughts that are kind of refreshing to hear in this Twitter driven development world.

    dingleberry ,

    Do we now have “influencer programmers” now? 🤣

    tuna_casserole ,

    Huh… now that you mention it, I guess that’s what people like Bob Martin and mpj (along many others of course) might classify as. Would any guru fall under this category?

    annoyed_onion ,
    @annoyed_onion@lemmy.world avatar

    We always have had em, they’re just on YouTube now too 😂

    baltakatei ,

    What’s with that si parameter?

    annoyed_onion ,
    @annoyed_onion@lemmy.world avatar

    Not sure, I copied the link from the share button on the mobile app

    JackbyDev ,

    I think it is share ID. I’ve noticed YouTube started putting them in links made with the share button.

    metarmask , in Every Single Freaking Time

    I’ve changed this on all my terminals and I’m not ashamed of it.

    AGuyAcrossTheInternet ,

    True strength is bending the machine to appease your habits, not to bend your habits to appease the machine.

    Storyteller ,

    No. The flesh is weak. The machine is immortal.

    Flesh is fallible but ritual honours the machine spirit.

    All hail the Omnissiah.

    cryomancer20x6 ,

    Yes! You know what it is, don’t you boy? Shall I tell you? It’s the least I can do. Steel isn’t strong, boy, flesh is stronger! Look around you. There, on the rocks; a beautiful girl. Come to me, my child.

    i.gifer.com/PzVN.gif

    Rin , in Needs consent

    go home, then touch women

    hikarulsi ,
    @hikarulsi@lemmy.world avatar

    cd ~; touch woman

    Can’t touch woman anywhere

    Johanno , in Every Single Freaking Time

    Use ctrl +shift +c to copy in terminal

    Lmaydev ,

    Just have to be different don’t they.

    kaba0 ,

    Or change copy to command+c… I’m gonna be honest, OSX is right here. And quite strangely it is very hard to customize your linux to imitate that.

    kaba0 ,

    Or change copy to command+c… I’m gonna be honest, OSX is right here. And quite strangely it is very hard to customize your linux to imitate that.

    errer ,

    Use ctrl +shift +c to copy in terminal

    Ah yes the classic dangerous command made safe by a modifier key. Put the gun to your head and pull the trigger, just make sure you’re holding down the shift key and it’s all good!

    Jakeroxs ,

    It’s all good bro the shafty is on

    Mr_Dr_Oink ,

    This is how my secure crt is set up when im accessing switches. If i use ctrl+c it cancels what im doing and drops back to priv mode and its so frustrating.

    TheWoozy ,

    Or just left click to highlight & middle click to paste.

    Albbi ,

    Ctrl+insert to copy and shift+insert also works! It was the DOS way of doing it.

    SuperIce ,

    Or just highlight the text and use middle click to paste

    Swiggles , in Every Single Freaking Time

    Ctrl/Shift+Insert gang rise!

    darcy , in Every Single Freaking Time
    @darcy@sh.itjust.works avatar

    press enter and then immediately CTRL+C to stop, then anytime u need u can press UP to go back to where you were

    elbarto777 ,

    You missed the point of the meme…

    darcy ,
    @darcy@sh.itjust.works avatar

    no i was trying to show my method for avoiding that. i get the joke but i was also trying to be actually helpful

    wols ,

    I can’t for the life of me figure out how your proposed method helps in the described scenario.

    Maybe I misunderstood it, can you elaborate?

    elbarto777 ,

    With your method, as soon as you hit control+C, the program is terminated.

    Or what are you doing to avoid the program being terminated?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines