Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by Biske94

  1. Nice! Thank you LSW for your input! :)


    17 hours ago, LSW said:

    Have you ever heard this joke?: A boy stands in the study door watching his father peck away on a laptop. He then finds his mother in the kitchen typing away like a storm with all 10 fingers. He grunts and his mom looks up and asks him what he is grunting about. "I thought you were good at typing. But dad is better, he only needs two fingers."


    Hahaha I didnt, but a nice one!

  2. Hi everyone! I am conducting a research about styles of typing.

    I have asked some great programmers and experienced ones like Larry Wall (creator of Perl), Robert C. Martin aka Uncle Bob, college professors about styles of typing.

    I saw in one video (https://www.youtube.com/watch?v=S5S9LIT-hdc) Linus Torvalds touch typing but with his own style.

    I do myself touch type but with my style, and I have nice speed and everything. Speed and accuracy is something that you build only by practice, practice and more practice. But one question concerns me, should we type in some particular style so we dont get Carpal Tunnel Syndrome, repetitive strain injury or any other health problem ?

    And thats when I decided to conduct research, to get answers from people who coded all their life and from people who are experienced. I will post my research on my website when I launch it. 

    I would like if you guys want to be part of my research, as this can only benefit and help others, so we can improve ourself and also take care of ourselves.

    So here it goes:

    • Do you touch type?
    • If you touch type, do you do with your own style or you use 10 finger system?
    • Have you had any problems with your body(hands mostly or neck because of hunt and peck) while typing?


    Thanks, Your input will mean to me and others!

    • Like 1
  3. Answer:


    isset() is a function in PHP that will return true if the variable, in this case, $var has been assigned a value. If the variable has been created but nothing assigned, has the value of null or undefined, it will return false. basically, isset($var) says is this variable safe to use or not. 


    To explain the differences between a NULL value and an undefined

    //test 1 is defined, but has a value of null. isset will return false, use causes no error.
    $test1 = null;
    echo "\n----------\n\n";
    //test2 is defined with a string value. isset will return true
    $test2 = "test";
    echo "\n----------\n\n";
    //test3 is not defined, isset returns false and use causes error.

    Which will output:

    string(4) "test"
    Notice: Undefined variable: test3 in /in/Nmk0t on line 17


    I hope this will help those who asked the same question as I :)

  4. What does mean that variable is set or not set? (in PHP or general)

    Does that means:

    • // no var declared
    • $var;
    • $var = 'Some fancy string';
    • $var = ""; //(empty string)

    I dont know all fancy terms, but I do know when variable is defined, declared and all that, but I dont know what variable is set means.

    Thanks in advance, nerdz!

  5. Hi people! Since I couldnt get answers from Stackoverflow I desiced to ask you.

    Can someone explain how does these 2 functions work:

    1. class_exists()
    2. spl_autoload_register()


    Class exist function

    	echo "It does exists";
    class User {
    		Some code here
    // the output of file is "It does exists"

    So how does this function works? Scans whole file? Whole directory? I mean its called before I defined class.

    Spl autoload register function

    include 'functions.php'; // <- file where is the function class_exist('User') and spl_autoload_register()
    include 'db_config.php';
    include 'database.php';
    include 'user.php'; // <- Here is the class (User) 

    So how does this function work? Its before any of those files that are included, and still it does it work? Does it scans whole directory where it is or what? I am really confused.

    Thanks peeps!

  6. Hi i have encountered one quirk in PHP, and I was wandering if anyone can explain it to me.
    So writing this code gives me infinite loop

    public static function find_this_query($sql){
    			global $Database;
    			$result_set = $Database->queryFunction($sql);
    			$theObjectArray = array();
    			$var = $result_set->fetch_assoc(); // I put the whole array in $var
    			while($row = $var){ // and then I put that here
    				// some code here
    			return $theObjectArray;

    Buuuut this doesnt

    public static function find_this_query($sql){
    			global $Database;
    			$result_set = $Database->queryFunction($sql);
    			$theObjectArray = array();
    			while($row = $result_set->fetch_assoc()){ // here I just put method and everything works fine
    				// some code here
    			return $theObjectArray;

    So I just wanna know why.
    Thanks nerdzzzz!

  7. Okay this is a newbie question but I know how it works but I just want to know how.

    So this code for example:


        // do some stuff

    } else {

        // do some else stuff


    This if statement will only do its code block if submit button is clicked or in nerds language if $_POST['submit'] is set.
    So thats means that value of that submit button is NULL before clicking, but when we click that submit button we are giving it a value?

    For example

    <input type="submit" name="submit" value="someAwesomeValue">

    if I click this button its value will be 'someAwesomeValue' which means I set $_POST['submit'] value to 'someAwesomeValue'

    or in other words $_POST['submit'] = 'someAwesomeValue'


  8. Well thats nice story and question you got there fellow nerd. Everyone will give you a different answer, opinion, thoughts, advice and so on... so here are my thoughts, I hope they will help you.

    You see, I am 23 years old, and maybe few years back I didnt know what I wanna do in my life, what type of work, nothing. I went to ITC college for telecommunications and really I didnt like that. In the third year of my college I found out that I like programming, that I wanna do that do that, I wanna be programmer. Since I found out that I wanted to learn programming but I didnt have any directions, didnt know where and from who to learn from, nothing. So I got some books from the internet and started learning the HTML, CSS, JavaScript. I learned HTML and CSS but not JavaScript it was to complicated for me to learn it from the book, and I am a type of guy who likes to learn basics good, to know what that thing does what does the other thing does and so on. I took some classes on the internet, they helped, but not that much. So I decided to go to school in Serbia known as IT Academy, where in 12 months they learn you everything what a front-end, back-end programmer needs. I couldnt sing up for traditional classes (like going to school and learning) I signed up for online classes (you learn from your house through internet). I thought, I would learn there since classes are in Serbian language, I can ask them whatever I want and so on. And I learned there some things but still didnt know some basics stuff, I didnt have the feel that I mastered the basics, how do things  do and so on. I took some courses from udemy to help me little, I like to learn from multiple sources. And one day, I went to YouTube and found Stefan Mischook (my name is Stefan too :D), and watched his clips and liked it. I liked how he talked, objective and non-biased. Thats what I want to hear. And the way he talks is simple, he can talk some ultra-mega-giga nerd things and to translate them into non-nerd language for everyone to understand. I took his IWD (Interactive Web Developer course) and Python 3. I finished IWD and now I will do projects and later Python 3. I finally learned the basics, mastered them. I feel happy and satisfied. Now I know how things work, how request/response cycle works, OOP (Objective Oriented Programing) and so on.... in one word the BASICS. Once you master them, everything is easy. Its easy to build a house on the solid foundation, because the house wont collapse, same here with programming, you will be confident to continue forward because you know how things work.

    Now, what is the point of all this story that I have written? Well, its this. Find yourself, who you are, what you like, dont be a copycat of someone else, be yourself, be original. When you find yourself you will know what you love to do. And then you dont let go. You go pursuit your dreams. I found myself, fought and won over the depression and I found out that I love to program and I never stoped, even if I made mistakes. 

    If I founded Stefan a year back I wouldnt spend 1500$ on IT Academy.

    Find what kind of teacher you want, that appeals to you. Make your study room, your PC and everything  to the way you like to help you learn good.

    If you want to learn the basics, and how things work, I would suggest taking Stefans courses. 

    Write out 5 reasons why you want to learn programming, so when you lost your motivation and you look at you reasons you will get back on your feet.

    Since it is written in Serbian I will translate it for you.


    Why I want to learn programming and do that

    1) To help animals.

    2) To help people.

    3) To save and heal the nature.

    4) To become rich so I can afford for my mother, father, granma, grandad( I wrote wrong on the paper xD), Vuk (name the of my brother, translated it means Wolf) and Laki (name of my dog whose name is Lucky or Laki shortcut from Lazar in Serbian).

    5) Because that what I want to do. Because thats what I love to do.

    What are your reasons?

    I hope this helped! :) 


  9. Sorry for responding late.

    Well depends, since I live in Serbia, good drivers do know about mechanics of their cars. For instance, every slight changes on their cars they do feel it and know what is wrong. Of course many of them just know the basic stuff.

    Thats what I want, to know the basis of computers and something that a programmer needs to know about them



  10. Hmmm I didnt expierence that. Try some other internet browser to watch that clip.

    I would recommend you continue learning this course,  because I had great experience learning :)


  11. Hi people, I have one question about mysqli_fetch_assoc in a while loop.

    $query = "SELECT * FROM category ";
    $result = mysqli_query($connection, $query);
        while($row = mysqli_fetch_assoc($result))
            $cat_id = $row['cat_id'];
            $cat_title = $row['cat_title'];
            echo $cat_id . " " . $cat_title  ."<br>";

    So, how does $row = mysql_fetch_assoc($result) works?

    So it loops one row at a time from $results and stores that information in $row until it there is no row to return? 

    And this  mysqli_fetch_assoc($result) in while loop iterations is this " array(some rows that it got from $result) "?

    $row = mysqli_fetch_assoc($result) is same as $row = array(all rows from $result that are gathered by mysqli_fetch_assoc) ? 

    And that means $row is actually an array, and every time it loops the information is not overwriten by new instead it is added? 

    Sorry if i confused you with such questions :D

    Thanks in advance! :)



  • Create New...