Write Git commit messages like a pro:
1. Start with a Verb
Start with a verb and use the present tense.
❌ Added, Fixed, Updated
✅ Add, Fix, Update
2. Describe what and why
Ex: Improve data handling for better API performance
WHAT: Improve data handling
WHY: for better API performance
3. Refer to tickets and issues
Fixes #14: Resolve the issue with form submission
4. Avoid using specific jargon
❌ Implement exception handling for HTTP 500 errors
✅ Improve error handling for server-side errors
My first app was a calculator, which didn't help me get a job.
If I had to start over, I would create an API.
Coding exercises can help you practice algorithms and syntax, but they are far from a real software development job.
7 steps to build your first API:
1. Select a Use Case:
It could be anything from weather data retrieval to managing to-do lists.
To impress, build simple products, customers, and orders API.
2. Design the API:
Plan the structure and endpoints of your API.
Decide on the data format (often JSON) and the HTTP methods (GET, POST, PUT, DELETE) that your API will support.
3. Choose a Technology Stack:
Select a programming language and framework for building your API.
- .NET Core
- Flask (Python)
- Express (Node.js)
4. Implement Endpoints:
If you're building a weather API, you might have endpoints for:
- Current weather
- Forecast
- Historical data
5. Data Handling:
Implement the logic to handle data requests and responses.
Retrieve, format, and transform the query result; expose just the data you need, nothing more, nothing less.
6. Testing:
Write unit and integration tests to ensure your API functions correctly and handles different scenarios.
Create a Postman collection to test the endpoints.
7. Deployment:
Deploy your API to a hosting platform.
- Azure
- AWS
So that it's accessible over the internet.
At the end of this project, you will get:
- Real-world software development tasks and challenges.
- Understand how software components integrate and communicate.
- A portfolio project showcasing a functional API demonstrates your abilities to potential employers.
I can't remember one time when I asked someone in an interview to show me a calculator.
Would you?
@AaronVelezDev I’m taking a class this semester, but I found a Udemy course with good ratings and with similar content to my course. You can get it with a discount if it’s the first course you buy on Udemy.
https://t.co/8PhLoHw1Qt
How do we design effective and safe APIs?
APIs have increasingly become the backbone of modern software.
𝗧𝗼 𝘂𝗻𝗱𝗲𝗿𝘀𝘁𝗮𝗻𝗱 some of the 𝗸𝗲𝘆 𝗽𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲𝘀 and 𝗯𝗲𝘀𝘁 𝗽𝗿𝗮𝗰𝘁𝗶𝗰𝗲𝘀 𝗼𝗳 𝗔𝗣𝗜 𝗱𝗲𝘀𝗶𝗴𝗻, Let's 𝗮𝗻𝗮𝗹𝘆𝘇𝗲 𝗮 𝘀𝗼𝗰𝗶𝗮𝗹 𝗺𝗲𝗱𝗶𝗮 𝗽𝗹𝗮𝘁𝗳𝗼𝗿𝗺 𝗲𝘅𝗮𝗺𝗽𝗹𝗲:
🔹 𝗥𝗲𝘀𝗼𝘂𝗿𝗰𝗲 𝗻𝗮𝗺𝗶𝗻𝗴
Clarity is key when creating APIs.
Adopting simple resource names, like /users for accessing user profiles and /posts for retrieving user posts, streamlines the development process and reduces mental strain.
🔹 𝗨𝘀𝗲 𝗼𝗳 𝗽𝗹𝘂𝗿𝗮𝗹𝘀
It's important to maintain a standard of consistency in API design.
For consistency and readability, use plural resource names, such as GET /users/{userId}/friends vs. /friend), to avoid ambiguity in API requests.
🔹 𝗖𝗿𝗼𝘀𝘀-𝗿𝗲𝗳𝗲𝗿𝗲𝗻𝗰𝗶𝗻𝗴 𝗿𝗲𝘀𝗼𝘂𝗿𝗰𝗲𝘀
Interlinking resources, like taking comments on a post using GET /posts/{postId}/comments, simplifies the retrieval of related data.
It provides a more streamlined and well-organized user experience.
🔹 𝗦𝗲𝗰𝘂𝗿𝗶𝘁𝘆
It goes without saying, security is a must-have.
To secure the API endpoints, employ authentication methods like X-AUTH-TOKEN and X-SIGNATURE, and use authorization headers for verifying user permissions.
Learn more about API security here: https://t.co/iAVl6VRmoI
🔹 𝗩𝗲𝗿𝘀𝗶𝗼𝗻𝗶𝗻𝗴
Using versioning and communicating version updates is another important practice.
Endpoints like GET /v2/users/{userId}/posts allow API versioning to maintain functionality regardless of updates.
This approach ensures backward compatibility and a smooth transition for users and us.
Learn more about API versioning here: https://t.co/JwVRzZArr2
🔹 𝗣𝗮𝗴𝗶𝗻𝗮𝘁𝗶𝗼𝗻
This technique is important for performance.
Paginate large datasets, like feeds or comment lists, with GET /posts?page=5&pageSize=20 to enhance data delivery and UX.
🔹 𝗜𝗱𝗲𝗺𝗽𝗼𝘁𝗲𝗻𝗰𝘆
Maintaining API reliability is necessary.
Idempotency ensures that operations like profile updates (PUT /users/{userId}/profile) achieve their intended result, regardless of how often they are executed.
These practices are very important, but there’s still much more to API design.
Learn more about API design here: https://t.co/Z9FLjyzV53
Thorough documentation, powerful monitoring and logging, and consistent error handling are just a few more of the many essential habits required for designing effective and safe APIs.
Adopting these principles and practices enables us to develop secure and performant APIs that deliver good user experiences.
~~~
📩 If you found this helpful, I write an email every Thursday to help you level up your engineering and system design skills. Sign up here: https://t.co/T4o0O5mWsA
A big thank you to our partner Postman who keeps our content free to the community.
Estoy muy agradecido por haber sido elegido como uno de los 10 equipos finalistas en el evento del SmartCity Hackathon, y a todas las personas que me apoyaron en el proceso :). También doy las gracias a mi equipo Hydrosense por todo el esfuerzo dado y por ser grandísimas personas
Did you know about the CSS property 'text-wrap: balance'?
It balances text distribution when wrapping, creating a harmonious layout. Now it's so easy to control the text 😎
Friendly reminder to all developers and all followers as well...
Self-care isn’t just about spa days or bubble baths.
It’s about taking care of your body with good food, getting enough sleep, and taking time to relax and recharge.
Don't forget.-
CISCO is offering FREE trainings and certifications for:
- Data Analytics
- Data Science
- Cybersecurity
- Web Dev
- Python
- Operating Systems & IT
- Digital Literacy
Self-paced courses, practice as you learn.
You will get certified after completing the course.
Open this THREAD to get started on your learning.
RT for someone on your TL.
Data Science and Data Engineering might sound pretty similar.
But the truth is, they're actually quite different fields - both just have to do with handling data.
In this guide Gold explains the differences and what data scientists and engineers do.
https://t.co/3ZV0qvGnrN
The freeCodeCamp community YouTube channel publishes tons of in-depth courses.
And if you want to learn back-end development, you may be wondering where to start.
In this back-end dev roadmap, Beau walks you through a learning path so you can dive in.
https://t.co/eQMCxtbkow
When you hit a roadblock with an error that even Google can't fix, how do you handle it? I personally find helpful taking a break from the screen, getting some exercise, or making sure I sleep well that night.
#developer#tech#programmer
How I got my first remote job!
Q4 2019:
Started learning web development
Q1-Q2 2020:
Used to see other creators
Q3 2020 onwards:
Started posting content on Twitter
Q2 2021:
Made 90K followers
Q2 2021:
My hiring manager reached out to me
Q3 2021:
I joined my first remote job
You can make yourself more noticeable by being active online.