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.

whitecapstromgard , in Every Single Freaking Time

I see myself in this meme and I do not like it.

unsaid0415 , in Some people just wake up and choose violence

I recently made a small pure JS package at my company. It just fucking worked, can you believe it? No setting up compilation and CI/CD for build + release. Just put it in the repo and publish manually, and it just worked, it’s ridiculous

jmk1ng ,
@jmk1ng@programming.dev avatar

Did it work? How do you know that? A consumer of your package sends a int when your package expects a string.

What now?

jet ,

Hey man it passed the CICD. Not my problem

nulluser ,

Theoretically, they’ll test and notice that doesn’t work and fix their code before they deploy it to production.

Quill7513 ,

Where can you point to other developers evidence that the code in git matches the code you deployed? Deploying locally built packages to prod is an automatically fireable offense because its not auditable

nulluser ,

WTF are you talking about? All I’m saying is that if you write code (that in the context of this discussion passes arguments to a method you didn’t write, that may not be the type the author of the method expected someone to pass, but really, that’s completely beside the point), you should, oh, I don’t know, maybe test that it actually works, and maybe even (gasp) write some automated tests so that if anything changes that breaks the expected behavior, the team immediately knows about it and can make appropriate changes to fix it. You don’t need a strongly typed language to do any of that. You just need to do your job.

sik0fewl ,

Consumer just needs to write 4x as many unit tests to make up for lack static typing. Hopefully the library author has done the same or you probably shouldn't use that library.

marcos ,

4x as many unit tests

Well… the people fighting against TS are simply not testing things thoroughly. So they are not writing those tests.

Some times that’s even perfectly ok. But you don’t want to build things over a complex library that has this attitude.

(Except for svelte. It’s meaningless for svelte, as TS was always a really bad fit for it.)

Stumblinbear ,
@Stumblinbear@pawb.social avatar

It’s ok, just do what my company does and write no tests at all!

magic_lobster_party ,

CI/CD is useful regardless of which language you’re using. Sooner or later some customer is going to yell at you because you didn’t discover the fatal error before deploying.

jabberati ,
@jabberati@social.anoxinon.de avatar

@magic_lobster_party @alphacyberranger @unsaid0415 CI/CD won't prevent that. I wonder what it is for. Not using the CPU on my laptop for tests? And why would I want to commit before knowing the tests pass?

AstridWipenaugh ,

CICD isn’t an alternative to testing your own work locally. You should always validate your work before committing. But then once you do, the CICD pipeline runs to run the tests on the automation server and kicks off deployments to your dev environment. This shows everyone else that the change is good without everyone having to pull down your changes and validate it themselves. The CICD pipeline also provides operational readiness since a properly set up pipeline can be pointed to a new environment to recreate everything without manual setup. This is essential for timely disaster recovery.

If you’re just working on little projects by yourself, it’s usually not worth the time. But if you’re working in anything approaching enterprise grade software, CICD is a must.

Stumblinbear ,
@Stumblinbear@pawb.social avatar

He says as though he’s never had two PR merges conflict logically with each other

jabberati ,
@jabberati@social.anoxinon.de avatar

@Stumblinbear I only worked on small projects so far, that's probably why I don't understand it. But a merge commit is like any other commit and the person pushing this commit has to make sure it works.

Stumblinbear ,
@Stumblinbear@pawb.social avatar

When working in teams, merging in two pull requests with seemingly unrelated changes is common practice. If I had to rebase and re-run tests every time another PR got merged in while mine was awaiting reviews, I’d spend most of my time running tests

Ranman ,

deleted_by_author

  • Loading...
  • Pyroglyph ,
    @Pyroglyph@lemmy.world avatar

    I thought it was clear: they’re implying JS is simpler/faster to write and deploy because transpilation is necessary when using TS (unless you use a modern runtime).

    redcalcium , in Some people just wake up and choose violence

    People seems to be riled up by this, but turbo is mostly used with ruby on rails, right? I’m not familiar with ruby on rails, does it actually support some form of static typing it type hints? From the blog post, the dev (which is also the ruby on rails creator) doesn’t seem to be a fan of bolting static typing into dynamic typing language.

    umbraroze ,
    @umbraroze@kbin.social avatar

    In Ruby, the convention is usually that things are duck-typed (the actual types of your inputs don't matter as long as they implement whatever you're expecting of them, if not, we throw an exception). Type hinting could be possible, but it basically runs contrary to the idea.

    Now, Ruby on Rails developers are expecting some kind of magic conversion happening at the interfaces. For example, ActiveRecord maps the database datatypes to Ruby classes and will perform automated conversions on, say, date/time values. But from the developer perspective it doesn't generally matter how this conversion actually happens, as long as there's something between the layers to do the thing.

    tvbusy ,

    RoR is very… specific. Some love it because it comes with magic. Many hate it for the same reason.

    You either knows the magic and love it, or you hate it with a passion. You never really know when (not if) your change will break the system because it’s supposed to name in a very specific way that work by, again, magic.

    rikudou ,

    It’s also used quite a bit with Symfony framework (PHP) which is strongly typed. I use it for example at schedule.lemmings.world. A shame, really.

    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?

    Swiggles , in Every Single Freaking Time

    Ctrl/Shift+Insert gang rise!

    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

    Rin , in Needs consent

    go home, then touch women

    hikarulsi ,
    @hikarulsi@lemmy.world avatar

    cd ~; touch woman

    Can’t touch woman anywhere

    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

    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.

    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 🙄

    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

    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.

    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.

    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.

    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.

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