Logo
Logo
Home
Archive
Advertise
YouTube
Login
Sign Up
  • Home
  • Posts
  • 🦥 Why Do We Use Web Frameworks?

🦥 Why Do We Use Web Frameworks?

Jun 11, 2024

In partnership with

Hello friends!

Welcome to this week’s Sloth Bytes.

Happy to announce the first sponsor to help support this newsletter!

I also made some updates to the sections to give it more character 😁

As always if you have any suggestions, feel free to comment or reply.

They can starve to death on a full stomach

Giphy

Sloths have sacrificed the ability to control their body temperature in order to save energy.

Instead they are completely reliant on the environmental conditions. If they get too cold, the special microbes that live in their stomachs can die, and the sloth can no longer digest the leaves that it eats.

Web Frameworks

What is a Web Framework?

A web framework is a set of resources and tools designed to support the development of web applications.

Programmers are lazy, so they like to automate things to make our lives easier.

Why Use Web Frameworks?

  • Efficiency and Speed: Web frameworks come with built-in solutions for repetitive tasks. This allows developers to skip the boring parts and jump straight to writing the good stuff which speeds up development.

  • Security: Building secure applications from scratch IS HARD. Frameworks often have built-in security features that protect against common vulnerabilities

  • Scalability: As applications grow, managing code becomes complex, Frameworks organize code in a consistent way, making it easier to scale, maintain, and onboard new developers.

  • Community and Support: Popular frameworks have large communities of developers who contribute to the framework's development, provide support, share plugins, and write extensive documentation. Basically you get to benefit off of other people’s work…. cool.

Should You Use A Framework??

Most cases YES.

The rare moments when you don’t need a framework is when:

  1. You’re a beginner and still learning the fundamentals: Frameworks hide details. If you're new to programming, start without one to learn the basics. After some projects, use a framework to appreciate its benefits.

  2. It’s a very simple project: Frameworks are ideally for bigger projects, so if your project doesn’t need any of these features you’re just making it overly complex. KEEP IT SIMPLE.

Popular Web Frameworks

JavaScript

  • React (“it’s a library 🤓”)

  • Angular

  • Vue.js

  • Svelte

JavaScript has so many… too many, so I’ll leave it at that

PHP (yes people use it)

  • Laravel

  • Symfony

  • Laminas

  • CodeIgniter

Others

  • Ruby on Rails - A full-stack framework for Ruby

  • Django - A full-stack framework for Python

  • ASP.NET - Full-stack framework for C#

  • Spring - Framework for Java

There’s a lot more frameworks that I left out, but these should be enough.

Summary

  • Web frameworks make life easy

  • If you’re a beginner or working on a very simple project don’t use them YET

  • There’s so many of them that the hardest part is picking one.

Big O Notation (For interviews)

What is it?

Big O notation is a method of measuring an algorithms time and space complexity.

Using this method, we can determine an algorithms best case, average case, and their worse case.

It’s not meant to be precise, it’s meant to give us a general idea.

Why is this important?

The reason we need big O notation is it helps us understand how efficient an algorithm is.

Imagine if you did a google search and it took 5 minutes for your search to go through.

Another reason we need this is because we can’t just time our code.

Why not???

I mean you could could measure how long it takes for an algorithm with a timer, but there are 2 main problems that could mess up these measurements:

1. Hardware

If a supercomputer and an old computer ran the same program, the supercomputer would finish first.

Doesn’t really help us…

2. The programming language

If I created the same program in C and JavaScript, most likely C would be faster.

Once again… doesn’t really help us.

With big O we can minimize these problem because it focuses on the algorithm.

Time Complexity

Time complexity means the amount of time an algorithm takes to run as a function given an input size.

So basically how fast it is.

Space Complexity

As the name implies, it’s the amount of space an algorithm takes up.

When we say space, we mean memory and storage.

Imagine you made an algorithm that took up all the memory and ram in your computer (y’know something like google chrome).

Now all of a sudden your computer is slow and struggling because of how much space it needs to run this algorithm, this is not good!

Common Big O runtimes

When it comes to big O, there’s many types of time complexities and runtimes, but those are really rare, most of the times you’ll be seeing these:

These are ordered from best to worst:

  • Constant: O(1) (This is the best!)

  • Logarithmic Time: O(log N) (Pretty good!)

  • Linear Time: O(N) (It’s decent)

  • Logarithmic Time: O(N log N) (Starting to get bad)

  • Quadratic Time: O(N^2) (Pretty bad)

  • Exponential Time: O(2^N) (Terrible)

  • Factorial Time: O(N!) (Worst case, how did this happen?)

Big O notation is very important for data structures and algorithms, and of course interviews, so get a lot of practice!

Apple WWDC 2024: the 13 biggest announcements (8 minute read)

Apple pulled an Apple move and redefined “AI”

Databricks + Tabular (4 minute read)

Databricks acquired Tabular.

Change to Adobe terms & conditions outrages many professionals (3 minute read)

Update: Adobe has now clarified the meaning and intent. A change to Adobe terms & conditions for apps like Photoshop...

GitBook – Knowledge management for technical teams

GitBook is a knowledge management tool for engineering teams. It simplifies knowledge sharing, with docs-as-code support and AI-powered search & insights.

Only a couple days left to invest in this smart home startup.

The ball-park isn’t the only place to look for home runs. Best Buy has a proven record of placing early bets on home-tech products that go on to dominate the market.

  • Ring - acquired by Amazon for $1.2B

  • Nest - acquired by Google for $3.2B

Early investors in these companies are sitting on some serious returns - but for the rest of us, there's still a chance to get in on the action with RYSE.

History tends to repeat itself, and RYSE's launch in +100 Best Buys points towards their company being the next home run.

Their Smart Shade tech is poised to dominate an industry growing at 50% annually, and there's still time to invest in their $1.50/share public offering.

The window to invest is closing - learn more here.

Crazy developer recreated VisionOS (13 minute video)

Shout out to Steven Gong he has awesome videos

AI in software engineering at Google: Progress and the path ahead (9 minute read)

Top 5 React Best Practices Every Developer Should Know (2 minute read)

Explore Composable Software, State Management, Immutability, Lifecycle Methods, Hooks and Optimization

So many people submitted this time! Check out their submissions!

TarmanderC, ddat888, paulkiwana, Yoshlix, SpyNullExe, rushi-001, RelyingEarth87, umeshsiddarth, 10g1n, WideLoadCollie, and the most impressive one to me (Yeah I have favorites)

GitHub - Jotrorox/fizzbuzz: Showcasing fizz-buzz in different programming languages

Showcasing fizz-buzz in different programming languages | All the code is commented and has sufficient documentation - Jotrorox/fizzbuzz

not only that, they made this too

GitHub - Jotrorox/fbapi: A dead simple API that exposes endpoints for "Fizz Buzzing"

A dead simple API that exposes endpoints for "Fizz Buzzing" - Jotrorox/fbapi

Thank you all to everyone who did the challenge!

How Many Vowels?

Create a function that takes a string and returns the number (count) of vowels in the string.

Examples

count_vowels("Celebration") ➞ 5 # 5 vowls

count_vowels("Palm") ➞ 1 # 1 vowl

count_vowels("Prediction") ➞ 4 # 4 vowls

Notes

  • a, e, i, o, u are considered vowels (not y).

  • All test cases are one word and only contain letters.

How To Submit Answers

Reply with this:

  • A link to your solution (github, personal blog, portfolio, etc)

  • A link to your post on Twitter, Linkedin, or any social platform you use.

Working on the AI girlfriend/boyfriend 💀

I found the right tools/APIs for this project and it’s definitely going to be interesting. I’m probably going to use Replicate (tool I showed before) because the models are open source which means less restrictions.

The popular AI models seem to not like the AI girlfriend/boyfriend idea because of their content policy but I’ll find a way…

but that’s all from me!

Have a great week, be safe, make good choices, and have fun coding.

See you all next week.

Reply

Avatar

or to participate

Keep Reading

envelope-simple

Join 50k+ developers and become a better programmer and stay up to date in just 5 minutes.

© 2026 Sloth Bytes.
Report abusePrivacy policyTerms of use
beehiivPowered by beehiiv