78
submitted 1 year ago by cyu@sh.itjust.works to c/technology@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] beejjorgensen@lemmy.sdf.org 14 points 1 year ago

I was taught obsolete things in college in the early 90s. But FORTRAN wasn't the useful part of the class--problem-solving and broader language exposure was.

People focus on random technologies that are being used in class as being obsolete, but that's not the point of college. You can learn technologies on your own, and if you have trouble with that, maybe practicing it in college is a good idea.

Basically we're going to drill on technology-agnostic fundamentals for 4 years, and use a wide variety of technologies and languages as vehicles for that so you get a good breadth of experience.

[-] agressivelyPassive@feddit.de 1 points 1 year ago

Exactly. Whether you're learning fortran, C or python doesn't really matter. The core concepts are almost the same.

[-] xChaos@f.cz -3 points 1 year ago

@agressivelyPassive @beejjorgensen ehm, not really. Comprehensions [I didn't even know they are called as such for a long time] ale light years ahead of any abstraction provided by Fortran, and unfortunately also C (maybe not so C++, which is dangerous and versatile beast).

The core concepts of Python are two or three generations newer than that of Fortran.

[-] agressivelyPassive@feddit.de 2 points 1 year ago

Comprehensions are just shorthands, nothing more. You can unroll into loops on a syntactical level.

But the fact that you think like that, shows to me, that you actually don't understand the core concepts behind languages.

At the end, each language compiles to assembly, and all the fancy features are just different ways of encoding assembly.

[-] xChaos@f.cz -2 points 1 year ago* (last edited 1 year ago)

@agressivelyPassive ok, comprehensions are just syntax, but still, they still allow producing new arrays directly from iterable objects, without need to store them in temporary arrays, which counts as added abstraction.

Basically I agree, that there are concepts which are simply not available in certain runtime libraries/interpreters, like multithreading or lazy evaluation. So I more or less agree, that syntax is not so important and we should categorize the underalying abstractions, accessible by syntax (or whatever).

But at least memory management abstractions of Python are very different from Fortran or C (ok, you can use many different libraries for that in C, but you will hardly get reference counting and automatic clenaup of unreferenced objects and so, and this not just syntax issue... it is automation issue...)

[-] agressivelyPassive@feddit.de 3 points 1 year ago

And nothing of that has anything to do with understanding core concepts. Threads are native CPU constructs, they don't just exist because of a library. Memory management is nice, but also not arcane knowledge that can only be learned by going to a university.

A C dev learning dependency injection and a Java dev learning manual memory management will both have to learn something new, but for neither it should fundamentally change how they think about computers.

Again, you seem not to understand what's actually going on under the hood. There is not a single language concept that a regular dev in another language couldn't understand. It's all just "make compiler write assembly so computer go brrr". That doesn't mean it's trivial to be proficient in a new language, but that was never the goal of any higher education. It's called computer science, not advanced button pressing.

[-] beejjorgensen@lemmy.sdf.org 1 points 1 year ago

Compensations are light years behind whatever's coming next. ๐Ÿ™‚ And I don't think of them as "core". They're practically syntactic sugar. If you can write a comprehension but can't write a loop with a conditional in Python or FORTRAN, you're missing the core.

[-] xChaos@f.cz 1 points 1 year ago

@beejjorgensen I spent so many time writing manual loops even in Basic, sometimes in ASM (on Z-80) later in C, but actually, abstraction level of manually written loops is relatively low.

Ok, core concept in Python are iterable objects. Iterable objects are much, much more advanced abstraction, than manual loop - I and yes, I have spent many, many years writing manual loops again and again, later I added some macros, but still - in Python, it is not only less keystrokes, but the iterable object abstraction is something, which was absent in Fortran and C (maybe not in C++, but C++ was mostly pain)

Syntactic sugar poured on iterable objects is maybe not so important, but in enviroments without certain core concepts, no amount of syntactic sugar will fix that.

Think of it as it was in Basic: it had no pointers (unless you wished to peek and poke memory manually). C had pointers and pointer aritmetics, which was powerful abstraction, compared to Basic. You would need to manually call peek() function to read pointer... well, technically possible, but you would read one byte at a time, with no clue about data type, etc). C pointer is not just syntactic sugar over peek(), it is much more than that.

And there are more and more such powerful abstraction, which are just absent in older languages. You can eg. call try ~ except (or catch, or whatever) syntactic sugar - well, maybe it is, but is sugar coated setjmp()/longjmp() call of libc, not sugar coated goto, as it may seem at the first glance...

load more comments (3 replies)
load more comments (4 replies)
this post was submitted on 23 Sep 2023
78 points (92.4% liked)

Technology

34836 readers
23 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS