Author Topic: Are there any easy programming languages to learn?  (Read 1290 times)

Im a huge fan of java script. Most people dont give a forget lol, but im loyal.

Im a huge fan of java script. Most people dont give a forget lol, but im loyal.
^^^

Im a huge fan of java script. Most people dont give a forget lol, but im loyal.
Yeah same here
I cant make most programs because I dont have the logical mindset to assemble the code, but its pretty easy to understand
Isnt JS a part of ECMAscript?

I'd appreciate if you could give me an example as to what organized/well written code would look like.
I'd like to think this is understandable

def update_info(self):
    """
    Updates the bot's info.

    It makes a request to the Telegram API method getMe for your bot. So, it
    can take a second, and you probably shouldn't use this in any situation
    where getting a result is time-sensitive (e.g. for a web application).

    This method is used in :py:meth:`__init__()` if initial_check is True.
    """

    r = requests.get(self.url + 'getMe')
    if r.status_code == 200:
        response = json.loads(r.text)
        if response['ok']:
            bot_info = response['result']
            self.user_id = bot_info['id']
            self.first_name = bot_info['first_name']
            if 'last_name' in bot_info:
                self.last_name = bot_info['last_name']
            if 'username' in bot_info:
                self.username = bot_info['username']
        else:
            raise TelegramError('The result was not "ok"')
    else:
        raise TelegramError('Did not get a 200 response', r.status_code)


it's a method that is part of a class, so "self" refers to the instance of the class that was used to call it
if you don't know anything about python's syntax, you'll probably still have a hard time understanding all of it
and if you don't know anything about the Telegram API, you probably won't understand exactly what it does
but most of it is relatively clear. it sends a request a web site, and sticks the information from the response into the object
Isnt JS a part of ECMAscript?
javascript is an implementation of the ECMAScript specification

I wouldn't put torque script in the pile of easy languages to learn lol.

Going off of what Foxscotch is saying, concise code and good documentation make a huge difference in being able to understand code. Programmers constantly have to work with code written by someone else who may think in a different manner than they do. If the author cannot express their ideas such that someone else can easily understand then you will quickly have an unmaintanable code base, and if the person who wrote it leaves you may be put in a position where you have code that can no longer be used and will have to rewritten.

Going off of what Foxscotch is saying, concise code and good documentation make a huge difference in being able to understand code. Programmers constantly have to work with code written by someone else who may think in a different manner than they do. If the author cannot express their ideas such that someone else can easily understand then you will quickly have an unmaintanable code base, and if the person who wrote it leaves you may be put in a position where you have code that can no longer be used and will have to rewritten.
Agreed 100%.
Still it's also important to remember that code not being clear to an individual cannot always be blamed on the writer for being unclear.

Also, don't compare two things that do different things from different languages. If you want to compare or contrast, you have to find brown townogous examples of similarly formatted code with an equal level of documentation.

Still it's also important to remember that code not being clear to an individual cannot always be blamed on the writer for being unclear.
I can't think of many situations at all where it couldn't be blamed on the writer, aside from situations where the code is doing something specific that most people know nothing about (like using the Telegram API for instance)

The easiest way to learn coding is with a calculator. It's definitely a good way to learn!




OOP can eat a richard
I will fight u on the roof at 3:00 AM be there

Python is pretty readable and simple for basic scripts and things