? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content


I hate everything and everyone.
Fuck the world, the people.
Fuck the children, women, men.
Fuck politics, war, peace, money.
Fuck bullshit and startups.
Fuck stupids.

Fuck you.

Follow in NewsfeedFollowing

Latest comments:

Add new post


21 hours ago · 2 min read 0
Read more

[C++] You have one more bit to check it

on Mar 05, 2016

You know what ? I don't like C++. I prefer Ruby, Elixir. But sometimes, I have to program in C++. And when I do it, I code in C++. Not in something between C++ and Python or other fucking non-sense.

In Ruby for example, you have 2 classes: Fixnum and Bignum.

[1] pry(main)> 1.class
=> Fixnum
[2] pry(main)> 1000000000000000000000000000000000000000000.class
=> Bignum

There is no such concept as signed and unsigned values. I you do create an Array, and check it's size will be greater than 0. By definition. This is an internal process of Ruby

=> X # x is > 0

I admit someone inexperienced in Ruby, and in programming in general case, want to check if size() is not less than 0. It's a mistake, but even so, nothing unless the documentation can say "this is useless" (by the Ruby's nature).

But in C++, you compile your sources ! And g++, clang++, or even the ugly Microsoft Visual Shit compiler will say "Hey boy, what do you fucking do ? You compare a unsigned int with a signed ? You gotta kidding me"

c++ source -Wall -Wextra guys. It will make you better.

cf: https://github.com/namecoin/namecoin-legacy/


user_name1 day ago
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More