Sticky as the name suggests sticks to the container if a certain condition is enabled. Let's say make the element sticky when it reaches x 10, so the elemets sticks and remains sticky. Sticky works wrt to any scrollable parent.
๐Positioning elemets in CSS
There are 2 types of elements one that are positioned and non positioned.
Non positioned elements are the elements that are no effected by properties like top, botton left and right, by default this elements are static.
Basic view can be considered NP
Fixed doesn't know any boundary. It takes basis of viewport/global context for positioning. So I say position the element at x 10 and y 10 this position based on the screen and will be at absolute x 10 and y 10.
๐ฅ Maidaan
Rating๐: 8/10
Marvelous! Must watch! Experience it in the theatres. Great preformace #AjayDevgn#GajrajRao. First half was insane every emotion is captured perfectly. Though the movie lost its hold in the second half but the end bevahed like a cherry on top a cake!
๐Starts with Why - Simon Sinek
Rating ๐: 3/5
A pretty good take on understanding why we do the things we do. Throughout the book their are instances talked about the the information flow through the business from why, how to what.
#BookReview#Nonfiction#bestseller
At the end of this book you will have a sense to better embed why while making long/short term decisions.
After some point, the text becomes repetitive and mostly focuses on the success stories of a very few organisations.
๐ฟ Murder Mubarak
Rating ๐: 10/10
A must watch! Outstanding performances by all the casts. Everyone played their characters with great depths beautifully. Great execution on biding all the characters' life and situations in which they took their decisions
#Netflix#murdermubarak
What exactly does the 3 body problem on Netflix end at? So confused ๐ตโ๐ซ on what happened and how were a few scientists connected on hindering the san tiโs plans?
#Netflix#threebodyproblem
While polling, we wait for some time while fetching new data let's say 10s, so after every 10s we serve new data to our users. We can use polling for blog applications.
While streaming, the server continuously sends new data in case of any changes. We can use streaming for chats
๐ Streaming vs Polling
While working with application we need to decide when to serve our users with new data. For this we can use 2 techniques Polling and Streaming.
A bit of elaboration:
.json() does additional data formatting converting data to JSON format.
The Content-Type header is automatically set based on the type of body parameter being sent through .send().
.end() can be used in cases where no data needs to be sent.
Express Response๐
There are three ways through which you can send response through express.
res.end() - No data and ends the request
res.json() - Sends the data in JSON format and ends the request
res.send() - Sends the data and ends the request
#express#javascript#node
Movie Review- #Shaitaan
Rating ๐: 8/10
A bit low on story, but the characters' acting pulled it off so well. Everyone was so convincing for the part they played. The direction, the camerawork and especially the BGM were so good. Didn't expect some good jokes but was surprised๐
๐ Debouncing vs Throttling
Debouncing means delaying the execution of a function until a user stops doing a second operation for example calling an API to search just after user stops typing after 1s.
Throttling limits the execution of a function in some specified time interval.
The main difference between these 2 operations is that debouncing takes account of the cooldown after user operations, while throttling can be used to improve responsiveness of our pages.