Jesus Miguel B. R. (@MikeAtlas23) header
Jesus Miguel B. R. (@MikeAtlas23) profile picture

Trabajando duro o durando en el trabajo?

Querétaro Arteaga, México
Joined September 2010
Jesus Miguel B. R. retweeted
Skew! Then Unskew! For a cool shape. "Image masking with pure CSS (transform and overflow)" by Nooray Yemon buff.ly/40JGYlw
32
260
31,124
Jesus Miguel B. R. retweeted
Esta página de aquí es una maravilla (dbdiagram.io/) Si tienen el schema lo convierten a DBML y con eso ya les genera el diagrama E-R. Si tan solo hubieras existido cuando estaba en la escuela 😭
9
163
2
697
71,347
Jesus Miguel B. R. retweeted
Así funcionan las principales peticiones HTTP. → GET: Recupera un recurso del servidor. → PUT: Actualiza o crea un recurso. → POST: Crea un nuevo recurso. → DELETE: Elimina un recurso. → PATCH: Aplica modificaciones parciales. → HEAD: Obtiene los encabezados del GET. → CONNECT: Establece un túnel de comunicación. → OPTIONS: Obtiene las opciones de comunicación. → TRACE: Usado para diagnóstico y depuración. Gracias a @bytebytego por esta pasada de diagrama.
7
532
4
1,946
145,598
Jesus Miguel B. R. retweeted
You're in a web development interview, and you're asked: "Do you recommend using OAuth or JWT (JSON Web Tokens) for secure user authorization? Explain your authentication approach." Here's how to answer, discussing use cases and how each method works: OAuth: Use Case: OAuth is an excellent choice when you need to enable third-party applications to access user data or perform actions on behalf of users. It's commonly used for scenarios like social login (allowing users to sign in with their existing social media accounts) and for authorizing API access by external clients. How it works: OAuth involves multiple roles: Resource Owner (User): This is the user who owns the data or resources that the third-party app wants to access. Client (Third-party App): The application that seeks access to the user's data. Authorization Server: This server is responsible for verifying the user's identity and managing permissions. Resource Server: This server hosts the user's data and grants access to authorized clients. The OAuth flow allows users to grant permissions to external apps without sharing their actual credentials (e.g., username and password). Instead, it provides a secure and authorized way for apps to access user data. JWT (JSON Web Tokens): Use Case: JWT is ideal for internal authentication and maintaining stateless sessions within your application. It's often used to securely represent user IDs, roles, or other claims in a compact, self-contained format. How it works: JWTs consist of three parts: Header: Contains metadata about the token, like the algorithm used for signing. Payload: Contains claims, which are statements about the user and additional data. These claims are often used to convey user ID, roles, and more. Signature: This is generated using a secret key and is used to verify the authenticity of the token. JWTs are typically issued to a client after successful authentication and can be included in subsequent requests to authorize the user. They are self-contained, meaning all the necessary information is within the token, reducing the need to store session state on the server. Authentication Approach Recommendation: Choose OAuth when your project involves granting access to user data or actions by third-party applications. It's an excellent choice for scenarios where you want to allow external apps to interact with your system securely. Choose JWT for internal authentication and maintaining stateless sessions within your application. It's efficient and secure for managing user sessions, especially within your own ecosystem. Combining Both: In some cases, you might use OAuth for external authentication, such as social login, and then issue a JWT to the client after successful authentication. This approach allows you to leverage the benefits of both methods.
2
61
1
228
15,732
Jesus Miguel B. R. retweeted
👀 creating laravel relationships
30
104
11
875
154,936
With some clever use of the Operation object in API Platform, we can make our DTO state provider & state processor 100% generic & reusable. That'll let us create custom #[ApiResource] classes backed by an entity with nearly zero work 🔥 buff.ly/48NYBnL
2
14
1,388
Jesus Miguel B. R. retweeted
STRUCTURED WAY TO LEARN REACT (basic, intermediate and andvanced) BASIC: Introduction to React and Virtual DOM Basics of React and its Virtual DOM concept. Setting Up and Basic ComponentsEnvironment setup and creating simple components. JSX, Rendering, and User InteractionJSX syntax, rendering elements, and handling user interactions. Component State and Conditional RenderingManaging component state and conditional rendering. Lists and KeysHandling dynamic data and rendering lists. INTERMEDIATE: Props and Component Lifecycle Working with props and understanding component lifecycle. Forms and Routing Form handling, validation, and React Router for single-page apps. Styling and State Management Styling components and managing state with Context API. Global State with Redux and Data Fetching Implementing global state with Redux and fetching data from APIs. Error Handling, Composition, and Reusability Error handling, component composition, and reusability. ADVANCED: Advanced State Management- Explore advanced state management patterns like redux-thunk and redux-saga. React Hooks and SSR Learn about React hooks and server-side rendering with Next.js. Performance Optimization, Code splitting, lazy loading, and performance optimization. Testing, Internationalization, and Animations Authentication, Deployment, and Real-time Features Implementing authentication, deploying apps, and real-time features.
3
97
1
303
39,388
Now for the fun stuff: re-adding validation & security to our API resource... which means we get to add it directly to the DTO class. Nice and clean! buff.ly/48LAqXb
4
12
1,523
Jesus Miguel B. R. retweeted
Diagrama para entender los 4 principales mecanismos de autenticación. systemweakness.com/top-4-aut…
5
498
3
1,968
145,354
Laravel tip. For roles/permissions, you don't necessarily need any external packages. Just create a DB structure like this one. We've implemented it in multiple projects, like in this course: "Laravel Vue Inertia: Food Delivery project step-by-step" laraveldaily.com/lesson/lara…
35
99
3
567
42,163
Jesus Miguel B. R. retweeted
Top 16 API Security Practices worth knowing Credit - Brij Kishore Pandey
3
193
716
72,877
Jesus Miguel B. R. retweeted
JavaScript CheatSheet on map(), filter(), and reduce() method in JavaScript⚡ Likes: 1K🎯
36
125
2
604
102,548
𝗦𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿 != 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿 Software Engineer == Problem Solver Don't attack problems with code. Try first to understand them from a business perspective and then a technical perspective. When you do this, make a plan for how to solve it. Try to solve without coding. The best code is not code. If you must code, then do it. Remember, 𝗰𝗼𝗱𝗲 𝗶𝘀 𝗮 𝗹𝗶𝗮𝗯𝗶𝗹𝗶𝘁𝘆, 𝗻𝗼𝘁 𝗮𝗻 𝗮𝘀𝘀𝗲𝘁. #technology #softwareengineering #programming #developers #coding
127
937
80
5,394
792,115
Jesus Miguel B. R. retweeted
JSON Crack es un recurso genial para visualizar datos. Abre o pega tu JSON y lo visualizas como un gráfico interactivo. ¡También tiene extensión para Visual Studio Code! → jsoncrack.com
20
564
6
2,967
176,646
Jesus Miguel B. R. retweeted
97 JSON Tests for for Authentication Endpoints media.licdn.com/dms/document…
9
374
2
1,269
127,784
Jesus Miguel B. R. retweeted
Practica programación con proyectos reales sin pagar nada: 1. pruebastecnicas.com 2. frontendpractice.com 3. frontendmentor.io 4. devchallenges.io 5. codewell.cc
16
835
4
2,921
186,674
Jesus Miguel B. R. retweeted
How does Git Work? The diagram below shows the Git workflow. Git is a distributed version control system. Every developer maintains a local copy of the main repository and edits and commits to the local copy. The commit is very fast because the operation doesn’t interact with the remote repository. If the remote repository crashes, the files can be recovered from the local repositories. Over to you: Which Git command do you use to resolve conflicting changes? Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
17
453
5
1,594
167,928
Jesus Miguel B. R. retweeted
Html Cheat Sheet 🔥
22
445
6
1,829
206,386
Jesus Miguel B. R. retweeted
🍱 Generador de estructuras HTML y CSS con Flexbox y Grid Layout buff.ly/2RGautm
8
287
2
1,219
107,270