Jump to content

  • Log In with Google      Sign In   
  • Create Account

Sik_the_hedgehog

Member Since 31 Jan 2009
Offline Last Active Private

Posts I've Made

In Topic: O(pow(N,12))

24 October 2014 - 07:24 PM

 

So much for an 80 column limit.

 

Fits on a dual screen monitor, so it must be okay. ph34r.png

 

Pft novice, didn't you learn that three monitors is the way to go? (I've actually seen people going that way...)


In Topic: Does Valve have a good working methodology?

19 October 2014 - 10:29 PM

The problem there was that without any formal structure then people would indirectly start forming their own unofficial power relationships. In other words, it's essentially unavoidable, we're going to end up with that at some point. (interestingly, this says something about politics as well, since it's exactly the same issue)

 

Honestly I'd still assign titles and such (because let's face it, the amount of people who can do everything is close to nil), but not make them "hard", i.e. if something requires them to do something out of their assigned job then let them do it (and adjust the credits appropriately). Basically, give it some organization but allow it to change easily as the needs change. Probably not as easy with large teams, but that's just another reason to avoid large teams ;P


In Topic: What a web I Weave !

17 October 2014 - 05:11 AM

OK tell me which of these two is easier to read:

 

void accelerate_object(Object *obj, int32_t speed, int32_t cap) {

   // Going right?

   if (speed > 0 && obj->speed < cap) {

      // Increase speed

      obj->speed += speed;


      // Hit the speed cap?

      if (obj->speed > cap)

         obj->speed = cap;

   }


   // Going left?

   else if (speed < 0 && obj->speed > -cap) {

      // Increase speed

      obj->speed += speed;


      // Hit the speed cap?

      if (obj->speed < -cap)

         obj->speed = -cap;

   }

}
 
void accelerate_object(Object *obj, int32_t speed, int32_t cap) {

        // Going right?

        if (speed > 0 && obj->speed < cap) {

                // Increase speed

                obj->speed += speed;


                // Hit the speed cap?

                if (obj->speed > cap)

                        obj->speed = cap;

        }


        // Going left?

        else if (speed < 0 && obj->speed > -cap) {

                // Increase speed

                obj->speed += speed;


                // Hit the speed cap?

                if (obj->speed < -cap)

                        obj->speed = -cap;

        }

}

 

Also I'm seriously tired of people using wide screens as an excuse to make lines longer and that it's fine. It gets harder to read when text stretches too long horizontally.

 

And editing indentations on a non-programmer editor sucks no matter what, tabs or spaces. You're forced to edit indentations in every line manually (no indentation of an entire selected block) and if you start a new line you have to add indentation on your own (because the program won't add it).

 

EDIT: ...also the editor botched it and added blank lines between each line in that source code. Assume those aren't there :v


In Topic: What a web I Weave !

17 October 2014 - 04:21 AM

Then you want to look source code in something other than a text editor that was designed with programming into account (e.g. some code snippet on a page on internet), and you're screwed because every other program assumes that tabs are 8 spaces wide, which makes indentation unreadable no matter what (it just indents way too much).


In Topic: Ads impersonating GDNet

17 October 2014 - 12:52 AM

Oh wow, just tried and I bugged it up pretty hard. I tried loading the console just to see, and indeed the ad refreshed... back into the same ad. Meaning it completely failed to dodge it. Good job. (also if you can't get that situation to happen, the ad is its own frame, you can still examine its source code and it won't be able to tell you did)

 

For the record, detecting if the console is open turns out to be rather simple: just check the height difference between the window size and the document size (outer height vs inner height). If the difference is large enough it probably means the console is opened.


PARTNERS