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.

HairHeel , in OC: Me since Bun 1.0.0
@HairHeel@programming.dev avatar

My favorite pastime is arguing about which JavaScript runtime is faster while I wait for my app to finish running O(n^n) table scans of my database.

cupcakezealot , in Needs consent
@cupcakezealot@lemmy.blahaj.zone avatar

sudo touch women

Good morning, Mr. Senator

MattTheProgrammer ,
@MattTheProgrammer@kbin.social avatar

Stop. Danny Masterson was not a senator :P

James_Ryan , in It's routine

You all use notepad to code?

GigglyBobble ,

According to my recruiter, you code on a whiteboard.

JazzAlien ,

These memes are made by first semester cs students

fidodo ,

I was taught java my first semester. I certainly hope no schools teach dynamic languages in the first semester.

alphacyberranger OP ,
@alphacyberranger@sh.itjust.works avatar

I had to edit code on terminal using nano in production.

original_ish_name ,

Use the great vim, install a linter plugin if you need one

257m ,

Why not just use vim? It’s preinstalled.

alphacyberranger OP ,
@alphacyberranger@sh.itjust.works avatar

Not inside a docker container.

257m ,

Oh.

ChickenLadyLovesLife ,

I used to write websites with Notepad. The upside is that you really had to learn HTML to do it; the downside is that it proves to the world that you’re a fucking lunatic.

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

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?

cupcakezealot , in Some people just wake up and choose violence
@cupcakezealot@lemmy.blahaj.zone avatar

is correct

Nerd02 , in Which side are you? Javascript or Typescript
@Nerd02@lemmy.basedcount.com avatar

I think there’s a positive coming from this competition, though. Apparently this infighting has re-lit the want for type annotations to be embedded in vanilla JS (ECMAScript proposal). I feel like this would be the ideal scenario: things working right out of the box without needing a compile step or additional tooling.

You can get as close as it gets to this experience by using alternative runtimes such as Deno or Bun, which have native TS support (meaning you can just execute a .ts file without having to transpile it), but of course as soon as you have to write code for a browser you are back in the middle ages.

o_d ,
@o_d@lemmygrad.ml avatar

Please this 🙏

TheCee ,
@TheCee@programming.dev avatar

That’s not a positive, though.

Depending on how it pans out, it’s either not useful enough. Who the hell doesn’t use namespaces or enums. Or - as

These constructs are not in the scope of this proposal, but could be added by separate TC39 proposals.

implies - a door opener to outsource TypeScripts problem unto other peoples and not to investing into improving WebAssembly. That’s just MS being lazy and making their problems other peoples problems.

I feel like this would be the ideal scenario: things working right out of the box without needing a compile step or additional tooling.

It’s just annotations. No proposed semantics of a type system which your browser could check on its own.

Phen ,

Who the hell doesn’t use namespaces or enums

Uhhh, typescript devs? Enums were useful once, but typescript evolved everything else around it and these days using direct values is actually far better.

And I don’t think anyone uses Namespaces other than for defining external modules.

TheCee ,
@TheCee@programming.dev avatar

My bad, I’m not deep enough into our frontend stack to realize Hjeilsberg already did what he does best - ruining enums. (I guess he is not to blame for global imports in c#, so i can not add ‘questionable import module/namespace ideas’.)

And it seems like this proposal contains type declarations (in order to compensate for their enums), among other typescript specific things. So, guess it is option B, then.

rockstarpirate ,

Yeah it’s interesting because JS is interpreted, not compiled. The proposal allows for type annotations in the syntax but no actual interpreter consequences. On the one hand that makes sense because otherwise you’re in the territory of runtime type-checking which would be a huge performance hit and would sort of defeat the purpose of static types anyway. But that means you still have to rely on your IDE or a linter for this to be useful.

fidodo ,

I don’t see any practical use case for it as is as anyone wanting to use them would want the full TS feature set anyways, but I could see it being a good step forward for more meaningful features to be added in the future.

TheCee ,
@TheCee@programming.dev avatar

but I could see it being a good step forward for more meaningful features to be added in the future.

I think you are right. And that is unfortunate.

TheWoozy , in Needs consent

This is why mandatory access control is so important.

fidodo , in Which side are you? Javascript or Typescript

To be perfectly frank, I’ve only seen the drama on social media platforms. Outside of this one library Ive hardly seen anyone trying to fight typescript in the professional community.

darcy , in Which side are you? Javascript or Typescript
@darcy@sh.itjust.works avatar

typescript is a bandaid on a severed leg

MajorHavoc ,

MyPy for Python hides in the bushes.imgflip.com/7yinbx.jpg

darcy ,
@darcy@sh.itjust.works avatar

image not found :(

Kuresov ,

Mypy is just okay. Haven’t used TS to know the dark corners there, but any type system that’s bolted on to the language is going to have dark corners in the best case.

It’s better than no type system, however. I remember when typed languages were “bad” because it “slowed you down” and “wasn’t necessary if you know what you’re doing”… how naive I was when I repeated those words so many years ago :)

JakenVeina ,

More like a tourniquet and a prosthetic. It doesn’t solve the underlying problem, but it’s the best solution we’ve come up with.

fidodo ,

I view it more like a powered exoskeleton around a blob fish. IMO static typing is way more valuable than strong typing and I’d take static typing only over strong typing any day if I can only choose one.

4am , in Every Single Freaking Time

Running a long command and didn’t ctrl-D it…

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 🙄

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

hblaub , in Which side are you? Javascript or Typescript

TypeScript of course. The compiler often times catches mistakes in variable names, API methods, whatever. So it saves time by not having to run the whole application all the time. Also the input help is much better, when the editor knows sth is a string or a number, for example.

o_d ,
@o_d@lemmygrad.ml avatar

Oh yeah. Or when it’s a union of multiple strings or an enum and you get that sweet popup of all your options. So good 🥹

fidodo ,

And being able to use more complex object types like discriminated unions without having to constantly look up what’s in them!

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