Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Delphi is fucking retarded

Name: Anonymous 2018-04-24 17:35

Or Turbo Pascal or Object Pascal or whatever the fucking name of this shit is.

Holy fucking shit.

Assuming F is of type double:
F := 3.5;
works as expected, but
F := StrToFloat('3.5');
might work on one computer, and it might throw an exception on another, depending on system locale. Except they didn't even bother going all the way and also support the thousand separators, just the decimal separator. And then my coworkers try to convince me this is somehow the correct behavior and all the other languages got it wrong.

Not to mention that even the most trivial concepts such as mapping, filtering, or folding over sequences is retardedly hard if not downright impossible to do with higher-order functions, because the type system actually has a downs syndrome. It is actually simpler and more readable to just write for loops everywhere. Jesus fucking Christ please kill me.

I probably don't even have to mention the lack of a macro system.

Name: Anonymous 2018-04-24 17:49

>>1
Achually there is a castrated macro system in FreePascal.
https://www.freepascal.org/docs-html/prog/progch2.html#progse5.html

Name: Anonymous 2018-04-24 18:34

The last time I used Object Pascal was like a decade ago when I was making Runescape bots. Autotypers and autoclickers. I'm getting old.

Name: Anonymous 2018-04-24 20:48

>>2
Too bad thats completely useless to me as we dont use FreePascal at work. And even this looks barely useful at best.

But this all is just the tip of the iceberg, every day I seem to discover a new feature in this language that must have been designed by some retarded indian. Maybe I should start a blog (not on /prog/) where I document these shitnuggets I find so that I don't lose my sanity completely.

Name: Anonymous 2018-04-25 3:12

FreeBasic > Ada GNAT > FreePascal > Modern Commercial Pascal > Old Object Pascal

Name: Anonymous 2018-04-25 4:07

I would volunteer to rewrite that shit tbh. Holy fuck at using that in 2018.

Name: Anonymous 2018-04-25 4:20

Just write a function to loop over the string and output a float?

mapping - pass a function id as an integer and select case function id?

Name: Anonymous 2018-04-25 6:23

doesn't C# have the same problem with locale-based number separators and date parsing?

Name: Anonymous 2018-04-25 7:55

Name: Anonymous 2018-04-25 11:12

>>8
https://stackoverflow.com/a/5365573
Apparently you are right. According to this you have to use float.Parse("123.5", CultureInfo.InvariantCulture); to get it to work as expected in C#.

Not really surprising. I've been told Microsoft hired a ton of Borland monkeys that worked on Pascal and made them work on C#. So it's understandable that they brought some of their retarded ideas over to C# as well.

Name: Anonymous 2018-04-25 17:54

>CultureInfo.InvariantCulture
Tfw multiculturalism needs to be disabled for the ability to parse numbers.

Name: Anonymous 2018-04-25 18:07

C is fucking retarded.

Why doesn't this compile?

string main() {
return "Hello World!";
}


Why does this print a big number instead of 3?

#include <stdio.h>

int main() {
printf("%d\n", 3.1);
}


Why can't I index arrays?

#include <stdio.h>

int main() {
int a[] = {1, 2, 3, 4, 5};
printf("%d\n", a(2));
}


Why doesn't this print "4 5 6 7 8" twice? Why do parentheses change the big number that gets printed?

#include <stdio.h>

int *func() {
int a[] = {1, 2, 3, 4, 5};
return a + 3;
}

int main() {
printf("%d\n", func);
printf("%d\n", func());
}

Name: Anonymous 2018-04-25 18:20

Today Delphi is called "Kotlin" (after a KGB officer) and it is made by the same Putin-worshiping Russian team.

Name: Anonymous 2018-04-25 18:30

>>13
Fake news. Kotlin is based on Java.

Name: Anonymous 2018-04-25 18:39

>>14
Kotlin
https://en.wikipedia.org/wiki/Kotlin_%28programming_language%29
operator fun Point.plus(other: Point): Point

Delphi
https://www.csh.rit.edu/~jon/code/delphi/dammit.html
function GetModule (Which : Integer) : pWinAMPVisModule

Name: Anonymous 2018-04-25 18:45

>>13
JetBrains are the former Borland
https://xakep.ru/2013/03/26/60338/
В середине 90-х компания сменила название на Inprise и чуть не закончила свое существование.Спасли ее инструменты разработки — Delphi и позднее JBuilder. Затем Borland опять начала покупать компании — среди прочих в 2003 году так была куплена и американская компания TogetherSoft, основной центр разработки которой находился в Санкт-Петербурге. В результате этой покупки образовался российский филиал Borland.

Name: Anonymous 2018-04-25 21:21

>>14
Didn't Google switch from Java to Kotlin because of Oracle trying to sue them for using Java APIs in Android? Or did they just decide to change the programming language for Android apps just because?

Name: Anonymous 2018-04-26 0:02

>>12
void main
dunno, should it be %f?
a[2]
terrible

Don't change these.
Name: Email:
Entire Thread Thread List