|
honey the codewitch wrote: and then there's pass.
Pass seems like it should never exist in any language.
And the rest is a Fail.
|
|
|
|
|
As someone who taught a few CS courses...
for a NEW programmer, the Python Syntax makes MORE sense than the C style syntax.
x = 3 if I_Need_A_Small_Number else 3333
which is even cleaner in error checking:
addError("You can't have this") if X = 0
addError("You can't have this") if Y = 0
...
showErrors()
This was a feature of DEC Basic-Plus 2 (I called it an outside if) and in a world where something had to be tweaked in a block of code, and you did not want to affect program flow... Wow, it was a gift.
The C syntax is best explained as a "fake function" IIF() => X = IIF(cond, true_val, false_val);
but invariably the kids ask the correct question: Wouldn't that be BETTER/CLEARER syntax? (And I would explain that is why we have a PRE-PROCESSOR, LOL).
And again, I LOVE the PL/SQL DECODE() statement, which is "?:" on Steroids:
X = Decode(v0, V1, R1, V2, R2, V3, R3, R4) -> Where R4 (the extra param is the ELSE condition)
It is literally a CASE statement in function form!
That said. Python has ONE THING I absolutely hate. THE WHITESPACE inequity. I wish they treated a single tab as 2 spaces. Life would be simply. My editors convert Tabs to spaces. But ONLY when I edit a line. OMFG this might be bad in Python. LOL.
|
|
|
|
|
significant whitespace in a programming language is just a terrible idea
Real programmers use butterflies
|
|
|
|
|
I don't get the hate on python. It's a typical 1980s language. It is what it is because it's a product of the time it was invented in. You can't apply today's values to a language whose syntax was designed almost 40 years ago and expect it to hold up. Yeah, I know C was around back then, and is the dominant syntax today, but back then, C didn't have much penetration and Fortran was king. Python is kind of an ugly stepchild of Fortran, and shows it.
|
|
|
|
|
patbob wrote: Python is kind of an ugly stepchild of Fortran
The explains a lot. Honestly, I didn't know Python was that old.
However, significant whitespace there's really no excuse for in any language, as the problems with it - both lexing it and using it - were pretty well known by the 1980s, AFAIK.
That's why i'll never adopt it. Half my editors won't even work with it very well. (tabs to spaces can easily kill a python program)
Real programmers use butterflies
|
|
|
|
|
Fortran didn't require any whitespace. If you were parsing
DO2I=1
you might have an assignment statement or, if the next symbol was a comma, a DO loop.
How about
DO2INUMBR(JPARM1,KPARM2,LPARM3)=LRESLT(MINDEX,INDEX2,INDEX3)
You still don't yet know if it's a DO loop or an assignment!
|
|
|
|
|
*cries*
Real programmers use butterflies
|
|
|
|
|
AWK was invented in the 70s. Its basic structure has been around from the beginning, and it is as elegant today as it was back in the day.
Need to process a text file in some way? Use AWK (GAWK) to do it and you can spend your time thinking about what it is you want to do with the file's contents.
You need to spend no time thinking about or writing code to open the file, read its contents, or break it into meaningful tokens--AWK does it all for you.
FormerBIOSGuy
|
|
|
|
|
1 GB.
I apologize if crossposted/reposted/"Re:fwd:fwd:Re:fwd"/etc...
|
|
|
|
|
The Lounge[^]
after many otherwise intelligent sounding suggestions that achieved nothing the nice folks at Technet said the only solution was to low level format my hard disk then reinstall my signature. Sadly, this still didn't fix the issue!
|
|
|
|
|
Yes, but mine was better.
|
|
|
|
|
Actually it will be 1 UK, which is not a measure of size unfortunately.
|
|
|
|
|
Typical English attitude. "One football field" is a unit of size; "The size of Wales" also. But never "1 UK" ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Please translate into the standard Library of Congresses unit...
|
|
|
|
|
I have a Scottish name, I live in England, and I was brought up in Wales. In fact, the first National Anthem I ever learned was, "Hen Wlad Fy Nhadau".
|
|
|
|
|
You guys have a klingon national anthem ?
|
|
|
|
|
|
It is part of the United Kingdom.
|
|
|
|
|
[^]Quote: Despite processing 16-bit TIFFs in CaptureOne and Lightroom on one screen, messing with a 100MP photo in Photoshop on another, rendering a video out in Resolve, and playing back footage in Final Cut all at the same time, the computer never had to use more than 70GB of its RAM. Even when all of the CPU cores were at full load. Well maybe they don't need all these options:Quote: 16-core 3.2GHz Intel Xeon processor, 192GB of RAM, Afterburner Card, and not one but two Radeon Pro Vega II graphics cards with 32 total gigabytes of VRAM And the US$ 6k monitor: for graduation ?
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
I once was a college student, and I did exactly none of these things on my computer back then.
But then, I studied programming, not farting around with picture- and video-editing software.
|
|
|
|
|
dandy72 wrote: I once was a college student, and I did exactly none of these things on my computer back then. I once was a college student, and my computer could do exactly none of those things back then.Quote: - OP all at the same time, the computer never had to use more than 70GB of its RAM about 70000 times the RAM I had (even then only 640k usable limit), 14000 times my HDD so I couldn't even swap to that.
How did we manage? defies all logic we managed to achieve anything at all?
... apart from help [some more, some less, we all shared the pain] produce the very machines and software these kids are [seemingly still dissatisfied with] today.
my heart goes out to them ... not!
(and now time for an even older fart to pipe up), LUXURY! We...
after many otherwise intelligent sounding suggestions that achieved nothing the nice folks at Technet said the only solution was to low level format my hard disk then reinstall my signature. Sadly, this still didn't fix the issue!
|
|
|
|
|
dandy72 wrote: I studied programming, not ... And, thanks to that you are the 18-year veteran CP Lounge lizard you are today
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
I'd rather hang out here than on some Photoshop user forum.
|
|
|
|
|
I always find it slightly amusing that a lot of the mac hardware reviews always talk about how fast they can do video editing.
I think we need to setup a review section where we talk about how many browser windows you can have open while cutting and pasting code into Visual Studio Code or xcode while simultaneously building a full solution including deployment packages to the different desktop OSs and 2 mobile platforms, all the time while watching Netflix on the other monitor.
That would make me sit up and listen to the review.
cheers
Chris Maunder
|
|
|
|
|
Wow, is this what every college student is doing these days?
Thinking about college has brought back a flood of fond memories...and it cold and damp outside on this Saturday, so forgive me for being nostalgic.
Back in the late 80's I started CS classes and did well but really hated the fact that all final homework tasks (getting your program to compile and print to green-bar) had to be done in the lab. The lab was often over crowded and getting a terminal that actually worked was a challenge. There was also the unwritten rule that if an upperclassman needed it, you had to give it up...that rule got me kicked out of the lab and therefore the CS program. I quit school and got a factory job.
10 years later, tired of constant overtime and manual labor, I got an opportunity to go back to school. I didn't think twice. My dad set me up with a hand-me-down PowerMac 6100 beige box that the phone company was tossing. OS 7.5.x was absolute garbage which was why my very first computer book was 'Sad Macs Bombs and Other Disasters'! I must have re-installed that OS a dozen or so times. Still, it was quite a learning experience in troubleshooting computer problems
Trying to remember the specs...I think it was a 66MHz PPC, 8MB ram, and a 500MB scsi hdd. (later upgraded to 32) I had MS Office on floppies. (3 dozen or so IIRC) It got me though my first year of college introductory courses, but when I started into programming courses, everything was Windows so I got my first Windows machine around '98. (AMDK2-6 350MHz, 32MB, and 4B hdd) I upgraded every component of that machine (except mobo/cpu) even adding an LS-120 drive. I also got my first version of Visual Studio. To me, this was an awakening and I knew I'd never be the same.
No more labs! I could now write, debug, and even compile my programs from home and at any time I wanted! I could study and learn at my own pace! Now, programming wasn't just about typing code into a terminal, it was now a visual experience! I was hooked! The second go-round with college went much better than the first. I was a much better student at 30 than I was at 20, though probably not as much fun! Anyway, it's been a great 20 year trip since then. Thanks for letting me share.
"Go forth into the source" - Neal Morse
|
|
|
|