General discussion

Discussion in 'General Off-Topic' started by Car crusher, Apr 4, 2014.

  1. Koenigsegg

    Koenigsegg
    Expand Collapse

    Joined:
    Jun 24, 2014
    Messages:
    217
    Re: General discussion chat

    2bb.jpg ​pls no ban
     
  2. logoster

    logoster
    Expand Collapse

    Joined:
    Sep 5, 2012
    Messages:
    2,084
    Re: General discussion chat

    the hell did you guys do, i just went to go eat dinner, i come back and micro-blogs are gone with 3 people being banned as well

    EDIT: well, dummies has just informed me it's 3 people who have been banned

    seriously the hell happened here
     
  3. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,696
    Re: General discussion chat

    three lol
     
  4. Koenigsegg

    Koenigsegg
    Expand Collapse

    Joined:
    Jun 24, 2014
    Messages:
    217
    Re: General discussion chat

    85585-youre-all-gonna-get-banned-gif-pvrx.gif ​aaaaa
     
  5. JackAttak

    JackAttak
    Expand Collapse

    Joined:
    Sep 12, 2013
    Messages:
    567
    Re: General discussion chat

    Your GIFs aren't helping...
     
  6. VeyronEB

    VeyronEB
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,537
    Re: General discussion chat

    tdev.




    You missed someone.
     
  7. Kitteh5

    Kitteh5
    Expand Collapse

    Joined:
    Oct 24, 2012
    Messages:
    275
    Re: General discussion chat

    True dat. Really missed.
     
  8. daniel_j

    daniel_j
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    334
    Re: General discussion chat

    How insidious are you all.
    just freaking stop with the "ZOMGGGG HE GOT B&"
     
  9. redrobin

    redrobin
    Expand Collapse

    Joined:
    Aug 21, 2012
    Messages:
    606
    Re: General discussion chat

    I would normally disagree with you, however, the maturity of this forum has reach a critical low.

    So, I agree.
     
  10. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,696
    Re: General discussion chat


    (imported from here)
     
  11. TheAdmiester

    TheAdmiester
    Expand Collapse

    Joined:
    Aug 7, 2012
    Messages:
    579
    Re: General discussion chat

    It dawned on me today that even though a lot of people (rightfully) think of this thread as a cesspit, it's probably helping in keep the "less good" posts away from other topics.

    I hope that when the dev blog that tdev uses comes back, they set it up in some way that only devs have permission to post in it, or it gets locked after every post just so that only their posts are shown.
     
  12. clayton8or

    clayton8or
    Expand Collapse

    Joined:
    Aug 26, 2013
    Messages:
    1,052
    Re: General discussion chat

    Speaking of bans... :O Potato's gone for the time being... gg
     
  13. Wheelie

    Wheelie
    Expand Collapse

    Joined:
    Feb 1, 2013
    Messages:
    270
    Re: General discussion chat

    Why don't they just use something akin to the regular blog format, just more casual somehow? That way there can be a way to reply to the posts without it derailing like every other thread on this forum.
     
  14. TheAdmiester

    TheAdmiester
    Expand Collapse

    Joined:
    Aug 7, 2012
    Messages:
    579
    Re: General discussion chat

    I'm guessing that blog posts possibly need manual formatting and/or something else that just results in it being more work for them. Forum posts, however they're done, are a bit easier to set up and post.
     
  15. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Re: General discussion chat

    Is this sample code or your code?


    I see several mistakes here.

    First of all. PHP. All lines (except an if statement or loop statement) are terminated with a semi colon ( ; ).

    Second issue. $first = ['firstnumber'], the square brackets indicate an array index, yet you have not named an array and chances are you don' have an index named firstnumber either (array indexes are usually numeric too, although PHP allows a string).

    Third issue. The comparison themselves. You are *LITERALLY* comparing the strings 'firstnumber' and 'secondnumber', you never want to do that in programming as if you are writing an if statement for data that doesnt change then why is it an if statement. You should be comparing the variables $first and $second to compare their contents.

    Quick Python example for the 3rd issue:
    Code:
    age = 17
    minimumForumAge = 16
    
    if 17 > 16:
        print "Why bother doing this. You have hard coded the values 16 and 17"
        print "you know as the programmer that 17 will always be bigger than 16, its not worth sticking this code in an if statement as a result"
    
    if age > minimumForumAge:
        print "this is much better"
        print "if the variables age and minimumForumAge weren't hardcoded as they have been here and instead were user inputs to the program"
        print "then you as the programmer don't know whether age is greater than minimumForumAge or not"
        print "the if statement is useful again"
    
    Final issue.
    String concatenation. echo $first . "" . "is greater than " . " " . $second
    Bit waffly. There are 2 alternative methods to do this.
    First: echo $first . " is greater than " . $second;
    Second: echo sprintf("%s is greater than %s", $first, $second);

    Another problem isnt so much a problem as it is a bit of an oddity. Comparing strings. Not so common. Depending on the programming language, the interpreter or compiler used and the system run on, string comparisons arent always the same. Usually the only ones useful to a string are equal and not equal. Greater than and less than arent so useful.
    And a final insignificant problem. Curly braces. Quite often the code run by an if statement will span multiple lines, so to mark these lines they are surrounded by some curly braces, you don't technically need them in your code but I personally prefer to always use them.


    Final PHP code fixed to how I think it was supposed to have been.
    Code:
    <?php
    $first = 6677;
    $second = 42;
    if ($first > $second) {
        echo $first . " is greater than " . $second;
    }
    elseif ($first == $second) {
        echo $first . " is equal to " . $second;
    }
    else {
        echo $second . " is greater than " . $first;
    }
    ?>
    


    Finally. Programming course for newcomers, PHP. Those do not belong on the same planet. PHP is a language full of horrid little gotchas, not newcomer friendly at all, particularly the way it typically needs to be run within an HTML doc hosted on a proper webserver (requiring extra additional knowledge). Java, C# or Python for newcomers are my opinion.
     
  16. Koenigsegg

    Koenigsegg
    Expand Collapse

    Joined:
    Jun 24, 2014
    Messages:
    217
    Re: General discussion chat

    lol. You thanked my gif post at first. So true ​that
     
  17. redrobin

    redrobin
    Expand Collapse

    Joined:
    Aug 21, 2012
    Messages:
    606
    Re: General discussion chat

    Tell me about it. Don't worry though, I got it all fixed up and it runs flawlessly now. We did some Python in the first half of the programming class. After PHP, we're moving on to something based around C, can't remember what it's called. After that, it's XNA.
     
  18. Wheelie

    Wheelie
    Expand Collapse

    Joined:
    Feb 1, 2013
    Messages:
    270
    Re: General discussion chat

    bet that really made you feel like a badass, didn't it?
     
  19. Nickorator

    Nickorator
    Expand Collapse

    Joined:
    Sep 21, 2013
    Messages:
    320
    Re: General discussion chat

    Imo the whole Micro-blogs thing is meant for somewhere else anyways. They have a BeamNG twitter account... this kind of thing is what Twitter is meant for. It may not be very popular right now but that's because they don't use it. I think that would be a great place for this kind of thing. Obviously we can't handle being able to say 140+ characters on the forums so that may end better...
     
  20. 14ramosr

    14ramosr
    Expand Collapse

    Joined:
    Sep 7, 2013
    Messages:
    979
    Re: General discussion chat

    *sighs* really guys?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice