Ask a Stupid Question Day

We all have things we would like to know, and a good portion of us have things we feel like we already should know. :thinking: :question:

Yet for some odd reason, we seem to steer away from asking these questions. In reality though that just leaves us devoid of the knowledge we are wanting.

Some have felt so strongly about this fact to even go as far as making a holiday, and since the 1980s, on September 28 Ask a Stupid Question Day has been one to celebrate by asking these kind of questions.

We are all learners here, we all have our own interests, and more than likely we all have our own questions we would like to ask, so if you are curious about something, go ahead and ask a question today. :slight_smile:

In fact here is mine (or at least one of them) for the day :smile: :

I’ve been studying front end web development since April, yet I am curious about something. Is JavaScript the only language that web browsers can use for front end interactivity?


Why do people hate on python?


Well I suppose it depends on the specific person though there are a number of possibilities.

Though Python is easy to use very flexible and a powerful high level language, it does have its drawbacks.

Here are a few I can point out.

  1. It is not a precompiled language and as such can run a good deal slower if you are running a large program.

  2. This is the one that gets me. Its indentation system makes whitespace much harder to use, as compared to a language such as C++ that designates code blocks with brackets:

def add(n1, n2):
    new_number = n1 + n2
    return new_number
#    \ 
#    Whitespace indentation must march up throughout the code block
int add(int n1, int n2) {

int new_number = n1 + n2;
    return new_number

//Because brackets designate code blocks you can have mixed indentation. This allows much more flexibility.
  1. A lot of people, especially new users have trouble getting module to install properly, and I have seen a lot of irritation arise from the use of pip.

I’m sure there are a lot more reasons, but these are just a few off the top of my head, that I see as drawbacks.


Actually a good question :slight_smile:

I don’t think there are a lot of people who hate Python. But all programming languages there are pros and cons.

I used to like python a lot, years ago when I started programming. And I still like it, but less.

For me personally two major reasons are: Lack of static typing. Sure, python3.8 introduced some type hinting, but could be better. When your project starts to grow, its nice to know what type your arguments need to be and what type you get in return.

and secondly, lack of proper encapsulation in classes. Python as a language doesn’t enforce encapsulation. When working a lot of classes and inheritance, this can become very problematic

Don’t get me wrong, if I would need to build a simple web scraper (and other things), I would still use python, in fact, python might then be my first choice.

to add to @8-bit-gaming point here, speed is not the only factor. Compiling might also help to catch errors earlier (during compile) as oppose to on run time (when you actual run the program)


There is a web assembly, but I have done very little reading on the matter of late.

Doesn’t seem to gain a lot of popularity yet. JavaScript seems to have strong footing. But web assembly is certainly interesting to do some reading on :slight_smile:

This one!!! The amount of times I’ve had to redo my if statement conditions because I put 3 spaces instead of 2.


That is actually really smart, and could be very helpful too!

Can I ask what is encapsulation?

1 Like

Or when you get an error that tells you off for using tabs and spaces-when, to you anyway, the indenting looks the same. Argh!


A language like Java has 4 levels of access protection for class properties and methods:

only public properties and methods can be accessed on a class instance.

protected methods and properties can be accessed by child classes. And so forth

from stackoverflow:

Python does not support access protection as C++/Java/C# does. Everything is public. The motto is, “We’re all adults here.” Document your classes, and insist that your collaborators read and follow the documentation.

I think a language should enforce the access. Otherwise developers could abuse the intended access.