×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Atelier 801
  • /
  • Hors-sujet
  • /
  • Programming
« ‹ 8 / 9 › »
Programming
Merk
« Citoyen »
1382992080000
    • Merk#0121
    • Profil
    • Derniers messages
    • Tribu
#141
  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.
Skinnyfatlegend
« Citoyen »
1384296660000
    • Skinnyfatlegend#2903
    • Profil
    • Derniers messages
    • Tribu
#142
  0
This looks pretty interesting. I might give it a shot since I always wanted to learn how to code
Siqv
1434444180000
    • Siqv#0000
    • Profil
    • Derniers messages
#143
[Modéré par Ediz]

Dernière modification le 1434444240000
Saelus
« Citoyen »
1434457140000
    • Saelus#0000
    • Profil
    • Derniers messages
#144
  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.
Thebndjames
« Citoyen »
1434464880000
    • Thebndjames#0000
    • Profil
    • Derniers messages
    • Tribu
#145
  0
Cheesehogga a dit :
Todorovski a dit :
Hello programmers! *-*
Here you can talk about the programming languages you know!
Everything is allowed-- From Paskal to Scratch, from C++ to Java, etc!
You can also share some programs/games/apps YOU made if you want to.
Also, if you need any help for your programs you can ask here.

Note: There's a free Javascript compiler online which is alot easier than the real Javascript .js programming. http://www.khanacademy.org/cs/

try codeacademy.com

_________

Html is easy. Im learning python command line and javascript from Codeacademy Its completly free

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!
Snow
« Citoyen »
1434467280000
    • Snow#3983
    • Profil
    • Derniers messages
#146
  0
In school were doing scratch but its too easy
Lisathecute
« Citoyen »
1434876960000
    • Lisathecute#0000
    • Profil
    • Derniers messages
#148
  0
I gave up on Khan Academy long ago
I prefer using BBcode to code signatures
But I know JavaScript basics
Eon
« Citoyen »
1435234080000
    • Eon#4262
    • Profil
    • Derniers messages
    • Tribu
#149
  0
JavaScript, HTML, CSS, PHP, Java, Python and Ruby.

Haven't made any games though, mostly just website stuff
Zetsuen
« Citoyen »
1435758660000
    • Zetsuen#0000
    • Profil
    • Derniers messages
    • Tribu
#150
  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.

http://s66.imgup.net/Untitled8620.png


I ran the code once and it showed up in the console as:
console a dit :
Computer: scissors
"Rock wins!"

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
Firestonnne
« Citoyen »
1435810620000
    • Firestonnne#0000
    • Profil
    • Derniers messages
    • Tribu
#151
  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.
Zetsuen
« Citoyen »
1435827240000
    • Zetsuen#0000
    • Profil
    • Derniers messages
    • Tribu
#152
  0
Firestonnne a dit :
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.

Ah, okay, that makes sense, thanks! I tested compare() in a function and it didn't show up in the console.
Desperauxq
« Citoyen »
1436857500000
    • Desperauxq#0000
    • Profil
    • Derniers messages
#153
  0
Good conversations.

Dernière modification le 1436859240000
Sea
« Censeur »
1436870760000
    • Sea#6504
    • Profil
    • Derniers messages
    • Tribu
#154
  0
i just learn hypo text markdown language
Desperauxq
« Citoyen »
1437008760000
    • Desperauxq#0000
    • Profil
    • Derniers messages
#155
  0
Good for you, I hope you will be a better at it by all mean.

Dernière modification le 1437011340000
Desperauxq
« Citoyen »
1437011280000
    • Desperauxq#0000
    • Profil
    • Derniers messages
#156
  0
- (duplication) -

Dernière modification le 1437011640000
Desperauxq
« Citoyen »
1438512060000
    • Desperauxq#0000
    • Profil
    • Derniers messages
#157
  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.
Apakalypse
« Citoyen »
1438633200000
    • Apakalypse#0000
    • Profil
    • Derniers messages
    • Tribu
#158
  0
Zetsuen a dit :
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?

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
  • console.log(compare(userChoice, computerchoice))

or directly used console.log in the function

Desperauxq a dit :
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.

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
Desperauxq
« Citoyen »
1438760460000
    • Desperauxq#0000
    • Profil
    • Derniers messages
#159
  0
Thank you for the advice! :D
Pydlua
« Citoyen »
1459488120000
    • Pydlua#0000
    • Profil
    • Derniers messages
#160
  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...
  • Forums
  • /
  • Atelier 801
  • /
  • Hors-sujet
  • /
  • Programming
« ‹ 8 / 9 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27