Poxa @FundacaoCasper libera mais inscriรงรตes pra Sรฃo Silvestre! A centรฉsima tinha que receber mais gente.. o amadorismo da ticket sports nรฃo pode manchar esse evento
@TNTSportsBR Nesse mesmo jogo ele ainda pegou um pรชnalti enquanto tava 2x0 pro Cruzeiro e depois fez dois gols, empatando a partida em 2x2.
Esse jogo foi logo apรณs perdermos a final da libertadores pro Inter. Apรณs isso o SPFC arrancou para ser campeรฃo brasileiro no final do ano. Ceni รฉ lenda
๐ฅ Most applications need to export and import large amounts of data.
It is very easy to:
- Waste lots of memory
- Perform hundreds or thousands of unnecessary DB queries
You can avoid them by learning some pretty simple techniques.
๐งต Keep Reading
CSS Tip! ๐ค
You can use mask-composite and some JavaScript to create this pointer proximity following glow border โจ
.glow {
mask-composite: intersect;
mask-clip: padding-box, border-box;
mask:
linear-gradient(#0000, #0000),
conic-gradient(#0000 0deg, #โfff, #0000 45deg);
}
The trick is to mask a background-image with a combination of mask layers. mask-composite: intersect; means the mask used will be the intersection of the layers ๐ฅ use source-in, xor; in browsers that don't support intersect;
In this demo, you can use pseudoelements and rely on scoped custom properties to do a lot of the heavy lifting for you ๐
Once you've masked the background, you need to update the starting angle of the conic-gradient on pointermove ๐
You can work that out by getting the center point of each card and then calculating the angle between that and the pointer with Math.atan2 ๐ค
let ANGLE = Math.atan2(
event?.y - CARD_CENTER[1],
event?.x - CARD_CENTER[0]
) * 180 / Math.PI
ANGLE = ANGLE < 0 ? ANGLE + 360 : ANGLE;
CARD.โstyle.setProperty('--start', ANGLE + 90)
You plug that into your conic-gradient mask as a custom property accounting for --spread โก๏ธ
conic-gradient(from calc((var(--angle) - (var(--spread) * 0.5)) * 1deg), #000 0deg, #โfff, #0000 calc(var(--spread) * 1deg));
To get the blur, you apply a blur to the glow container on each card ๐ค
.glows {
filter: blur(calc(var(--blur) * 1px);
}
That's it! Layers of masks that are clipped and composited before being blurred ๐ The added trick is to fade each one in when the pointer is in the defined proximity of the card. For example, don't show unless within 100px of a card. You can see that in the video. Check out the JavaScript code for that ๐ซถ
Couldn't resist making this one ๐
@CodePen link below! ๐
Don't go to a System interview if you don't know these concepts.
Throughput & Latency
Throughput is the amount of data a system processes within a given period.
It's measured in transactions per second (TPS), requests per second (RPS), or data units per second.
High Throughput means the system can handle more requests in less time.
Things that will help you to increase Throughput:
- Horizontal Scaling (Adding More Machines)
- Load Balancing
- Asynchronous Processing or message queues
Latency is the time taken to process a single operation or request.
It's usually measured in milliseconds or microseconds.
Low Latency is essential in systems with critical response time, like high-frequency trading systems.
Things that will help you reduce Latency:
- Optimizing Code
- Using Faster Storage
- Database Performance Tuning
- Caching
Balancing these two often involves trade-offs.
Asynchronous processing can increase Throughput but might add to Latency for individual tasks.
Extensive caching can reduce Latency but requires more memory resources if not managed.
There's often a trade-off between maximizing Throughput and minimizing Latency.
๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๐ฒ๐ฎ๐ฟ๐ป ๐ณ๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐ ๐ป๐ผ๐ ๐ณ๐ฟ๐ฎ๐บ๐ฒ๐๐ผ๐ฟ๐ธ๐
We, as developers, like to learn new stuff and try it ASAP. That stuff is mostly some new frameworks and tools (such as React, Angular, Spring, Web Forms, ...). Yet, those frameworks usually have ๐ฎ ๐๐ต๐ผ๐ฟ๐ ๐น๐ถ๐ณ๐ฒ, ๐ฎ ๐๐ผ ๐ฑ ๐๐ฒ๐ฎ๐ฟ๐ ๐ฎ๐ ๐๐ต๐ฒ๐ถ๐ฟ ๐ฏ๐ฒ๐๐. Instead of learning frameworks, which are needed to some extent, we should focus more on learning fundamentals.
๐๐ฒ๐ฎ๐ฟ๐ป๐ถ๐ป๐ด ๐๐ต๐ฒ ๐ณ๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐ ๐ผ๐ณ ๐๐ผ๐ณ๐๐๐ฎ๐ฟ๐ฒ ๐ฑ๐ฒ๐๐ฒ๐น๐ผ๐ฝ๐บ๐ฒ๐ป๐ allows a developer to understand the underlying principles and concepts common across different frameworks and programming languages. This understanding allows for more flexibility and adaptability when working with new technologies or when faced with problems that may not be easily solved by a specific framework.
Additionally, a strong understanding of the fundamentals can lead to ๐บ๐ผ๐ฟ๐ฒ ๐ฒ๐ณ๐ณ๐ถ๐ฐ๐ถ๐ฒ๐ป๐ ๐ฎ๐ป๐ฑ ๐ฒ๐ณ๐ณ๐ฒ๐ฐ๐๐ถ๐๐ฒ ๐๐๐ฒ ๐ผ๐ณ ๐ณ๐ฟ๐ฎ๐บ๐ฒ๐๐ผ๐ฟ๐ธ๐, as the developer can better understand how to customize and extend them to meet specific needs.
Take an example of a web application that allows users to upload and share images, e.g., Ruby on Rails, and its functionalities for image processing. If the number of users increases, we could struggle with performance issues if we know only the framework well. Yet, if we understand the fundamentals of web development, we could try to identify bottlenecks and try different solutions, such as using CDN-s, optimizing image sizes, using different storage solutions, etc.
So, which fundamentals to learn:
๐น ๐๐น๐ด๐ผ๐ฟ๐ถ๐๐ต๐บ๐
๐น ๐๐ฎ๐๐ฎ ๐๐ผ๐๐ฟ๐ฐ๐ฒ๐
๐น ๐๐น๐ฒ๐ฎ๐ป ๐ฐ๐ผ๐ฑ๐ฒ
๐น ๐๐ฒ๐๐ถ๐ด๐ป ๐ฝ๐ฎ๐๐๐ฒ๐ฟ๐ป๐
๐น ๐๐ถ๐๐๐ฟ๐ถ๐ฏ๐๐๐ฒ๐ฑ ๐๐ผ๐บ๐ฝ๐๐๐ถ๐ป๐ด ๐ฃ๐ฎ๐๐๐ฒ๐ฟ๐ป๐
๐น ๐ง๐ฒ๐๐๐ถ๐ป๐ด
๐น ๐ฆ๐๐๐๐ฒ๐บ ๐๐ฒ๐๐ถ๐ด๐ป
Try to learn those fundamentals, buy and read these books:
๐ธ ๐๐น๐ฒ๏ฟฝ๏ฟฝ๐ป ๐๐ผ๐ฑ๐ฒ
๐ธ ๐ง๐ต๐ฒ ๐ฃ๐ฟ๐ฎ๐ด๐บ๐ฎ๐๐ถ๐ฐ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ฒ๐ฟ
๐ธ ๐๐ผ๐ฑ๐ฒ ๐๐ผ๐บ๐ฝ๐น๐ฒ๐๐ฒ
๐ธ ๐๐ฒ๐๐ถ๐ด๐ป ๐ฃ๐ฎ๐๐๐ฒ๐ฟ๐ป๐: ๐๐น๐ฒ๐บ๐ฒ๐ป๐๐ ๐ผ๐ณ ๐ฅ๐ฒ๐๐๐ฎ๐ฏ๐น๐ฒ ๐ข๐ฏ๐ท๐ฒ๐ฐ๐-๐ข๐ฟ๐ถ๐ฒ๐ป๐๐ฒ๐ฑ ๐ฆ๐ผ๐ณ๐๐๐ฎ๐ฟ๐ฒ
๐ธ ๐๐ป๐๐ฟ๐ผ๐ฑ๐๐ฐ๐๐ถ๐ผ๐ป ๐๐ผ ๐๐น๐ด๐ผ๐ฟ๐ถ๐๐ต๐บ๐
#softwareengineering
6 API Architectural designs You Must Know
1. REST ๐
ย ย Representational State Transfer - REST is like a classic library where you request specific books and receive them as they are. It's simple and widely used for web APIs, like ordering a la carte from a menu ๐ฝ๏ธ.
2. GraphQL ๐
ย ย GraphQL is like a customizable buffet ๐ด where you ask for exactly what you want and get a tailored plate. It allows clients to request only the data they need, reducing over-fetching.
3. SOAP ๐งผ
ย ย SOAP (Simple Object Access Protocol) is like sending a letter ๐ with detailed instructions, complete with a table of contents. It's more structured but can be heavier than REST or GraphQL.
4. gRPC ๐:
ย ย gRPC is like a high-speed train ๐ for communication between services. It uses Protocol Buffers for efficient data exchange and supports streaming and bidirectional communication.
5. WebSockets ๐๐ฌ
ย ย WebSockets are like real-time phone calls โ๏ธ for the web. They enable two-way communication, perfect for chat apps and live updates.
6. MQTT ๐ก
ย ย MQTT (Message Queuing Telemetry Transport) is like a radio broadcast ๐ป, designed for low-bandwidth, high-latency, or unreliable networks. Ideal for IoT devices and sensor data.
โท ๐๐ฟ Subscribe to our newsletter - https://t.co/hxARDoA98l
#systemdesign #coding #interviewtips
The perfect photo - after 3 years of attempts, photographer Leonardo Sens finally succeeded in capturing an awe-inspiring image of Christ The Redeemer seemingly 'holding' the moon with both hands.
Constructed over a nine-year period between 1922 and 1931, the statue stands an impressive 30 meters (98 feet) tall, not accounting for its 8-meter (26-foot) pedestal. With arms outstretched to a wingspan of 92 feet, this breathtaking monument is crafted from a combination of reinforced concrete and soapstone, serving as a symbol of both religious devotion and artistic brilliance.
I overhauled the @supernotesapp website navigation this week ๐ฅ
Often, nav menus are just directories โ boring and static. This new take communicates our values and shows live sneak peeks of each section, pulling from our pages & RSS feeds #UI #UX#Update