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.

Deestan , in Is this a Nut?

Excel: 12th of Nutuary 1970

sajran , in I can't believe people are still using GUMBIES when there are so many better alternatives.

Man, I’m just chilling and relaxing after a week of SE work and this resonates with me very deeply

frezik , in Full Stack Programmer Doing Frontend

Most disciplines get more specialized as they evolve. Full Stack goes against that trend, and this meme points at the problem with that. I don’t think it’s going to last.

CanadaPlus , (edited )

Overspecialisation can also suck eggs. Interdisciplinary research is trendy in science for the that reason. Even I occasionally read a paper and can see they’re missing some basic fact from another field or subfield that totally undercuts their result.

brisk , in wait what

The correct answer is, was and always has been elastic tabstops

pohart ,

Any ides have support for this? I feel like I’ve been waiting forever.

BatmanAoD ,

Essentially no. I wish so badly that this had taken off.

Edit: as noted on the website, various plug-ins that attempt support are in fact not correct.

thedevisinthedetails ,

What do you mean? There’s a ton of working plugins listed on the website for many editors.

BatmanAoD ,

Sorry, my phrasing was sloppy. Most popular IDEs and editors do not have a plug-in or setting that implements elastic tabstops correctly. In particular, there’s no implementation for vim, emacs, VSCode, eclipse, or any JetBrains IDEs. (I had forgotten that there’s one for Visual Studio and one for Notepad++.)

Euphoma ,

Looks like there’s an emacs package for elastic tab stops.

KairuByte ,
@KairuByte@lemmy.dbzer0.com avatar

Of-fucking-course there is.

dan ,
@dan@upvote.au avatar

Wow this site is hard to read, at least on mobile (haven’t tried on my PC). The line-height is too small.

fidodo ,

I’ve been hoping someone would try that!

jabjoe , in Stop using floats
@jabjoe@feddit.uk avatar

As a programmer who grew up without a FPU (Archimedes/Acorn), I have never liked float. But I thought this war had been lost a long time ago. Floats are everywhere. I’ve not done graphics for a bit, but I never saw a graphics card that took any form of fixed point. All geometry you load in is in floats. The shaders all work in floats.

Briefly ARM MCU work was non-float, but loads of those have float support now.

I mean you can tell good low level programmers because of how they feel about floats. But the battle does seam lost. There is lots of bit of technology that has taken turns I don’t like. Sometimes the market/bazaar has spoken and it’s wrong, but you still have to grudgingly go with it or everything is too difficult.

GroteStreet ,

all work in floats

We even have float16 / float8 now for low-accuracy hi-throughput work.

frezik ,

Even float4. You get +/- 0, 0.5, 1, 1.5, 2, 3, Inf, and two values for NaN.

Come to think of it, the idea of -NaN tickles me a bit. “It’s not a number, but it’s a negative not a number”.

zaphod ,

I think you got that wrong, you got +Inf, -Inf and two NaNs, but they’re both just NaN. As you wrote signed NaN makes no sense, though technically speaking they still have a sign bit.

frezik ,

Right, there’s no -NaN. There are two different values of NaN. Which is why I tried to separate that clause, but maybe it wasn’t clear enough.

AnUnusualRelic ,
@AnUnusualRelic@lemmy.world avatar

But if you throw an FPU in water, does it not sink?

It’s all lies.

calcopiritus ,

I’d have to boulder check, but I think old handheld consoles like the Gameboy or the DS use fixed-point.

jabjoe ,
@jabjoe@feddit.uk avatar

I’m pretty sure they do, but the key word there is “old”.

gandalf_der_12te ,

IMO, floats model real observations.

And since there is no precision in nature, there shouldn’t be precision in floats either.

So their odd behavior is actually entirely justified. This is why I can accept them.

jabjoe ,
@jabjoe@feddit.uk avatar

I just gave up fighting. There is no system that is going to both fast and infinitely precision.

So long ago I worked in a game middleware company. One of the most common problems was skinning in local space vs global space. We kept having customers try and have global skinning and massive worlds, then upset by geometry distortion when miles away from the origin.

swordsmanluke ,

How do y’all solve that, out of curiosity?

I’m a hobbyist game dev and when I was playing with large map generation I ended up breaking the world into a hierarchy of map sections. Tiles in a chunk were locally mapped using floats within comfortable boundaries. But when addressing portions of the map, my global coordinates included the chunk coords as an extra pair.

So an object’s location in the 2D world map might be ((122, 45), (12.522, 66.992)), where the first elements are the map chunk location and the last two are the precise “offset” coordinates within that chunk.

It wasn’t the most elegant to work with, but I was still able to generate an essentially limitless map without floating point errors poking holes in my tiling.

I’ve always been curious how that gets done in real game dev though. if you don’t mind sharing, I’d love to learn!

jabjoe ,
@jabjoe@feddit.uk avatar

That’s pretty neat. Game streaming isn’t that different. It basically loads the adjacent scene blocks ready for you to wonder in that direction. Some load in LOD (Level Of Detail) versions of the scene blocks so you can see into the distance. The further away, the lower the LOD of course. Also, you shouldn’t really keep the same origin, or you will hit the distort geometry issue. Have the origin as the centre of tha current block.

ZILtoid1991 ,

Floats make a lot of math way simpler, especially for audio, but then you run into the occasional NaN error.

jabjoe ,
@jabjoe@feddit.uk avatar

On the PS3 cell processor vector units, any NaN meant zero. Makes life easier if there is errors in the data.

LoremIpsumGenerator , in I see.... finally vim has other purpose than being text editor

How to turn off that vim wand

Kerb ,
@Kerb@discuss.tchncs.de avatar

just say you prefer nano,
it will instantly kill the vibe

Canadian_Cabinet ,

I’m a micro fan myself, but I imagine that’ll give the same results

trollercoaster , (edited )

␛⃣ :q! ⏎⃣

Zink ,

Why doesn’t this damn thing have a simple off switch like everything else?

Greybeard/greypube: “Ahhctually it is fast and simple and it’s not funny that noobs can’t rtfm. How hard is it to remember squeeze, twist, remove?”

Opafi , in Is there anything we cannot learn from the wisdom of ancient Japan?

Great, now I’ve got tea on my sweater…

This really caught me by surprise.

s12 , in Every language has its niche

Rails: “No. Don’t worry Ruby.”
Ruby: “Huh?”
Rails: *Hugs Ruby
Rails: “We’re becoming irrelevant.”

Together forever!

me_jumper , in Can someone explain why authors do this?
Zoop ,

Thank you! I had no idea what this was talking about but was curious, so this is perfect. I appreciate it!

Faresh , in FLOSS communities right now

Since we are on the topic of disliking Discord, what Matrix clients do you humans use? I tried both Element and Nheko (the latter of which isn’t electron based), and they both felt slow, clunky and unresponsive.

Kolanaki ,
@Kolanaki@yiffit.net avatar

I’ve heard this about Element from a lot of people and I have to wonder: Is that the mobile client or on an actual PC? Because I use it on my phone and it’s actually more reliable than the Discord mobile app.

Pika ,
@Pika@sh.itjust.works avatar

I gave up on matrix, was too complicated of a setup and the site was throughly unhelpful for newcomers. I eventually got it but, the permission system was somehow worse then IRC and due to the federation aspect of it you can’t modify the standard at all because then the other clients/servers can’t recieve you.

Faresh ,

Are you using any other alternative now besides IRC?

Rootiest ,
@Rootiest@lemmy.world avatar

Element, Beeper, FluffyChat, NeoChat, Cinny, Thunderbird

Crazazy ,

Thunderbird has matrix support now? 🤯

Rootiest ,
@Rootiest@lemmy.world avatar

Yup it does!

onlinepersona OP ,

I’ve actually had good experiences with Element except on mobile. Are you talking about mobile?

CC BY-NC-SA 4.0

Faresh ,

Nope. Desktop.

pkill ,

electron bloat

tengkuizdihar ,
@tengkuizdihar@programming.dev avatar

did you just license your own comment?

pkill ,

Fluffychat or Gomuks

Faresh ,

I think I will try Gomuks, since I now also tried Fluffychat, but scrolling felt weird and on a touchpad had the tendency to swipe left on messages to reply instead of scrolling down and I was unable to resize or close the channel info and channel list, or change its font size (there also appears to be no settings button). Maybe the CLI based clients will be more suited for me, since I also don’t mind using irssi for IRC (but it should be noted I also have no problems with graphical IRC clients like hexchat or others, which work perfectly fine on my machine).

pkill ,

it had some stability issues, alternatively, also weechat’s quite decent since it has quite long history of development

morrowind ,
@morrowind@lemmy.ml avatar

Cinny. It uses Tauri instead of electron

tengkuizdihar ,
@tengkuizdihar@programming.dev avatar

I just use element right now, pretty good for phones and imo excellent for desktop (ux and usability wise)

sysadmin420 ,

Schlidichat!

Afiefh ,

On my phone I switched to Element X because Element would take up to a minute to sync messages. I’m willing to put up with the reduced feature set, as long as actual messages fucking arrive in time!

technom ,

Matrix clients are slow and clunky because the protocol is heavy and overloaded. Upcoming sliding-sync feature will make them a bit more responsive.

Talking about specific clients, my favorite is Fractal. It’s still missing some features though (like spaces). But it’s getting updated fast.

xmunk , in It's not DNS

Why do Canadians make such good network engineers?

We always make sure to check the Eh Record.

Psycobob , in My VSCode started to summon DEMONS😈, how do I stop it? I have checked PHP docs but got nothing. 😥

It looks like you tried to parse html using a regex.

For reference: stackoverflow.com/…/regex-match-open-tags-except-…

MinekPo1 ,
@MinekPo1@lemmygrad.ml avatar

I’m think the answer there does not apply to the PHP version of regex though I’m not entirely sure

MonkderZweite ,

It works better if you remove linebreaks beforehand tho.

awesomesauce309 , in You may call me a monster but I know I'm not the only one

You know the kind of guy who does nothing but browse the internet and then wonders why his life sucks? One by one I’m gonna make up for all the grass I didn’t touch.

sik0fewl , in Good&Evil is a classic altrock album by Tally Hall, and now, for something completely different, JSON

Obviously I would be using XML if I was doing evil.

dan , in Every goddamn time
@dan@upvote.au avatar

Be sure to wear a hoodie in a dark room so that you can hack faster.

ValiantDust ,
MonkderZweite ,

Don’t forget the green font.

dan ,
@dan@upvote.au avatar

and it has to scroll so fast that nobody can read it.

merc ,

But, make sure that if you pause it, it’s part of the Linux kernel source – the most hacker-seeming stuff out there.

Anticorp ,

With blue lettering projected onto your face, even though it doesn’t match what is on the monitor in front of you.

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