sajran

joined 1 year ago
[–] sajran@lemmy.ml 8 points 1 year ago

Yeah, there are reasons to criticize snaps but the fact that it takes a lot of space in some UI is not really one of them.

[–] sajran@lemmy.ml 1 points 1 year ago

I bought a new smartphone a few months back and I didn't realize it doesn't have a headphone jack until recently. That was the first instance when I wanted to use it. But it turned out that BT was supported in that case too.

I absolutely see how removing jack is a problem for some people, but there is also a significant group which couldn't care less. I haven't used wired headphones in years.

[–] sajran@lemmy.ml 1 points 1 year ago

A vast majority of the code in question is the code I've written for my work projects with multiple active contributors and refactoring is very common too. We all like to shit on Python for various reasons but no one in my environment ever complained about whitespace.

Like I said, I don't think whitespace is perfect as a part of syntax but I'm much more likely to forget a semicolon than a proper indentation and this applies to any language. I guess it's not universal tough, because you can often see code with messed up indentation on online forums etc. TBH this is just unthinkable to me, indentation is absolutely necessary for me to be able to read code and reason about it. When I'm thinking about blocks and scopes it's not because I counted semicolons and braces, it's 100% indentation.

[–] sajran@lemmy.ml 3 points 1 year ago

Yup, IMO Python is so much better with type hints that I can't help but think they should just be part of the language. Which is kinda stupid because of the "original philosophy" as you said. But on the other hand things like third party static type checkers and type stubs, or just untyped libraries can be a real PITA .

Also, I acknowledge that the lack of typing can be an advantage for some people in some circumstances, even though I use typing even in the simplest and shortest scripts myself. Why would I want to figure out the types every time I look at the function if I can just write it down?

[–] sajran@lemmy.ml 2 points 1 year ago

It's also important to acknowledge how different is prototyping from writing production code which has to be extendable and maintainable for years by multiple developers.

Your take isn't even very hot when we are talking about prototyping 😉

[–] sajran@lemmy.ml 11 points 1 year ago (7 children)

Meanwhile here I am thinking about pivoting my career from Python to Rust because I've grown to hate Python's lack of typing. I also religiously write unit test even for minor personal projects.

[–] sajran@lemmy.ml 8 points 1 year ago (4 children)

Genuine question: why? What makes, say a semicolon, so superior to the the newline or tab characters?

To be clear: I don't think whitespace as a part of syntax is an awesome idea which should be more popular. It's definitely a bit more error prone in some ways. It's not perfect. But it's okay.

I've written a lot of Python and I don't think I have ever seen a syntax error caused by incorrect whitespace. I'm not exaggerating. I regularly forget semicolons in other languages but I never type out incorrectly indented code. Maybe that's just me though...

[–] sajran@lemmy.ml 2 points 1 year ago

This is the first time in my life when I encountered an opinion that calling someone is somehow rude and reserved for emergencies. In my social circle and family people just call when they want to talk. Sure, we text often too, but calling is completely normal. And if you can't or don't want to talk, you just don't pick up the phone.

I'm genuinely baffled.

[–] sajran@lemmy.ml 2 points 1 year ago

Don't worry, it won't be a problem anymore once I'll fire up Android Studio and Android emulator.

[–] sajran@lemmy.ml 1 points 1 year ago (1 children)

I didn't expect a code review but it's definitely a valid criticism 😁

[–] sajran@lemmy.ml 5 points 1 year ago (1 children)
[–] sajran@lemmy.ml 2 points 1 year ago (3 children)

Thank you!

There's certainly a long way ahead of you, but it's very interesting and rewarding! I'm dabbling in rust for some time now and I still learn new stuff constantly. I enjoy it more than any other language or technology recently though.

view more: ‹ prev next ›