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.

CookieJarObserver , in Imagine
@CookieJarObserver@sh.itjust.works avatar

I would build my own hardware if necessary.

alphacyberranger ,
@alphacyberranger@lemmy.world avatar

FOSH

Hexagon , in Imagine

Stop! Don’t give them ideas!

yokonzo , in Every Single Freaking Time

I literally just learned about Ctrl+c last week, I’ve been using terminal casually since I was 10, and always thought it was dumb that when a script was stuck hanging that I had to close the command window and redo my steps. I always thought it was weird that you had to right click to copy something and never thought why that might be the case, I have no excuses.

Knusper , in Which side are you? Javascript or Typescript

I’m choosing the third side: WebAssembly

QuazarOmega ,

Blazingly fast 🦀🦀🦀

marcos ,

Incredibly powerful type system λλλ

And the best part, those two interop better than in native code.

QuazarOmega ,

those two interop better than in native code

Really? Why is that?

marcos ,

The wasm ABI allows for a bit more flexibility than the C one.

I’m not sure how much impact it has on practice (probably very little, otherwise somebody would have fixed it), but in native code there’s a lot of potential for mismatching behaviors from the two different runtimes.

QuazarOmega ,

Oh I had no idea, thanks for explaining!

Static_Rocket ,
@Static_Rocket@lemmy.world avatar

Have they finally dumped the required js stub loader?

Knusper ,

No, but GUI frameworks can generate it for you. Same goes for DOM access, for which there’s normally only a JavaScript API.

So, you’ll likely want to read JS, when researching what events or properties you can read/write for certain HTML nodes in the DOM, but with a mature GUI framework, you should not need to write any JS.

redcalcium ,

You can even compile Fortran code to wasm and run it on a web browser. Who need Javascript’s puny 64bit floating point precision when you can have Fortran’s superior 128bit floating point precision?

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.

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.

asyncrosaurus , in Some people just wake up and choose violence

I continue to be baffled and amused by the complete meltdown of the typescript community over the actions of a single man on a single package. The only people who have legitimate gripes are those that had been actively contributing and whose work was erased. The rest of you are acting absurdly childish. The anger and vitriol being thrown at anyone who disagrees on how to write javascript would make me embarrassed if I was associated or involved in the ts community.

amzd ,

They not only removed typescript without implementing an alternative breaking many projects depending on that library but they did it without informing the open source community which means many people who invested their time in making PRs (there was 60+ open PRs) have to basically completely redo their work.

learningduck , (edited )

Which project is this? So, the project owner did this?

Ah, it’s Turbo

riskable ,
@riskable@programming.dev avatar

To be fair, how could you not believe that he was gonna go Turbo?

asyncrosaurus ,

Yes, and the people directly contributing to the project have legitimate gripes. Although, the parable of dhh is if you get on an asshole scorpions back, don’t be surprised if you get stung. Dudes been an unreasonable prick for nearly 20 years now.

My comments directed at the manufactured outrage from the tooling zealots incapable of having a mature conversation. Or even accept a difference of opinion. The number of comments that start with, "never heard of Turbo, but let me weigh in on why you’re an idiot for not liking Typescript. " is very telling…

Zeth0s ,

Ootl, what’s going on? I haven’t read anything

Grappling7155 ,
forksandspoons ,

Start here github.com/hotwired/turbo/pull/972 and then github.com/hotwired/turbo/pull/973

Tldr someone moved a popular repo from typescript to JavaScript, the negative response was quite overwhelming.

Zeth0s ,

Cheers

Black616Angel ,

The speed of a single-page web application without having to write any JavaScript

Ahahahahahahaha! 😂

dukk ,

The fact is that I actually rather like JavaScript. I’d go so far as to say it’s my second favorite language after Ruby. Yes, a distant second, but a second none the less. This wasn’t always the case. But after we got proper classes in JavaScript, and all the other improvements that flowed since ES6, it’s become a real joy to write.

Is it just me or is the tone here unnecessarily aggressive?

(Read the PR to understand)

MashedTech ,

Maybe DHH influential and many will follow in his footsteps

jdeath ,

deleted_by_author

  • Loading...
  • avonarret1 ,

    Yeah, hopefully. Because walking around in a foreign country without any kind of navigation is a pure joy.

    Overlock ,
    @Overlock@sopuli.xyz avatar

    Sorry, I’m out of the loop. Can you ELI5 what happened/what even is going on with TS?

    KillAllPoorPeople ,
    PipedLinkBot ,

    Here is an alternative Piped link(s):

    piped.video/watch?v=5ChkQKUzDCs

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

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

    Phen ,

    Nothing is actually going on with typescript. This guy who’s a big name in programming for creating a lot of good things and having a lot of shitty opinions just removed typescript from one of their projects and some folks are desperate to make that be a big news.

    They removed typescript because they saw no benefit in using it. Then a lot of folks who can’t deal with typescript got excited because “hey someone is trashing that thing I hate”.

    TheHolyT , in Some people just wake up and choose violence

    Ts is shit, just use js they even want to add types to vanilla js

    sveske_juice ,

    There is a reason types exists…

    JakenVeina ,

    So, they want to incorporate TypeScript into vanilla JS?

    FooBarrington ,

    No. They want to add syntax which allows browsers to parse typed code, but it would just be ignored - the type checking would still have to be done by e.g. Typescript.

    sebi , in Console Logs : Hello from the other side
    @sebi@lemmy.world avatar

    This is a professional debug techique, what are you talking about? But I rather use ‘Hii’ with various (but not ascending) amounts of i’s.

    andrew ,
    @andrew@lemmy.stuart.fun avatar

    Sometimes I use various swears. Depends on how long I’ve had to debug. Also depends on whose work I’m debugging and whether they’re in earshot. Usually it’s just my own sketchy code though.

    alphacyberranger OP ,
    @alphacyberranger@lemmy.world avatar

    Been there, done that

    dbilitated ,
    @dbilitated@aussie.zone avatar

    I’ve used a regex to add a console log to the top of every method with the method name before.

    the things you do when you’re desperate.

    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.

    pastelmind , in Console Logs : Hello from the other side

    console.count()

    elxeno , in Console Logs : Hello from the other side
    
    <span style="color:#323232;">var num =0
    </span><span style="color:#323232;">...
    </span><span style="color:#323232;">console.log("Here " + num++)
    </span><span style="color:#323232;">...
    </span><span style="color:#323232;">console.log("Here " + num++)
    </span>
    
    ipha , in The lengths we have to go to

    Better than counting curly braces.

    cerement ,
    @cerement@slrpnk.net avatar

    parentheses

    30p87 ,

    Even vim can show you that
    ^(fucking nano user)

    UndefinedIsNotAFunction ,

    There’s a joke here about using echo “some python code” > main.py in here somewhere but I can’t find it. Imagine I did instead.

    thanevim ,

    Import python.Joke.ShellProgramming()

    grozzle ,

    “the punchline is clearly trivial, the set-up is left as an exercise for the reader”

    Overshoot2648 ,

    Obligatory mirco is better.

    30p87 ,

    Is mirco a little man sitting on your SSD flipping bits manually as you dictate him?

    lud ,

    No that’s macro. Micro is when small gnomes sit inside your HDD and moving the read/write head around manually.

    shotgun_crab ,

    Why not both

    EvokerKing ,

    Because Python uses indentation instead of curly brackets, which is why this meme exists. Also jetbrains ide s like pycharm and webstorm do all of this for you.

    mexicancartel ,

    Even the mosy basic text editors does indentation for you, not even an IDE needed

    EvokerKing ,

    Not as good as jetbrains does, it automatically does things like realign when you paste things and lots of little things that improve the coding experience by a lot.

    mexicancartel ,

    Okay cool!

    sentient_loom ,
    @sentient_loom@sh.itjust.works avatar

    I’ll take the curly braces

    TheGreenGolem ,

    Me too, any day. I hate everything where indentation matters. Let me just throw my garbage there and YOU sort it out, you are the fucking computer, not me. You do the work.

    So fuck you, YAML! All my homies love JSON!

    KIM_JONG ,

    All your homies hate comments.

    nilloc ,

    Yeah Yaml is nicer than json, but I’m not into the Python indenting at all.

    TheGreenGolem ,

    My code also documents itself, of course.

    JonEFive ,

    I’m here to spread the good word about JSONC. It is the way and everyone should adopt it in place of JSON wherever possible.

    wols ,

    Yup.

    Spaces? Tabs? Don’t care, works regardless.
    Copied some code from somewhere else? No problem, 9/10 times it just works. Bonus: a smart IDE will let you quick-format the entire code to whatever style you configured at the click of a button even if it was a complete mess to begin with, as long as all the curly braces are correct.

    Also, in any decent IDE you will very rarely need to actually count curly braces, it finds the pair for you, and even lets you easily navigate between them.

    The inconsistent way that whitespace is handled across applications makes interacting with code outside your own code files incredibly finicky when your language cares so much about the layout.

    There’s an argument to be made for the simplicity of python-style indentation and for its aesthetic merits, but IMO that’s outweighed by the practical inconvenience it brings.

    merc ,

    But, nobody ever copies code from Stack Overflow!

    kameecoding ,

    if you have to count the curly braces I understand why you are a python developer

    vosjedev ,

    yep.

    Knusper ,

    You don’t usually count them. They just have to form a neat diagonal.

    Reptorian ,

    Also, highlighted the way you expect when you click next to braces works too.

    fidodo ,

    Have you tried using an auto formatter? Let’s you write code however and fixes the structure automatically on save. It’s way easier for me to write curly braces then hit ctrl+s than have to select multiple lines manually and tab in and out. I feel the biggest gains I’ve made in productivity came after I learned to embrace tooling.

    deaf_fish , in Linux Best Practices

    Don’t run this command unless you want to delete all the files on your system and break Linux on your system.

    dept ,

    is linux that dependant on French? wow

    Ozzy ,

    Did you know? Linus Torvolds is actually the consort child of two french people! That’s why you have to use the french flag when removing folders, it’s an ode to his upbringing

    Morphit ,
    @Morphit@feddit.uk avatar

    Stallman is fuming rn

    can ,

    Oui

    Zuberi ,

    Lmfao 🤣🤣

    supercriticalcheese ,

    Oui

    CurlyChopz ,

    It’s actually called “Le Nux” but it had to be changed so it wasn’t too controversial for the rest of the world

    astarob ,

    Dependency hell

    senkora ,

    So what you’re saying is, it is true that I will no longer have French installed.

    MetalJewSolid ,

    A risk worth taking

    MrSnowy ,

    Find that out the hard way?

    Do you just hate the french that much? Because I do.

    whatisallthis ,

    What a kind soul

    astarob , in Order

    Don’t know about gz but zip files can be encrypted using passwords

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