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
Re: General discussion chat How insidious are you all. just freaking stop with the "ZOMGGGG HE GOT B&"
Re: General discussion chat I would normally disagree with you, however, the maturity of this forum has reach a critical low. So, I agree.
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.
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.
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.
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.
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.
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...