Re: My coding journey

2020-08-23 Thread AudioGames . net Forum — Developers room : ogomez92 via Audiogames-reflector


  


Re: My coding journey

Hi, Just a couple of things.If you're giving up a language just because oh, undefined isn't viery helpful so i'm going to python instead, it's not really a good start.Also, don't get discouraged by html tables, cheating isn't doing you any good. If you really want to learn how html works, why not try to grasp tables' It'll be a lot more useful in the long run, Markdown isn't going to help you when you're out there building websites.hth

URL: https://forum.audiogames.net/post/563902/#p563902




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: My coding journey

2020-08-23 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector


  


Re: My coding journey

You do need to worry about semicolons in _javascript_ because there are weird parser edge cases that I forget the details of offhand.  There's a reason everyone bothers adding them.

URL: https://forum.audiogames.net/post/563888/#p563888




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: My coding journey

2020-08-23 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector


  


Re: My coding journey

Hi mate,Glad you're enjoying Python, and it actually came as quite a surprise that you found one of my posts helpful haha.With the whole _javascript_ thing, it's actually not as bad as it might first appear. You can check if something's undefined with:if (obj.name === undefined) {
  console.log('You can think of console.log like print() in Python.')
}Also, you don't need to worry about semicolons in _javascript_, they're optional, and in fact ESLint bitches about them by default.Finally, glad I'm not the only one who learnt HTML and _javascript_ with a BrailleNote haha. I'd love to say I have fond memories, but I don't... I remember crashes, and incompatability.

URL: https://forum.audiogames.net/post/563835/#p563835




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


My coding journey

2020-08-22 Thread AudioGames . net Forum — Developers room : devinprater via Audiogames-reflector


  


My coding journey

So, I wanted to document my coding journey somewhere with a lot ofhelpful people around. I started with HTML years ago, but never didgrasp _javascript_ at an early age. I could do headings, and the basiclayout of a page. I could even link to a second page. To my seventhgrade mind, which was probably closer to a normal fourth-grader, thatwas pretty freaking cool on a BrailleNote MPower.Moving on, I was taught a bit of Quorum in high school, because that’sobviously a great way to lead to knowledge of a programming languagethat is employable in a job with other coders who aren’t blind.Anyways, I was kinda good at that, but we just got one year of that,and it may have only been one semester, I don’t quite remember. Afterthat, I didn’t do much programming until like last year really, wherean office job gave me plenty of time to learn new stuff.My first thought was to use Free Code Camp. I’d previously used it tolearn more HTML, and with that, finally overcome HTML lists. Although,tables are still a bit more than I want to deal with so I cheat andwrite them in Markdown and convert it with Pandoc. Thank goodness for Pandoc!So I got into the _javascript_ course, and it was pretty good at first.The console.log part of things kind of … threw me off a little, as atrainer I knew new students may not grasp that that’s just basicallythe output of the program, but I stuck with it. Then post 42 on thisthread:https://forum.audiogames.net/post/563590/#p563590showed me that _javascript_ errors can be very unhelpful, giving just“undefined” when a function name is typed incorrectly, which undefinedcould have meant anything was broken or not defined, and so I thoughtI’d turn back to Python.I have the latest Automate the Boring stuff book. I’ve gotten rid ofthe annoying Unicode line numbers, and will be trying to work on thatmore. I’ll try doing a bit more with the code I’m supposed to type,rather than just typing it exactly. For example, here is the programfrom the book:#+begin_src python# This program says hello and asks for my name.print('Hello, world!')print('What is your name?')# ask for their namemyName = input()print('It is good to meet you, ' + myName)print('The length of your name is:')print(len(myName))print('What is your age?')# ask for their agemyAge = input()print('You will be ' + str(int(myAge) + 1) + ' in a year.')#+end_srcYes I’m doing this with Emacs, because my Mac’s battery life is betterthan the PC and I’m not at my desk. Anyways, here’s what I did to sortof augment that:#+begin_src pythonprint("Hello, world.")print("What is your name?")myName = input()print("It is good to meet you, " + myName)print("The length of your name is " + str(int(len(myNameprint("What is your age?")myAge = input()print("You will be " + str(int(myAge) + 1) + " in a year.")#+end_srcSo, that’s 8 lines, instead of line 11 for the original. This helps mesort of get an idea of how things work. And I probably could have madeit shorter, maybe put input inside the print statements? Anyways,Python is a lot more helpful, to me at least, and no semicolons to getin the way, and hopefully error messages will never be as cryptic asjust “undefined.” I don’t know how far I’ll get with programming, butI do know I want to automate things, and eventually make a game ortwo, or NVDA addons, and maybe Jango can be somewhat as good as_javascript_ in web development, so I could run Python web apps on iOSor something. I just know that I want my tools to help me out a bit.That’s why I primarily choose VS Code over Emacs, Windows over Linux,and iPhone over Android. And now, unless there is an answer to theissue of awful error messages, Python over _javascript_.

URL: https://forum.audiogames.net/post/563780/#p563780




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector