5
9 Comments

Where to go for coding help?

I have a PHP question I'd like to ask, when I ask on StackOverflow I'm told it's the wrong place, where do you guys go for theory based/help with programming?

IndieLlama, A front end developer...

  1. 4

    Most of the time you should ask google.
    People on StackOverflow are really aggressive and have zero patience for beginners.
    If you want how to do something more complex and not a specific question sometimes youtube itself is a great source of information.
    For example " how to create a login system in PHP ".
    Good luck.

  2. 2

    I'm old school, so the first thing I think of is IRC :-P It's hit or miss, but if you catch someone at the right time, they might get into a great discussion with you.

    Reddit can also be good, just gotta ignore the almost guaranteed hate and pointless responses.

    Quora also seems like it could be useful. My expectation of Quora is occasional great responses mixed with people who give one sentence about the topic to pseudo-spam or to fake expertise for marketing.

    You could always try here. Most of us are more focused on getting products out, but I think we can easily get sucked into technical discussions ;-) I'm a sucker for Ruby talk, for example.

    And, of course, you can try the depths of Google, or free courses or articles about your topic.

    1. 1

      Thanks @Andrew, I've never used IRC but sure, I'll give them all a try! I've been googling since 9am 8-)

  3. 1

    I would say you should ask Google.
    What was your PHP question btw ?

    1. 1

      Yeah i just cant think of how to phrase the question on Google haha

      I have a table structured like so...

      ID NAME LEVEL
      0 Steve 0
      1 Tom 1
      2 John 1
      3 Clare 1
      4 Liam 2
      5 Hank 2
      6 Brian 3

      I want to write a query that will pull the last 10 records, but NOT more than 1 with the same level.

      I want to write something that says

      Brian is better than Hank... (Hank has now been used)
      Liam is better than Clare... (Clare has now been used)
      John is better than Steve...

      Does this make sense?

      I've used

      SELECT * FROM mytable
      GROUP BY LEVEL
      ORDER BY ID DESC
      LIMIT 10;

      that works to an extent, but it doesn't let me compare the users, so currently it just pulls 1 user from each group.

      1. 1

        I'm not sure if your question is PHP or MySql but why you not use WHERE and set users wihch are in the same level in an array, then you will be able to compare them as you want.

        For example:

        $level_0 = [] ->>> SELECT * FROM mytable WHERE LEVEL = 0 ORDER BY ID DESC
        $level_1 = [] ->>> SELECT * FROM mytable WHERE LEVEL = 1 ORDER BY ID DESC

        $level_1[0] is better than $level_0[0];

  4. 1

    If it's related to a specific code project, try seeing if they have a https://gitter.im/ channel setup.

    A quick Google for PHP Gitters shows up this article https://medium.freecodecamp.org/best-gitter-channels-php-867f93321da2

  5. 1

    What? SO being the wrong place? You gotta be kidding! Anways, what was your question?

  6. 1

    This comment was deleted 8 years ago