Programming |
0 | ||
Game maker.It is simple to use for a 12 years old kid like me.I made a game called Transformix. I update it every month. |
![]() ![]() « Citoyen » 1384296660000
| 0 | ||
This looks pretty interesting. I might give it a shot since I always wanted to learn how to code |
![]() 1434444180000
| | ||
[Modéré par Ediz] Dernière modification le 1434444240000 |
![]() ![]() « Citoyen » 1434457140000
| 0 | ||
Well, I'm sad this died. Funny it got brought up by a spam post though. Anyways, I'm currently working my way through learning XNA/MonoGame for C#. It's funny how difficult it is to learn MonoGame's version of the basic stuff that I've been doing for years with Pygame without any thought. |
![]() ![]() « Citoyen » 1434464880000
| 0 | ||
Cheesehogga a dit : Thanks for the site, It is interactive and helps learning fast! i don'tknow how i never heard about it! very amusig and educational in he same time! |
0 | ||
In school were doing scratch but its too easy |
![]() ![]() « Citoyen » 1434876960000
| 0 | ||
I gave up on Khan Academy long ago I prefer using BBcode to code signatures But I know JavaScript basics |
0 | ||
JavaScript, HTML, CSS, PHP, Java, Python and Ruby. Haven't made any games though, mostly just website stuff |
![]() ![]() « Citoyen » 1435758660000
| 0 | ||
Started learning JS yesterday using Codecademy. I don't really get how the return function works? There's a section where you code a game of Rock, Paper, Scissors, which uses the return function. ![]() I ran the code once and it showed up in the console as: console a dit : Why is "x wins!" showing up in the console when there's no console.log() in the compare function codeblock? Does return "x"; do the same as console.log("x");? Why are there apostrophes around the x wins in the console? In the past example of the return function, they only used it to return a numerical value. What other types of things can you return? Dernière modification le 1435758840000 |
![]() ![]() « Citoyen » 1435810620000
| 0 | ||
I don't know what browser / script host you are using, but the reason it is logging that is because whatever browser you chose is logging when values are returned at the global scope. It is not a console.log(), but rather just letting you know that a value was returned (used for debug). If you created another function, and put the compare() method in it, I do not believe it would show anything in the console as it is no longer in the global scope. This appears to just be a quirk of whatever script host you are using. The reason it is in quotes, unlike a console.log() is because it is printing the value (think variable declaration -- to declare a string you need quotes). The quotes let you know that it is a string, because, to answer your second question you can return any storable piece of data, whether it be a string, number, object, or even a function (since JavaScript treats functions as pieces of data that can be passed). But I could be wrong as I did not actually run your code myself. |
![]() ![]() « Citoyen » 1435827240000
| 0 | ||
Firestonnne a dit : Ah, okay, that makes sense, thanks! I tested compare() in a function and it didn't show up in the console. |
![]() ![]() « Citoyen » 1436857500000
| 0 | ||
Good conversations. Dernière modification le 1436859240000 |
0 | ||
i just learn hypo text markdown language |
![]() ![]() « Citoyen » 1437008760000
| 0 | ||
Good for you, I hope you will be a better at it by all mean. Dernière modification le 1437011340000 |
![]() ![]() « Citoyen » 1437011280000
| 0 | ||
- (duplication) - Dernière modification le 1437011640000 |
![]() ![]() « Citoyen » 1438512060000
| 0 | ||
Anyway, may I ask. What technology should I learn to go to intermediate level in learning Javascript and PHP? Which book is good in your learning experience? Just assume me that I don't have any prior programming experiences with Web development. Thanks in advance. |
![]() « Citoyen » 1438633200000
| 0 | ||
Zetsuen a dit : Even if firestonnne answered already: You can return any type of data really. A function can even return another function :p The reason it's logging automatically with that syntax is specific to CodeAcademy, don't worry too much about it. If you have any doubt in the future, you could just run the code yourself. There are many little "mistakes" like this on CodeAcademy, but it's still very good to get into web development. And if you spot these mistakes that means you're actually doing great aha. It's a mistake because the only reason it would log the result was if you wrote
or directly used console.log in the function Desperauxq a dit : Two choices, just some advice from my personal experience, as I never really used a book: 1) start a project (creating a little blog (displaying articles + comment system) should be a nice goal, then you should try to add a user/login system and even a backend if it feels too easy), and everytime you don't know how to do something (which will happen a lot), search on google and try to understand and implement the solution for your own needs. 2) Find a complete tutorial (written or even a video!) to build a website from scratch and follow it. Try to understand as much as you can instead of blindly copy/pasting the code. Either way, simply reading (a book or a website) / watching a video is not enough, you have to practice. Btw I don't know what you meant by "technology" but you should stick to the basics if you're a beginner. Last advice: try to find RECENT tutorials (google filters are your best friend) Just my 2 cents oh well just realised that thread wasn't actually very active nvm Dernière modification le 1438634160000 |
![]() ![]() « Citoyen » 1438760460000
| 0 | ||
Thank you for the advice! :D |
![]() ![]() « Citoyen » 1459488120000
| 0 | ||
Most of you is good at debating about the tools. However, are you deeply know about the tools you using? Don't look just for the future, we don't even't know programming will still be done by the human in that time anymore... |