This content originally appeared on DEV Community and was authored by Brighton Smith
Howdy everyone! Feesh back again!
Today was a very interesting day. I learned many things that were completely new to me, which is gonna be very helpful! Even though I did struggle a bit of some of them, I was able to figure it out in the end with the help of my instructor and my fellow students!
For Looping
I did already know a bit about "For Each" looping, but "For Of" and "For In" were very new, how ever they weren't that complicated. For Of was just used as a simple way to iterate over iterables like so...
for (variable of iterable) {
// code block to be executed
}
...very simple. And For In was a bit more complicated, letting you also control enumerable objects. It was very hard for me to wrap my head around.
Communicating with the Server
Now this was the big one, I officially got to learn how to use servers to send and control data. The most useful use I got out of this was learning how people access publicly available API's (huge one for me because I LOVE data). I will say, I really really struggled with fetch()
for some reason. I eventually figured it out, I was just struggling with how it interacted within a function.
To explain, usually you can run Fetch()
in the console of a website via this command...
fetch("url to a api database")
...but I was just not able to understand how to do it. I did end up finding out it works just like above, I was just overthinking the process. Which is a pretty silly issue I have. But I'm glad I figured it out!
Big O Notation
Last thing I want to talk about is Big O Notation. This was super interesting to me just because of all the different ways to optimize code and the best way to do it. After learning more about it I decided to do my own research and it seems like Big O Notation is incredibly important in any coding scenario. So I will be sure to make sure I can use it to optimize when ever possible.
Here's a pretty cool chart I found to visualize it!
[Source:https://www.bigocheatsheet.com]
But thats everything for today! Once again thank you to Flatiron and everyone that supports me!
Cya!
This content originally appeared on DEV Community and was authored by Brighton Smith
Brighton Smith | Sciencx (2024-08-29T20:17:06+00:00) [Flatiron SE] Day 1: 08/29/24. Retrieved from https://www.scien.cx/2024/08/29/flatiron-se-day-1-08-29-24/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.