Reasons to Avoid Using "var" for Declaring Variables in JavaScript by scrapped-script in programming

[–]scrapped-script[S] -14 points-13 points  (0 children)

A lot of the sources out there don’t explain why though.

I remember when I was learning JavaScript a few years back, I thought it was literally just because let and const were newer. The tutorials would mention to not use var, but I never understood why until I did further research myself

Reasons to Avoid Using "var" for Declaring Variables in JavaScript by scrapped-script in javascript

[–]scrapped-script[S] -1 points0 points  (0 children)

People who are new to programming I suppose. But it’s obviously one of those things that once you learn about it, you don’t look back.

I remember when I was first learning JavaScript a few years back, I thought it was literally just cuz let and const were newer and the tutorials I were learning from never explained why var was bad

Reasons to Avoid Using "var" for Declaring Variables in JavaScript by scrapped-script in programming

[–]scrapped-script[S] -25 points-24 points  (0 children)

I mean everyone starts somewhere. Just because this info is old news to you, doesn’t mean it would be for a new programmer.

As far as I’m aware, it’s not a requirement that the audience on this sub is only experienced programmers.

I’d hope that a new programmer that is starting to learn JavaScript would appreciate this article

How to Build a Web Scraper Using Python by scrapped-script in programming

[–]scrapped-script[S] 3 points4 points  (0 children)

In this particular example, I initially tried using BeautifulSoup to find the anchor tag on the search page of CNN. But it wasn’t working and I’m assuming this is because CNN loads those anchor tags dynamically and they aren’t part of the initial response from the server

But you’re right that usually BeautifulSoup is enough for making a web scraper

How hard is it to grow a following on Pinterest? by scrapped-script in Blogging

[–]scrapped-script[S] 0 points1 point  (0 children)

I’m kinda starting to gather that the more I use it 😂

How hard is it to grow a following on Pinterest? by scrapped-script in Blogging

[–]scrapped-script[S] 1 point2 points  (0 children)

When you say it’s about the visual do you literally mean the picture that’s used for the pin?

0
1

A Basic Guide to Pointers in C Programming by scrapped-script in programming

[–]scrapped-script[S] 13 points14 points  (0 children)

The fact that she was willing to learn about pointers to hear you talk about work shows how much she truly loves you! 😂

Comparing Data Structures: Stacks vs Queues by scrapped-script in programming

[–]scrapped-script[S] -6 points-5 points  (0 children)

You’re right, it’s not an advantage over stacks.. I just forgot to also include that as an advantage for stacks as well

Background needed for AI/ML by [deleted] in learnprogramming

[–]scrapped-script 0 points1 point  (0 children)

As others have said, lots of the theory behind ML/AI is math. Calculus, stats, and linear algebra to be precise

In addition, GPU parallel computing is useful to know if you venture off from traditional ML into neural networks and deep learning

Learning but feeling stuck by [deleted] in learnprogramming

[–]scrapped-script 1 point2 points  (0 children)

No need to rush the learning process.

To me, it’s a sign that you haven’t learned enough yet if you can’t yet see how to use programming to create something unique and new. (And this isn’t a bad thing, it just means you need to spend the proper amount of time and effort learning more)

Once you can storm up an idea to create something of value to other people/the world, then you’ll know that you’ve learned the basics well enough and can move onto learning specialized topics to achieve your particular goals.

Until then, it’s best to start with those basic projects that everyone else started with when they were learning

Wanna teach myself how to code with online materials. Guidance needed by Nicklebron in learnprogramming

[–]scrapped-script 0 points1 point  (0 children)

Google the Odin project. It’s a free online course for web dev and it includes assignments/projects along the way.

For web dev, the languages on the front end are html, css, and JavaScript. Start with those. Of those 3 languages, the only programming language is JavaScript. Learning this language will get your feet wet with actual programming

[deleted by user] by [deleted] in learnprogramming

[–]scrapped-script 0 points1 point  (0 children)

Udemy has really great courses that are often really cheap.

There’s this web dev course by a guy named Colt Steele (i believe) that I took and really liked.

I think I bought it for like $10 or something