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.

PixxlMan , in 0.30000000000000004

To everyone commenting that you have to convert to binary to represent numbers because computers can’t deal with decimal number representations, this isn’t true! Floating point arithmetic could totally have been implemented with decimal numbers instead of binary. Computers have no problem with decimal numbers - integers exist. Binary based floating point numbers are perhaps a bit simpler, but they’re not a necessity. It just happens to be that floating point standards use binary.

JackbyDev ,

What you’re talking about isn’t floating point, it’s fixed point.

PixxlMan ,

Wrong. Sounds like you think only fixed point/precision could be implemented in decimal. There’s nothing about floating point that would make it impossible to implement in decimal. In fact, it’s a common form of floating point. See C# “decimal” type docs.

The beginning of the Wikipedia article on floating point also says this: “In practice, most floating-point systems use base two, though base ten (decimal floating point) is also common.” (en.m.wikipedia.org/…/Floating-point_arithmetic) Also check this out: en.m.wikipedia.org/wiki/Decimal_floating_point

Everything in my comment applies to floating point. Not fixed point.

JackbyDev ,

I generally interpret “decimal” to mean “real numbers” in the context of computer science rather than “base 10 numbers”. But yes, of course you can implement floating point in base 10, that’s what scientific notation is!

teamonkey , in call the doctor, the CS doctor

Lua crew represent

darcy ,
@darcy@sh.itjust.works avatar

rare lua L

Thisfox , in R U A Cyberpunk

I had that laptop, got it second hand. Was great for Uni.

AllNewTypeFace , (edited ) in R U A Cyberpunk
@AllNewTypeFace@leminal.space avatar

The guy in the photo is still dressed like that, but now he’s the weird hobo who lives in the junkyard

Knusper , (edited ) in incoming

I only do webdev occasionally and yeah, I’ve noticed this tendency that I want to put everything in a CSS grid. At this point, I’m worried I end up with a layout that’s about as responsive as the early-2000s table layouts. 🙃

adrian783 ,

grid and responsiveness are not antithetical. I mean the concept of grid had been around for like a decade, see bootstrap.

Knusper ,

Yeah, I’ve done responsive grids before. Problem is, I’m currently working on a single-page web music player and it’s so easy to just nail all the UI elements down. Like I might want to have the play button always appear to the left of the playback bar. But that obviously can’t reflow naturally on smaller screens. Although reflowing that example won’t look good either.

I guess, I’m still figuring out, if I ever actually want things to reflow. I might just need to define static rules, so that on a small screen, the play button should appear in a different grid cell, next to the previous/next buttons, for example…

Potatos_are_not_friends ,

Grid is made for responsive design.

If you’re not familiar with grid, stick with flex, which kinda just works but doesn’t have the strong control/structure as grid.

PoolloverNathan ,

It’s fine, my entire website is built on rock and roll grids.

onlinepersona , in My poor RAM...

Got myself a laptop and PC with 64GB of RAM. I’ll never look back. 16GB on a dev machine just seem like the bare minimum nowadays.

pomodoro_longbreak , in After 6 hours
@pomodoro_longbreak@sh.itjust.works avatar

Oof I am here right now, which is why I’m procrastinating on socials…

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>
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.

nintendiator , in I'll just sort it myself

Honestly this being javascript I expected the answer to be


<span style="color:#323232;">[4, 1, 100000, 30, 21]
</span>

(sorted alphabetically by name)

vox , in Which side are you? Javascript or Typescript
@vox@sopuli.xyz avatar

I don’t like blocated crap, so vanilla js es6 is the way

Ddhuud , in Which side are you? Javascript or Typescript

I’m with the guy sitting at the table

StorageAware , in Which side are you? Javascript or Typescript

All the stuff I write is personal tools anyways so I do the same. They’re small anyways.

Hazzia , in They tried

Be me, american, using a VPN Visit some fucking webber site to read an article Cookie agreement pops up Has a decline all option pog.png Hit “reject all” New popup appears Says “We’ve detected that you’re in the EU. Due to EU regulations, we cannot display this webpage with the ‘reject cookies’ setting selected. Please accept all cookies to continue” Dafuq

MDFL OP ,

Not at all my experience, but ok.

Honytawk ,

Clear sign that the only reason that website exist is to extract your privacy for profit.

Just move on to the billion other websites that don’t try to violate you.

pinkdrunkenelephants , in The lengths we have to go to

And that is why I don’t bother with that garbage. C++ for life

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