1
53

[–] PuttItOut 1 point 53 points (+54|-1) ago 

Dynamic typers: Let's let the end users find the problems.

Static typers: I'd rather have the compiler take a look first.

0
12

[–] Plavonica 0 points 12 points (+12|-0) ago 

Dynamic typers: learning the debug tool is too hard.

1
15

[–] PuttItOut 1 point 15 points (+16|-1) ago 

Soooo true... I am blown away when I see "programmers" that don't know the bare essentials concerning debugging.

"Set a break point? What's that?" -Senior "Engineer"

0
4

[–] waucka 0 points 4 points (+4|-0) ago 

No kidding. There's nothing hard about printf()!

0
1

[–] RevanProdigalKnight 0 points 1 point (+1|-0) ago 

I tried to learn to use gdb. I failed.

Thankfully, there are other debuggers available for C and C++ that I have learned.

1
9

[–] Wowbagger 1 point 9 points (+10|-1) ago 

I fucking love you.

1
3

[–] go1dfish 1 point 3 points (+4|-1) ago 

TypeScript says why not both?

0
6

[–] PuttItOut 0 points 6 points (+6|-0) ago 

No one is supposed to know what I'm actually talking about!

0
3

[–] glassuser 0 points 3 points (+3|-0) ago 

Loose typers: can't we all just be friends?

0
12

[–] Garglemysac 0 points 12 points (+12|-0) ago 

I have no idea what this is pertaining to but the lack of niggerjew comments is concerning.

1
9

[–] user9713 1 point 9 points (+10|-1) ago  (edited ago)

(For anyone reading, feel free to correct me or add more to it)

Programming languages are either Static Type or Dynamic Type.

Static Type means that you must declare the data type of the variable that you want to define. Example:

int a = 5;

string b = "Hello World";

bool c = true;

In the above, the data types are int, string, and bool.

In Dynamic Type programming languages, you do not declare the data type. Instead, the programming can deduce what type of data it is by what you put in. Example:

a = 5;

b = "Hello World";

c = true;

In the above, the programming language will assign int to a, string to b, and bool to c.

Pros and Cons:

  • Dynamic Type is generally easier for beginners, is faster to write code, and the compiler is less likely to give errors when you attempt to run the program. However, you have to be careful as you might not get the result you were expecting.
  • Static Type forces you to dot your "i"s and cross your "t"s. The compiler will give you errors if what you're trying to define doesn't match with the data type you declared. This generally translates to forcing you to write better code and getting the results that you want, however, it's a bit slower to write code.

And for the meme: the Dynamic Type guy finishes fast but gets unexpected results, while the Static Type guy is far behind but is attempting to get it right the first time.

0
9

[–] Garglemysac 0 points 9 points (+9|-0) ago 

So basically the difference between nigger pool and calling all your shots beforehand like a respectable whiteman.

0
1

[–] 19891869? [S] 0 points 1 point (+1|-0) ago  (edited ago)

I would have used the example:

string nigger = "Nigger";
int faggot = 0xFA6607;
bool kike = (((true)));

0
1

[–] HandsomeOmega 0 points 1 point (+1|-0) ago 

Static typing does not mean you must declare the type, types can be inferred in many statically typed languages. It only means the type of a variable can not change.

0
0

[–] libman ago  (edited ago)

Niggas be like:

def GotzKFCsBiatch (DwumStikz, Weengz): ...

And then the (((Russian))) hired to clean up after the Affirmative Action hires be like:

typedef unsigned int t_kfc_drumstick_qty;
typedef unsigned int t_kfc_wings_qty;

bool purchase_kentucky_fried_chicken (t_kfc_drumstick_qty drumsticks, t_kfc_wings_qty wings) {
    /* заебали черножопые мрази, сука блять! */
    ...
}

Then if you mix up the drumstick quantity with wings quantity, customer id, price, or any other number variable you get a compile-time error, so you know right away.

0
0

[–] jackfraser ago 

I’ll tell you this, all these static typing people are a bunch of nerdy faggots that can’t handle dynamism, are scared of eval(), have never used a lisp, and think that JavaScript is somehow a good example of a dynamic interpreted language.

Goddamned children. If I want a “static type” I’ll use a fucking class for it and have done with.

1
-1

[–] Fagtardicus 1 point -1 points (+0|-1) ago 

NIGGERKIKEFAGGOT

0
6

[–] ggolemg 0 points 6 points (+6|-0) ago 

They each have their place and use. I can't imagine a dynamically typed 45k loc project, it would be unmanageable, while a simple piece of JavaScript that you spend 15 minutes on would be a waste to make typed.

0
13

[–] 19856568? [S] 0 points 13 points (+13|-0) ago  (edited ago)

I just like the fact that it seems to shit on them both equally, as a critique of the absolutism some people have.

0
8

[–] PuttItOut 0 points 8 points (+8|-0) ago 

It's all about the load curve. Static typing is heavily front loaded, dynamic rear loaded.

Also, a complete retard would have a problem destroying a staticly typed system, whereas they could easily introduce chaos in a dynamic code base with one check in.

Anyone seriously deving in dynamic languages is probably using a strict pre-processor anyways. At least I'd hope so.

0
0

[–] prairie ago 

Agreed. A program by definition has dynamic elements. Static typing can be taken to extremes (e.g. having a different type for differently-ranged integers, e.g. one from 1 to 10 versus 1 to 100). If a program is written where you never know the types of objects, there will be persistent combinations of events at run-time that trigger errors, and the compiler can't do any checking.

0
1

[–] ScionOfZion 0 points 1 point (+1|-0) ago 

I disagree. Anything more than a 1-liner benefits from static types. Untyped code should be static generic. Type inference can make this as convenient to write as dynamic types.

0
3

[–] Gumbatron 0 points 3 points (+3|-0) ago 

I probably would have used a picture of a duck rather than a giraffe, but it's worth a chuckle anyhow.

0
4

[–] 19856733? [S] 0 points 4 points (+4|-0) ago 

If it looks like a tail and acts like a tail -- it must be a tree.

0
2

[–] Red_Menace 0 points 2 points (+2|-0) ago 

Fuck I hate Python. It's just so fucking annoying tracing passed datatypes IF YOU CANT FUCKING READ THEM.

0
0

[–] libman ago 

Use Nim - Pythonic syntax with types at the speed of C.

0
0

[–] generate ago 

So Python is like JS? I never tried, I don't like the crowd, they are all poor and depressed, why is that?

0
2

[–] Fambida 0 points 2 points (+2|-0) ago 

That's the most painfully correct comic I've seen in a while.

0
1

[–] bbqchipz 0 points 1 point (+1|-0) ago 

JESUS FUCKING CHRIST! THIS IS WHY TECHNOLOGY IS FUCKING SHIT NOW. We didn't have that shit when I learned to code.

0
1

[–] phillyjoe 0 points 1 point (+1|-0) ago 

And then there is the void pointer, and the magic therein.

load more comments ▼ (10 remaining)