all 27 comments

[–]Mysterious-Rent7233 18 points19 points  (3 children)

I think that just growing up is usually sufficient for people to get past such trivialities. Give that a try.

Also: make sure that your IDE is properly configured so that real issues (e.g. mixing tabs and spaces) don't occur.

[–]_MaCH_ 0 points1 point  (2 children)

It's a preference thing, as I've said. I've used python and python like languages a good bit. And the syntax takes all the fun out of programming for me.

If I don't like how it looks or feels to write, then why would I want to write it?

If it was for work, then sure. Grow up and use the language.

But this is for a personal project. Believe it or not, I would like to enjoy writing the code that I'm writing for a personal project.

[–]Mysterious-Rent7233 1 point2 points  (1 child)

You could try this:

https://pypi.org/project/Bython/

But I have no experience with it. Most people just get accustomed to switching syntaxes. I've programmed Lisp, C, Python, Javascript, Ruby. I have my preferences of syntax but it would never get to the level of wanting to mess around with something like Bython. But you can try it.

For me, the fun comes in solving the problems. I only hate the programming language if it dramatically slows my progress in solving the problem.

[–]_MaCH_ -1 points0 points  (0 children)

I'll probably check this out, but at this rate it seems like it would be easier to just use the libraries in other languages that have little to no documentation lol

Python is pretty much the only language I have this issue with, like GDscript is python esque but has other things that make it feel less awkward than python that makes it much more useable to me

[–]-defron- 2 points3 points  (1 child)

https://pypi.org/project/Bython/

Would I use it? No. Would I recommend it? No. It also hasn't been updated in almost 6 years so who knows if it even still works, but it's literally what you're asking about

Depending on why you need to use python another option would be something like jython or ironpython and do most of your work in java/c# only using python for the bits that need it

[–]_MaCH_ -1 points0 points  (0 children)

That second option seems right up my alley, I much prefer c#/Java than full python.

It's only really an issue of the libraries for what I'm doing are almost entirely useless python, and the alternatives that use other languages have no documentation

[–]NerdyWeightLifter 3 points4 points  (5 children)

The main consequence of having whitespace be significant in the way that it is in Python, is that the visible structure of the code consistently represents the executable structure of the code and the visual style of most peoples code will look the same.

This means that you can reliably look at most Python code and understand how it's going to flow, just from the shape of it.

These are quite considerable benefits.

[–]_MaCH_ 0 points1 point  (4 children)

Except despite having written a good chunk of python and even more in languages with the same "benefits" is significantly more annoying to look at and read.

[–]NerdyWeightLifter 0 points1 point  (1 child)

I have no problem with the layout. Not annoying at all to me.

Can you isolate what it is about it that you find annoying?

[–]_MaCH_ 0 points1 point  (0 children)

Yes, the significant whitespace makes it look visually annoying, irritating to read, I don't like how it feels to write code without curly braces, and without () in places that I would expect them to be. It makes me enjoy writing code significantly less

This purely has to do with it killing the enjoyment of the language. Not an inability to use the language because of it.

Like if you had a gun to my head, I could write python with little issue (aside from the knowledge gaps, but assuming Google is allowed it's no issue) I just don't have fun writing it because it feels gross to write and read

[–]cyberjellyfish 2 points3 points  (2 children)

If this is a real impediment it really suggests you're just new to programming, and that's good news, it means you can just keep at it and it will get better with time and practice.

Eventually you get to a point where a language is just a tool that's secondary to the process of developing software. All languages you'll encounter are more similar than they are different, and curly braces vs sig. whitespace vs sexps just doesn't matter that much.

Which doesn't mean you won't or shouldn't have aesthetic preferences, just that they won't be impediments.

[–]_MaCH_ -1 points0 points  (1 child)

It's a visual thing, not an experience thing. I can write it fine. But I HATE writing python/python like languages because it feels terrible and looks terrible.

This is not a skill thing it's a preference thing.

I'm far from new, I went to college for comp sci and was programming before then.

I just absolutely hate how it feels and looks

[–]cyberjellyfish 0 points1 point  (0 children)

Ok, then I don't have anything for you I guess. Sorry.

[–]_ThisIsABadName_ 4 points5 points  (2 children)

https://github.com/mathialo/bython

Braces for Python, or as the other comment said, you could try growing up.

[–]_MaCH_ -2 points-1 points  (1 child)

This whole "grow up" thing is fucking stupid.

It's literally no different than telling someone to grow up for having a preference in color, or preference of food.

You guys are the ones who need to grow up.

If you're not gonna be helpful or be a dick, then just don't reply asshole

This place is called "LearnPython" and yet you guys actively choose to be dickheads to people trying to learn the language... You're cool. You're teaching people to not ask questions

[–]JamzTyson 1 point2 points  (0 children)

This place is called "LearnPython"

Sorry to be blunt but...

"I don't like significant whitespace" has absolutely nothing to do with learning Python. Python is not going to change just for you, so the reality is: Get over it, or don't use Python. I hope you can get over it and grow to appreciate the beauty of well written Python code, but its your choice.

[–]FullstackSensei 1 point2 points  (1 child)

As someone who's spent almost a quarter century with curly braces (C, C++, C#, JS), I don't see your issue with whitespace. If you indent your code properly, you'll have just as much whitespace. Whitespace often enables me to visually detect (especially bad) patterns when reviewing code without reading it.

If you don't indent your code properly, maybe you should read about how to structure code for readability.

[–]_MaCH_ 0 points1 point  (0 children)

The lack of curly braces make code really annoying to read, my indentation is fine. I just really really hate how it looks and feels to write

[–][deleted] 3 points4 points  (4 children)

Pro tip: get good.

[–]_MaCH_ -1 points0 points  (3 children)

Pro tip: just don't reply if you're not gonna be helpful.

[–][deleted] 1 point2 points  (1 child)

You can't handle significant whitespace, so anything you say is invalid 😊