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.

savvywolf , in How it feels to learn JS in ~~2016~~ 2023
@savvywolf@pawb.social avatar

I stepped out of webdev like 5 years ago. Now every time I try to get back into things to work on an open source project or whatever I just give up because I do not understand things.

Everything seems to be based on React which is some kind of magic templating library that does everything? And also dynamically updates thing in response to changes and talks to the server?

I much prefer the days of just using vanilla js to manipulate a DOM and talk to a well defined API.

gornius ,

The thing is, they look like too much for a simple app with near none interactive elements.

But once app starts growing, concepts like reusable components, reactivity and state management become such an important tool.

Imagine tracking shopping cart’s total value. With these frameworks it’s just one store containing total value, exposing the value as reactive state. Once the value changes, all components using directly or indirectly that value update immediately. In vanilla you would have to keep track of every instance where that value is used manually.

Additionally, if you decide keeping total value of cart in frontend is stupid (because it is), you just modify your store to provide only readonly value, and create setters that require you to pass item or item id. Then that setter would hit up backend keeping your cart’s total value, add an item, and backend would return new total, which would now be set as that store’s new total value.

These frameworks are kind of SOLID principles applied to chaotic world of user interfaces.

yacgta OP , in Experienced engineer examines comments in a legacy codebase

I have a few of these but I forget where they came from, curious if anyone here knows

Walop ,
cd_slash_rmrf , in How it feels to learn JS in ~~2016~~ 2023

Great article. there was a even a response a year later medium.com/…/how-it-feels-to-learn-javascript-in-…

snowe ,
@snowe@programming.dev avatar

That second article is hilarious. It’s trying to point out that the first article is over complicating things then doing the same thing except the author thinks it’s not complicated what they’re saying when it’s actually insane.

SubArcticTundra , in Too close to home
@SubArcticTundra@lemmy.ml avatar

Hahaha yes tfw Rust forces you to put your shit in a Rc<Cell<Option<>>>

nothacking ,

New your program deadlocks instead of crashing, peak safety.

tatterdemalion ,
@tatterdemalion@programming.dev avatar

EVERYBODY STOP. Nobody make a move or the memory dies. We have a Mexican Memory Standoff.

mygnu , in Where did the name Bison come from anyway?

What? and I am a programmer 😅

lemmyng ,
@lemmyng@lemmy.ca avatar

Compiler compiler (cc) -> yet another compiler compiler (yacc) -> bison (because yacc sounds like “yak”)

cupcakezealot , in Only 14.99$
@cupcakezealot@lemmy.blahaj.zone avatar

I’ll wait for Linux Millennium Edition to come out first

snor10 ,

I heard it is buggy, I think I’ll wait for Linux Vista to be released.

smashboy , in Cold dark place filled with sadness and despair

Hm, when I google this, I get Edgar Allen Poe’s the Raven.

ReCursing ,
@ReCursing@kbin.social avatar

Third of only five results for me

dinodroid , in Title

I wonder what would be the scenario for below languages.

  • Julia
  • Rust
  • Go
  • Brainfuck
  • Lisp
  • Cobra
  • Smalltalk
  • Ruby
TheWinged7 ,

Julia

Your program is telling me to get a girlfriend

malloc , in Le torture

Older scrum masters during the daily standup and trying to do live updates to the JIRA board

Turned 15 minute meeting into 30 minutes at times lol.

psud ,

I let my stand-in scrummy drive the TFS board this morning. In adding a PBI to the sprint he typed the iteration manually (a pretty long path name), rather than clicking the context menu and selecting “current iteration”

DiamondDemon , in Testing good

HOW

Hazzia ,

Happened to me once.

It was a 5 line bash script tool added onto existing software.

Yeah, I’m a pretty big deal 'round here…

shohamc1 , in Still can't decide

Any Jetbrains users here?

sjpwarren ,

Yes, it seems to have everything I need for Go and Python

S3verin , in Le torture

thats literally my job (web development teacher)

coloredgrayscale ,

You poor soul.

clicks scrollbar with mouse and drags it, instead of using the scroll wheel

S3verin ,

right click -> copy; right click -> paste

snakesnakewhale ,

Fool—the scroll wheel is a scalpel; the scrollbar is a broadsword. Use the right tool for the job.

ICastFist ,
@ICastFist@programming.dev avatar

Please tell me your students aren’t making pages that load >5MB of uncompressed javascript and css

S3verin ,

of course not, its >5mb of compressed javascript and css

somada2kk , in Colors, localized.

As guy who hate French language and was learning in 1999 I can confirm it was pain to read the topic of lesson and the date. I was so happy when we switched to 2000.

Obi ,
@Obi@sopuli.xyz avatar

Whole generations of French students that have no idea they escaped having to write “mille neuf cent quatre-vingt dix-neuf” over and over again, in cursive of course.

Yoz , in You know who you are

Can someone please explain me like i am 5 what is docker and containers ? How it works? Can i run anything on it ? Is it like virtualbox ?

SantaClaus ,

Think of a container like a self contained box that can be configured to contain everything a program may need to run.

You can give the box to someone else, and they can use it on their computer without any issues.

So I could build a container that contains my program that hosts cat pictures and give it to you. As long as you have docker installed you can run a command “docker run container X” and it’ll run.

Lmaydev ,

A container is a binary blob that contains everything your application needs to run. All files, dependencies, other applications etc.

Unlike a VM which abstracts the whole OS a container abstracts only your app.

It uses path manipulation and namespaces to isolate your application so it can’t access anything outside of itself.

So essentially you have one copy of an OS rather than running multiple OS’s.

It uses way less resources than a VM.

As everything is contained in the image if it works on your machine it should work the same on any. Obviously networking and things like that can break it.

YellowTraveller , in You know who you are

When I was in school I once used a IOS emulator running inside a docker container of MacOS running on a linux machine. It works surprisingly smoothly.

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