lightsecond

joined 1 year ago
[–] lightsecond@programming.dev 3 points 1 year ago (1 children)

Well, life is about trade-offs and neither spaces or tabs are perfect in every scenario, but the industry overall prefers spaces over tabs nowadays and the tooling reflects that too. For me personally, as long as a project is consistent in its formatting and developers don't need to fight its tooling, I'm happy with either. We can yak shave all we want (and lots of people are doing that on the internets) but I hope I at least answered your initial question about why people prefer spaces over tabs.

[–] lightsecond@programming.dev 4 points 1 year ago (3 children)

It makes a difference when you’re working on a large project with lots of people. Even Linux mandates 1 tab = 8 spaces.

The only argument i see in favour of tabs is the “i can change the width on my own machine!” which isn’t very convincing if you are working on a team and need to follow conventions every time you commit code. The indentation will keep looking weird on your machine.

[–] lightsecond@programming.dev 9 points 1 year ago* (last edited 1 year ago) (5 children)

If you’re using monospaced fonts for writing code (please tell me you are) spaces make sure that the code will look roughly the same on everyone’s machine.

def function(paramX: str,
             paramY: str,
             paramZ: str) -> int:
  pass

If I’d used tabs, the second and third parameter might not align with the first.

Also, left-side indentation is only a small part of the overall whitespace in code. You’re adding whitespace even when you write x = y. Spaces make sure that this whitespace around the = grows in the same scale as the indentation.

[–] lightsecond@programming.dev 10 points 1 year ago (2 children)

Google employees who work on the Linux kernel.

[–] lightsecond@programming.dev 3 points 1 year ago

I should of realized.

[–] lightsecond@programming.dev 1 points 1 year ago

Thanks for sharing the text. The economic times website is infested with popups.

[–] lightsecond@programming.dev 1 points 1 year ago

Maybe it won’t be the same people, but I’m sure some people will complain because they were expecting to be able to interact with their irl friends and family from their mastodon accounts.

[–] lightsecond@programming.dev 3 points 1 year ago* (last edited 1 year ago)

You need to subscribe to its communities like you would any other. But bear in mind that lemmit.online doesn’t sync comments.

For example !games@lemmit.online. You can see the list of communities at https://lemmit.online/communities.

[–] lightsecond@programming.dev 2 points 1 year ago

Reality travels at the speed of light.

Someone with a better understanding of physics might be able to explain this better, but as far as i understand it, according to the theory of relativity, changes in the universe are propagated at the speed of light. So there is no definitive “present” without a frame of reference.

Let’s say you observe two death stars equidistant from you, that are also moving at the same speed as you, blow up at the same time. From your frame of reference, they blew up at the same time. But from the frame of reference of each one of them, the other one blew up later. And this isn’t just a matter of perception. The change in gravity because of them blowing up would also only travel at the speed of light. This speed limit is a fundamental property of the universe.

[–] lightsecond@programming.dev 3 points 1 year ago

My theory is that we probably conflate lots of mental illnesses because they have similar symptoms. We know today how there are many unrelated reasons that can cause a blocked nose. Even though a pollen allergy and viral infection both cause sneezing and a blocked nose, the way to deal with these conditions in the long term is not the same. My gut says that we’re still early as a society in our exploration of mental health and at least some illnesses will be identified in our lifetimes as definitely being caused by the biome.

[–] lightsecond@programming.dev 4 points 1 year ago (1 children)

Lemmy has a web interface just like kbin. Are you saying that regular websites don’t work on older iDevices? The web interface for your instance is at https://lemmy.world

view more: ‹ prev next ›