Python and RasberryPi

Todays post is more reaching out to the community to get feedback on why a language is the way it is. Specifically Python. I was helping a client the other day work on a home automation project they were working on. I personally have used the Arduino microprocessor whenever I created something for automation, which has a language based on C as well, but I just don’t understand this syntax. Python is the same way. When I say I don’t understand it, I mean why they refuse to have squiggles ({ })  to break up their code instead of  indentations. I mean, don’t get me wrong, I use indentation all the time in my code for the whole block of code inside a method, but this just seems unnatural and lacks in code expression. I feel like when I am reading the code in something like Notepad, that it is difficult to see the end of a class or a method with indentation alone. Now I specialize primarily in .NET (specifically C#), so I know I’m a C# brat, but it just doesn’t seem right. It also seems like it is very error prone and since it is all interpreted, you have no idea prior to running the code through the compiler whether or not it will run successfully. Even JavaScript has squiggles for goodness sakes.

So if anyone out there has a good explanation, I’d like to hear it. Yes, I know that languages since the beginning have used this syntax (LISP being one of them), but something old doesn’t constitute a good explanation of why it hasn’t been changed. Python 3.0 came out and it wasn’t changed there, so I would like a better reason than “well other great languages use the same indentation syntax”


Happy Coding Smile.


About Gregg Coleman

I am Senior-level Software Engineer working primarily these days with .NET. I have a good working knowledge of ASP.NET MVC, Web Forms, WCF web services and Windows Services. I spend much of my time in the Web Services (SOAP and REST) world in my current job designing and implementing various SOA architectures. I have been in the software engineering industry for about 6 years now and will not now nor ever consider myself an "expert" in programming because there is always so much to learn. My favorite thing about designing software is there are always new emerging technologies and something to learn every day! My current job has me spending much of my job on the bleeding edge of technologies and changing gears all the time, so I'm never bored and always challenged. On my spare time I enjoy weight training, reading and venturing to new places near by. Of course programing and learning new technologies are another hobby of mine.
This entry was posted in .NET, Best Practices, C#, Classes, Coding standards, Programming, Programming Paradims and tagged , , , , , . Bookmark the permalink.

2 Responses to Python and RasberryPi

  1. Ron C says:

    I tend to agree with both of your comments. 1. It makes no sense that syntax has not been updated too include new “featues” like curly braces. 2. I also agree that you are a C# brat 😏…. I do work with python quite a bit and I find the interpretive aspect of the language far more annoying than the space syntax. I would love to be able to see how the code runs prior to actual runtime and maybe even set a breakpoint here or there as well !!! Thanks for feeling my pain.

    • Thank you Ron for your comments and sharing your pain. I too agree that there should be a way to do “compile time” like analysis of the code. Interpreted languages have always been this way and it would be nice to see it change somehow. Maybe there is/will be an IDE that provides this in the future.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s