|
You have a twisted sense of humor.
|
|
|
|
|
Greg Topham wrote: You have a twisted sense of humor. At the time I was totally surprised. Maybe shocked.
In later thinking about it -- the guy was an upper classman, based upon personal appearance and the size of the deck (higher level class, longer programs). Everyone was warned to take the aforementioned care of the decks, and the displays for rubber bands and felt-tipped wide markers were right next to the punch cards in the campus store. Freshman knew enough to take care ... upper classmen should know even better.
It was a good warning for others.[^]
|
|
|
|
|
"Modern" Fortran is a bit better with so-called free-format coding. Intel Fortran even offers Visual Fortran that integrates into Visual Studio. Maybe other compiler makers do something similar. It's not as painful as it once was. Thankfully.
|
|
|
|
|
Yeah but a programming language that makes you say 'Neeh' ?
modified 9-May-18 11:29am.
|
|
|
|
|
|
glennPattonWork wrote: I am going to start using Notepad++ Use IDLE (the Python IDE) and its associated editor, it does all the spacing for you.
|
|
|
|
|
Richard MacCutchan wrote: Use IDLE (the Python IDE) and its associated editor, it does all the spacing for you.
Will it space a Tesla Roadster?
Signature ready for installation. Please Reboot now.
|
|
|
|
|
maybe readonly
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Tried that, is there a switch I missed I couldn't get it to indent properly...
|
|
|
|
|
Worked right out of the box for me ... I trust you remembered to add the colon at the end of your if, else, elif, while, etc. statements.
|
|
|
|
|
Richard MacCutchan wrote: it does all the spacing for you
And reveal all the passwords you're trying to enter
And fight with matplotlib over cpu time
I can't count the number of ppl not believing me when I told them that IDLE was causing their problems.
I even made some relaunch code, just to make my Python scripts escape from IDLE's claws
|
|
|
|
|
No, never seen any of those, not had any problem with IDLE. And I don't quite see how it can reveal your passwords. Maybe you are doing something wrong.
|
|
|
|
|
I am not going to discuss the details because this is the Lounge. I don't like IDLE because it changes the behavior of the language; and with a few tweaks, Notepad++ does everything I want.
|
|
|
|
|
Martijn Smitshoek wrote: I don't like IDLE because it changes the behavior of the language How exactly does it do that?
|
|
|
|
|
try in IDLE:
import getpass
getpass.getpass() then type something.
Not very useful.
|
|
|
|
|
Quote: Warning (from warnings module):
File "C:\Program Files (x86)\Python_36\lib\getpass.py", line 100
return fallback_getpass(prompt, stream)
GetPassWarning: Can not control echo on the terminal.
Warning: Password input may be echoed.
Password:
Looks reasonable to me.
|
|
|
|
|
Life would be boring without a little evil.
|
|
|
|
|
It's very important to set your editor for "convert tabs to spaces" or whatever the setting is for your editor so you don't accidentally mix the two.
|
|
|
|
|
Yeah! Who cares about whitespace and labels in Assembly!
... such stuff as dreams are made on
|
|
|
|
|
|
Thanks for bringing this up ... my impression was exactly the same a few years ago when I tried to learn Python "for fun" (having C++/C# background). Luckily I did not need it for a project so I comfortably have given up ... Perhaps Python is meant for people without programming background ...
|
|
|
|
|
No, Python is meant for people who want to get stuff done without having to debate brace layout and other trivialities. It's quicker to get simple stuff done than C/C++ (for one, you don't have to recompile). It can be extended with C/C++ if you think you have a performance need.
If you think Python is for non-programmers, you may be disappointed to find that it's exactly for you.
|
|
|
|
|
I don't want to exaggerate, but we both probably agree that syntax is important, as it helps our brain to understand (quicker or slower ) what we are doing ... So, Glenn is quite right in his remarks. But of course as you say there are qualities in Python, and I would also add that it is in top 5 in the TIOBE list "as we speak". Perhaps I will give Python another try ... ,
BR
|
|
|
|
|
|
It takes a bit of getting used to. Then after a while, it's like your eyes are opened -- if whitespace is the block delimiter, there can no longer be wars about where to put those braces. There can no longer be wars about indentation levels. All code in a codebase becomes slightly more unified and people can focus on solving problems -- which Python does extremely well -- instead of trying to assert some rule they had hammered into them at some previous point in their life.
As an exercise, try open up other people's Python. Go have a look at software written in Python which is installed on, say, many Linux boxes. Go learn the "Pythonic" way to do things (there are language features which make the structure easier to conform to and which help to unify the flow of process).
Now, with your eyes opened, go back to C++, Javascript, C#, wherever. And recognise the burden that Python took from you.
I'm not pulling this out of my ass. Python is only one of about 20 languages I've coded in, with varying degrees of proficiency and utility. But I still recommend Python as the ideal learner language because:
- it reads well (easy to understand what you or someone else wrote)
- the language enforces a reasonable style
- it's easy to get simple things done
- it doesn't run out of steam when you no longer wish to just get simple things done (it's powerful in itself and there are myriad free libraries out there which are easy to install and consume)
- it runs just about everywhere
- there are a mad number of good, free (and non-free) editors / IDEs for it (check out PyCharm Edu if you want a good editor and a tutor)
- SNAKE!
|
|
|
|