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.

Trikami , in He revealed the secrets !

wait, you guys don’t use ones and zeroes?

vk6flab ,
@vk6flab@lemmy.radio avatar

No, that’s several abstraction layers down … there’s libraries for that.

Sonotsugipaa ,
@Sonotsugipaa@lemmy.dbzer0.com avatar

No, just base-256 numbers that for some reason people call “binary”

DrM , in We'll refactor this next year anyways

The only thing that has the chance to prevent unmaintainable garbage code is a plethora of linting rules.

Lifter ,

That may lead to over-refactoring, leading to unmaintainable garbage code.

DrM ,

yeah thats why I said it only has the chance, not that it leads to good code

Voroxpete , in My wife was unimpressed by Vim

Deep down, every Vim user just wants one person to tell them that the countless hours they spent leaning to use it weren’t a total waste of time.

sik0fewl , in My wife was unimpressed by Vim

You might’ve moved around too quickly. Stick to motion in the home row to start - hjkl. There are several ways to enter insert mode but DO NOT attempt it before she’s familiar with the basic motions.

UnRelatedBurner , in Should it just be called JASM?

Do we have 3 assemblies now?

anton , (edited )

Actual assembly in mainstream use:
x86
arm
risc v

mainstream byte code:
jvm
.net (I think)
wasm

fake assembly people may write:
llvm
wasm

wat (web assembly text) is actually written is S-expressions, like lisp but without code as data.

Edit: formatting

starman ,
@starman@programming.dev avatar

.NET thing is called IL

secana ,

The runtime is even called “common language runtime” (clr), as it is intended to support many different languages, which the jvm never was.

starman ,
@starman@programming.dev avatar

Languages like F# or (God forbid) VB.NET

onlinepersona OP ,

How many do you want?

UnRelatedBurner ,

One. To rule them all.

YerbaYerba ,
starman ,
@starman@programming.dev avatar

You forgot CC :)

ZILtoid1991 ,

I’m making my own, because all mainstream options are bloated for my usecase…

mr_satan , in Three monitors, and i feel insulted
@mr_satan@monyet.cc avatar

Monitors – hell yes! RGB – can’t stand it. My keyborad has a plain white backlight and that’s it. It’s purely functional.

Mesa ,
@Mesa@programming.dev avatar

Could one argue that your conscious choice to not pick an RGB backlit keyboard is in part because of your aversion to it, therefore making it somewhat of an aesthe-

RGB == FPS bro

arc , in Daylight saving creator left the chat....

I once developed an electronic program guide for a cable TV company in New Zealand and I’d lose my mind if I had to use timezones. The basic rule of thumb was:

a) Internally you use UTC religiously. UTC is the same everywhere on Earth, time always goes forward, most languages have classes that represent instants, durations etc. In addition you make damned sure your server time is correct and UTC.

b) You only deal with timezones when presenting something to a user or taking input from a user

Prior to that I had worked for a US trading company that set all their servers to EST and was receiving trades through the system which expressed time & date ambiguously. Just had to assume everywhere that EST was the default but it was just dumb programming and I bet to this day every piece of code they develop has time bugs.

letsgo ,

Standardising on EST is fine; it’s just UTC plus a constant. If they flipped between EST and EDT, now that’d be insane.

arc ,

Yes as long as the rules are known, but it’s really just better to do things sanely and leave no margin of doubt.

loutr ,
@loutr@sh.itjust.works avatar

Yep, case in point flipping between EST and EDT may be “insane” but that’s the default for systemd-timesyncd. So now you have to be 100% certain that it’s disabled on your servers, and on the remote hosts interacting with them.

BeardedGingerWonder ,

Best I’ve seen is a process scheduled on UK local time (including hour changes) running on a server that maintains Eastern local (including hour changes) but the process logs in EST ( and does not move with the hour)

uis ,

time always goes forward

It not always goes and not always forward. I think you need metric time(TAI) instread.

arc , (edited )

UTC always goes forward regardless of the timezone and local time. That is why you should use it. To take my EPG situation above, I stored program start / end times in UTC so they would render properly even if DST kicked in or not during the middle of the program.

uis ,

Ok, this is more unix time quirk that can’t handle 24:00:00 and skipping 23:59:59.

UTC always goes forward regardless of the timezone and local time

But not unix time.

I stored program start / end times in UTC

If your program finishes in less than one seond it might report negative time.

arc ,

I didn’t say Unix time, I said UTC. And no it won’t report negative time, not unless somehow the system clock was modified while it was running…

uis , (edited )

not unless somehow the system clock was modified while it was running…

Which is how most systems handle leap seconds.

arc ,

Leap seconds still make time go forwards, not backwards. NTP clients would also resolve small time discrepancies while still advancing forwards prior to the next time sync.

uis ,

Leap seconds can make time go both ways, but adding them makes time stop/go back because 24:00:00 cannot be represented as 1/86400 part of day N instead of day N+1 on major OSes. And they were only added so far.

arc , (edited )

It doesn’t work like that. UTC goes forward always. Leap seconds are scheduled and known in advance. NTP time services will just smear time advancement a little to account for an additional second. Time never has to go backwards. This is how Google does it.

uis ,

This is how Google does it in their datacenters, but not major OSes by default

dwemthy , in Three monitors, and i feel insulted

I don’t know how to make my RAM be not a rainbow and I’m too lazy to look it up

Evrala ,

I got a bunch of rgb in order to set it all to purple on my desktop. But then I started using Linux full time on it so I lost the windows rgb software, and was too lazy to fix it. So it went from looking amazing to this ugly clashing thing for the last 3 years I used the system as each part eventually reverted to its demo mode.

russjr08 ,

OpenRGB might be able to help you change the colors if that’s something you’re interested in fixing nowadays.

Evrala ,

I don’t use the system anymore but at the time the parts I had weren’t supported.

russjr08 ,

Ah, well I hope your new system is more to your liking then!

Mesa ,
@Mesa@programming.dev avatar

True Neutral

Haus , in Programming languages personified - leftoversalad
@Haus@kbin.social avatar

My experience in going from C to C++ was different: if you're not converting everything from mallocs with custom addressing systems to the collections framework, you're not living.

Jajcus ,

My experience with C++ was when C++ was a relatively new thing. Practically the only notable feature provided by the standard library, was that unholy abuse of bit shift operators for I/O. No standard collections or any other data types.

And every compiler would consider something else a valid C++ code or interpret the same code differently.

I am little bit prejudiced since then… and that is probably where the author is coming from too.

Then things were just getting more complicated (templates and other new syntax quirks), to fill the holes in attempts to make C a 'high level language'.

AMDIsOurLord ,

C++ from 11 onwards started to really shine and since C++17 it’s got some good shit inside

Adanisi ,
@Adanisi@lemmy.zip avatar

Yeah wtf is up with the overridden bitshifts? Was Stroustroup drunk?

xmunk ,

It’s a syntax sugaring and it reads pretty well in my eyes - it’s really obvious what is meant by that syntax.

Omega_Haxors , (edited ) in Functional bros be like

Why even use variables in the first place? Just place the values directly into your code. If you need to change a value, that’s just bad planning. Hell, why even use values either? Just run a loop on the INC instruction until you get the value you need. It’s just efficient programming.

supercritical , in Google cosplay is not business-critical
@supercritical@lemmy.world avatar

There’s someone at my work who really needs to see this…

autokludge , in Songs about Vim
@autokludge@programming.dev avatar

Why do you want to exit? Just :terminal

chraebsli OP ,
@chraebsli@programming.dev avatar

RIP to people who never shutdown or restart their PCs

Simon , in As someone not in tech, I have no idea how to refer to my tech friends' jobs

Space wizard will do thanks

Amaltheamannen , in The simplest mistakes happen to the best of us

What am I looking at?

malloc , (edited )

Whoever committed this change thinks updating the text on the UI for this system will automagically fix issue.

It’s like editing the HTML on your bank’s website to show you have $1B in the bank 😂

Issue here committer forgot to update UI to expose the feature person was working on

victorz ,

I’m not convinced that’s it, but I don’t know enough to explain why.

Amaltheamannen ,

Yeah without more context it just seemed they were renaming the setting as part of a larger diff

Aatube OP ,

It says "1 changed file..." at the top

Aatube OP ,

No, the settings already existed, they just forgot to expose it

malloc ,

That makes sense now. Thanks for extra context.

Aatube OP ,

(Here's some more context: The button is in the UI, but it exposed a completely different function than advertised, probably due to being generated from copy-and-pasting the previous button)

MimicJar , in As someone not in tech, I have no idea how to refer to my tech friends' jobs

A, A, A, A

(Hand clapping)

A, A, A, A

(Hand clapping intensifies)

A, A, A, A, A, A

(Techno beat drops)

lemmesay ,
@lemmesay@discuss.tchncs.de avatar

to those wondering: youtu.be/XxbJw8PrIkc

MimicJar ,

Specifically youtu.be/KMU0tzLwhbE

Anticorp ,

So… Developers?

Anticorp ,

So… much… cocaine

Why TF is he so covered in sweat? Was this filmed in Florida in July?

lemmesay ,
@lemmesay@discuss.tchncs.de avatar

some people naturally sweat a lot.

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