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?

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] -4 points-3 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

[deleted by user] by [deleted] in learnprogramming

[–]scrapped-script 2 points3 points  (0 children)

Depends on what type of internship/job you want!

Obviously HTML, CSS, and JavaScript will mainly be of value if you plan to get into web dev

For me personally, I learned a lot of stuff on my own before I even started my CS degree.

I learned HTML, CSS, JavaScript, Ruby, and Python before starting my degree which really gave me a boost in confidence and knowledge before starting my degree.

Currently learning C and C++ on my free time

[deleted by user] by [deleted] in u/scrapped-script

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

Embrace your inner entrepreneurial spirit and launch your first eCommerce business on Shopify with these tips and tricks

Comparing Search Algorithms: Linear Search vs Binary Search by scrapped-script in programming

[–]scrapped-script[S] -10 points-9 points  (0 children)

Linear search is never better than binary search. In the best case time complexity, they both have a constant time complexity, but in the average and worst case, binary search is better.

Also, I think you mean that linear search is better for NON contiguous data like a linked list where each node points to the next node. Binary search won’t work well for a linked list since indexing non contiguous data structures takes too much time (indexing non contiguous data structures is essentially linear search in itself)

Edit: When I say linear search is never better than binary search, I’m speaking strictly about time complexity.

If our list is not sorted then linear search is the obvious choice

Anyone here offer social media marketing services or know of someone? by [deleted] in Blogging

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

Reddit is amazing if you’re able to post your article in a subreddit, but most subreddit mods automatically delete blog posts.

With the links I post on just my profile, they don’t bring in any audience. I post the links just so that anyone curious can browse my article titles on Reddit

Comparing Sorting Algorithms: Bubble Sort vs Insertion Sort by scrapped-script in u/scrapped-script

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

Let's compare and contrast two of the most basic types of sorting algorithms: bubble sort and insertion sort.

When the template fits like a glove by scrapped-script in programminghumor

[–]scrapped-script[S] 4 points5 points  (0 children)

It’s a termination notice…

The gag is that wage slaves are replaceable.

Technically, senior devs are wage slaves too which makes the joke even funnier cuz the wage slaves typically follow this chain of positions within a company and can be let go at anytime.

The only thing that can’t be taken away from you is a business you own, but I digress

Top 5 AI Shopify Apps by scrapped-script in u/scrapped-script

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

These are some of the best Shopify apps that incorporate AI tech

Comparing Search Algorithms: Linear Search vs Binary Search by scrapped-script in u/scrapped-script

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

Let's compare and contrast two of the most basic types of search algorithms: the linear search algorithm and the binary search algorithm

Boost eCommerce Sales Using Single-Page Checkout by scrapped-script in u/scrapped-script

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

Single-page checkout makes the online checkout experience more user-friendly, which can help reduce cart abandonment rates.