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

Pages: 1-

Header guards

Name: Anonymous 2014-08-21 23:44

Notice how in any sane language this shit is not necessary? Why is C such shit?

Name: Anonymous 2014-08-22 0:02

You are a shit programmer if you need header guards

Why is C such shit?
Since C11 even if you are a shit programmer who double-includes headers you can do it without include guards since you can use typedef for the same type more than once, same goes for function declarations (true for before and after C11)

Name: Anonymous 2014-08-22 0:34

>>2
There are valid reasons for including things in headers. Like, say, you're working on your app and put all your includes in a single header, then include that header in everything else. What if you accidentally include the giant header in another header that is included in giant header itself. This is a perfectly common use case and if C weren't just portable assembly, then there wouldn't be a problem.

Name: Anonymous 2014-08-22 2:26

and put all your includes in a single header, then include that header in everything else
You are a shit programmer then

and if C weren't just portable assembly
But it is not

Name: Anonymous 2014-08-22 3:17

>>3
and if C weren't just portable assembly
C is a high level language.

Name: Anonymous 2014-08-22 13:53

>>2
You still want to have include guards if you headers include named constants.

>>4
YHBT.

Name: Anonymous 2014-08-22 14:06

Header guards are not necessary in a project. People use them to make sure they don't accidentally trigger a bug that is hard to trace, but 100% correct code does not need them. Why are you such a shit?

Name: Anonymous 2014-08-22 14:25

guard my anus

Name: Anonymous 2014-08-22 15:19

accidentally trigger a bug that is hard to trace
until programming is done by flawless beings, tools should be forgiving of mistakes.

Name: Anonymous 2014-08-22 15:42

Why don't you just put everything in void.h?

Name: Anonymous 2014-08-22 16:11

>>1

Because of static typing. Statically typed language requires declaring types of symbol you are going to use.

Name: Anonymous 2014-08-22 16:19

>>11
Ever heard of type inference?

Name: Anonymous 2014-08-22 16:40

>>9
C (and C++) is flexible enough to have include guards so that the programmer does not have to keep track of the include tree.

Name: Anonymous 2014-08-22 16:57

>>7
they don't accidentally trigger a bug that is hard to trace
How is this even possible by not using include guards?

>>6
Write better programs apps

Name: Anonymous 2014-08-22 17:35

These Jews are masters of usury and leaders in treachery. They will leave you nothing, either in this world or the next.

- أسامة بن لادن

Name: Anonymous 2014-08-22 18:53

>>15
SHALOOOOOOOOM!

Name: Anonymous 2014-08-22 20:29

>>15

Why do Arab girls hide their faces? Because Mudslimes are disgustingly ugly.

Name: Anonymous 2014-08-22 21:27

>>17
Well it's more like because male sandniggers are incredibly horny beasts and just seeing a female sandnigger can send them off the edge. So they have the female sandniggers cover up and just rape male goats (or boys) instead.

Name: Anonymous 2014-08-22 22:00

>>18

Truly animals!

Name: Anonymous 2014-08-22 23:10

HERE IS Edward Bear, coming downstairs now, bump, bump, bump, on the back of his head, behind Christopher Robin. It is, as far as he knows, the only way of coming downstairs, but sometimes he feels that there really is another way, if only he could stop bumping for a moment and think of it.

Name: Anonymous 2014-08-22 23:13

C is shit because you, as a programmer, are shit. Better languages do exist, but you will never find them. On the off chance you did, you wouldnt recognize it; it would be just more shit to you. You do not deserve better. Not you, not your compsci 101 professor, not Shiva your curry-reeking coworker, not Lamdba A. Calculus, not Lambdadelta, not Lain, not Ken Thompson, not even The Anti-Cuddet himself. You are a shit eating worm. You are no more than a little parasitic worm, shat out of a cow into in a large field full of cow shit. A shitworm's station in life is to wiggle around in its little shit pile and eat that shit, processing it just enough that grass can grow and you can make a whole new generations out of shitworms. Put bluntly, your destiny is to turn shit into shitworms. Furthermore, a shitworm lacks even the capacity to aspire higher, the best you can do is search for tastier shit to eat. So quit looking for sugar dropped to you by your superiors, and get back to munching shit with the rest of the shitworms, because that is all you will ever be capable of finding.

Name: Anonymous 2014-08-22 23:41

>>21
I-I've never been called a shitworm before! Why are you being so rude?

Name: Anonymous 2014-08-23 5:48

>>14
You just need to avoid making the mistake of including a header twice.

Name: L. A. Calculus !jYCj6s4P.g 2014-08-24 5:11

>>21
WADDA YA WANT YA FUCKIN MILKY BOI RETOID? GO FLAP UR BUTTCHEEKS ELSEWHERE

Name: Anonymous 2014-08-24 5:28

>>24
Shalom!

Name: Anonymous 2014-08-24 15:09

Well, in php, you have to start each file with <?php

In C header, you must start with #pragma once

Not that hard

Name: Anonymous 2014-08-24 16:53

>>26
In C header, you must start with #pragma once
I want to find you and remove your penis painfully

Name: Anonymous 2014-08-24 16:59

>>27
C is shit, let's face it.

Name: Anonymous 2014-08-24 17:56

>>27

Can you clean the smegma off my penis please

Name: Anonymous 2014-08-24 18:18

>>29
That's not penis punishment tho

Name: Anonymous 2014-08-24 20:00

>>30
I wouldn't feel comfortable at all.

Name: Anonymous 2014-08-24 20:11

>>30

But would you do it?

Name: Anonymous 2014-08-25 7:12

I'm trying >>8-sama, but there's too many of them! I can't intercept all of these flying peni. Argghh! Noooooooooooooooooooooooooo.....

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