Lolno

Isaiah Robinson
Isaiah Robinson

german textbooks are good
lolno

Do I have to throw this into le garbage?

Christopher Lee
Christopher Lee

Gedrueckt

Sounds like you got rekt in German m8

David Jackson
David Jackson

Nah throw yourself in the bin m80

Kayden Jenkins
Kayden Jenkins

if(1)
return 1;
else
return 0;

Jaxon Cooper
Jaxon Cooper

German textbooks are the worst, just like talking to german devs:
Klasse
Routine
objektorientiertheit
Variable
Zeiger
Eingabe
Ausgabe
Entwicklungsumgebung

Can't get shit done when you're not willing to lock yourself down to about potentially max 10.000 devs to work with. Every international person looking into your Quellcode (ein Wort) would say 'hell nah'.
Sadly every dev coming from university thinks like this. They don't even understand me when I say 'class'...

Die meisten Deutschen sind so oder so ueberempfindliche Moechtegernsnitches mit zu viel 'Illegaldenke' ("Sie duerfen hier nicht parken! Das ist illegal!" - "Wohnen sie hier?" - "Nein" ................, "Du darfst das Buch nicht abfotografieren, das ist illegal!" (sic!)) die deine Zeit nicht wert ist zu teilen.

I'm bored. Germany is boring. fuckenfucken

Lucas Ward
Lucas Ward

lel... germans usually integrate foreignspeak in their language pretty fast. however, some books are aimed at people that don't have fluency in english.

Julian Fisher
Julian Fisher

ged rueckt kiddo

Landon Mitchell
Landon Mitchell

Das Gesindel, dem einfache Regel der Gesellschaft zu komplex oder abstrakt erscheinen und die den ehrlichen und guten Bürger für seine vorbildlichen Tugenden verhöhnen, ist nicht nur eine Schande für unsere Spezies, sondern sollte ohne wenn und aber auf die härteste erdenkliche Art und Weise bestraft und bei Wiederholter Auffälligkeit von unserer geliebten Mutter Erde entfernt werden. Insbesondere sollte dieser Abschaum es sich nicht anmaßen den fachspezifischen Einsatz meiner geliebten Muttersprache zu kritisieren.

Sie sind, mit Verlaub, nicht nur eine Schande für das Internet, sondern sogar für diese Seite, auf der Sie es geschafft haben im Meer der Idioten, das Cred Forums ist, hervor zu stechen.

Btw. I tried to make this a rhetoric mix of ns and roman rethoric used by Göbbels/Cicero. I know it sucked.

Colton Perez
Colton Perez

hitlers gonna hitl

Julian Carter
Julian Carter

(1 << 4) == 1

Cameron Turner
Cameron Turner

1<<4 != 1 you brainiet.

Blake Jones
Blake Jones

could be easily optimised to:

return !!(PIND & (1 << 4));

Isaac Phillips
Isaac Phillips

Gehäuse, Netzteil, Rechner, Hauptplatine, Grafikkarte, Festplatte, Laufwerk, Lüfter, etc.
See? Nothing wrong with hardware.

Now, repeat after me:
Zeiger instead of pointer
Feld instead of array
Stapelspeicher or Kellerspeicher instead of stack
Warteschlange instead of queue
Prioritätswarteschlange or Vorrangswarteschlange instead of priority queue

but hey, you can still use heap, there is no German equivalent (Haufen?)

Camden Green
Camden Green


Alle Programmierbücher sind trash

Henry Butler
Henry Butler

mfw the text is telling you to GET REKT

Xavier Taylor
Xavier Taylor

is this written by Jürgen Wolf?

Grayson Turner
Grayson Turner

Aren't germans supposed to be good at engineering?

Cooper Collins
Cooper Collins

return (PIND)&1

Tyler Sanchez
Tyler Sanchez

not anymore, I fucking suck at it

Liam Bailey
Liam Bailey

1) I enjoy koders looking at shit like this and not understand what is happening. Thank you for that. Pick up the uprocessor's manual to understand.

2) it's a textbook. It is supposed to help you learn how the function works. Sure it could be done in a line, but what would you take from that?

Zachary Torres
Zachary Torres

What happened to the great German ingenuity?

Leo Sullivan
Leo Sullivan

Less code is not always better.

Henry Jackson
Henry Jackson

I dunno
I think a lot has to do with the fragmented and broken school system, third world countries are outcompeting us in tests. I quickly lost interest in math and physics as a kid because of it despite being rather good and interested in it at that time

Alexander Cook
Alexander Cook

snowflake

Brandon Perez
Brandon Perez

Schools really encourages snowflake behaviour though

Benjamin Hall
Benjamin Hall

School system depends on the state...northern provinces like nrw, brb are more fucked up

Isaac Watson
Isaac Watson

especially Bremen, worst score and funding is nonexistent
and the best thing is that a degree in Bremen is worth less in job interviews than NRW for example

Zachary Taylor
Zachary Taylor

third world countries are outcompeting us in tests. I quickly lost interest in math and physics as a kid because of it

That makes no sense... What tests did you take as a kid that made you compete with kids in third world countries?

Elijah Parker
Elijah Parker

especially Bremen, worst score and funding is nonexistent

So which is the best state to be in if I'm looking for models willing to pee on me in exchange for wood workings?

Carson Rivera
Carson Rivera

willing to pee on me in exchange for wood workings?

None

Tyler Garcia
Tyler Garcia

I referred to the OECD PISA test, where pupils worldwide are doing the same test and then compare the countries
Bremen, some areas in Berlin and most eastern cities

Isaiah Foster
Isaiah Foster

Underrated

Levi Sanchez
Levi Sanchez

You do realize the compiler will optimize this?

Elijah Gomez
Elijah Gomez

imagine missing the point this hard

Xavier Scott
Xavier Scott

We use "Menge" instead of "Haufen" for heap

Samuel Nguyen
Samuel Nguyen

That's indeed the case without optimization, where this results in branchless code (test + setne on x86, cmp + moveq/movne on ARM).
As said, with optimizations activated both your and OP's code get transformed to

return (PIND >> 4) & 1;

instead.

Isaiah Ramirez
Isaiah Ramirez

Nicht im Zusammenhang zum Prozessheap, Menge wird eher als Datenstruktur gesehen.

e.g. heap and set.

Mason Thomas
Mason Thomas

Is this actually C? Is it even a language that compiles to normal instructions? Given the stuff about pins and LEDs I'd guess either Arduino C or some FPGA stuff that "compiles" down to logic gates and not machine language.

Nolan Martinez
Nolan Martinez

p good, but needs to be more verbose

Owen Collins
Owen Collins

retard

return (PIND)&1;

Joshua Lewis
Joshua Lewis

All sensible optimizations. However, textbook code is often not aimed at efficiency and optimization, but clarity and accessibility to novices.

Gavin Brown
Gavin Brown

wasting time on ineffective micro optimizations

Juan Thomas
Juan Thomas

Wieder was gelernt

t. Sekretär der die firmeninterne Datenbank pflegen darf

Brayden Gomez
Brayden Gomez

Guter Anfang aber den vibe konntest du nicht halten. Wurde dann wie ein gestzestext und dann wie ein passiv aggressiver wutbürger Text

Brody Davis
Brody Davis

This. It's not 1970 anymore. Compilers are smart enough to optimize these things for you, and CPUs are fast enough that it doesn't matter most of the time. Write code that's clear, and if it performs poorly look for ways to optimize it considering what the compiler already does.

Carter Smith
Carter Smith

Danke für Ihr Feedback. Ich werde versuchen es zu berücksichtigen.

Disable AdBlock to view this page

Disable AdBlock to view this page

Confirm your age

This website may contain content of an adult nature. If you are under the age of 18, if such content offends you or if it is illegal to view such content in your community, please EXIT.

Enter Exit

About Privacy

We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners.

Accept Exit