Welcome to Slydap
Get Involved, Explore & Redefine
- Share your momentsPosts, photos, polls and what’s on your mind.
- Watch videosSkits, music and stories from people around you.
- Chat with friendsMessages, voice notes and group chats.
- Join groups and pagesFind your people and the things you love.
Happening on Slydap
Public posts
🚀 REST vs GraphQL
Both are used to build APIs.
But they handle data fetching differently.
1️⃣ REST (Representational State Transfer) 🌐… See more
🚀 REST vs GraphQL
Both are used to build APIs.
But they handle data fetching differently.
1️⃣ REST (Representational State Transfer) 🌐
Uses multiple endpoints to access resources.
? How: Each resource has a fixed URL
? Example:
GET /users
GET /users/1
? Wins: Simple, widely adopted
? Risk: Over-fetching or under-fetching data
Problem:
Client may receive more data than needed.
2️⃣ GraphQL ⚡
Uses a single endpoint for all requests.
? How: Client specifies exactly what data it needs
? Example:
{
user(id: 1) {
name
email
}
}
? Wins: No over-fetching, flexible queries
? Risk: More complex setup
💡 Key Difference
REST ? Multiple endpoints, fixed responses
GraphQL ? Single endpoint, flexible responses
REST = Server defines structure
GraphQL = Client defines structure
Choose based on project complexity. See less
Matthew
👍1
4
🌐 JavaScript Promises & Async/Await (Asynchronous Code) ⏳
Asynchronous programming allows your code to run tasks in the background (like fetching data from an API) without freezing the entire website.
👉 Understanding this is the key to mastering data fetching and complex frontend logic.
🔹 1. What is a Promise?… See more
🌐 JavaScript Promises & Async/Await (Asynchronous Code) ⏳
Asynchronous programming allows your code to run tasks in the background (like fetching data from an API) without freezing the entire website.
👉 Understanding this is the key to mastering data fetching and complex frontend logic.
🔹 1. What is a Promise?
A Promise is a placeholder for a value that will be available in the future. Think of it like a buzzer at a restaurant: you don't have your food yet, but you have a "promise" that it's coming.
A Promise has 3 states:
• Pending: Still waiting for the result.
• Resolved (Fulfilled): Task finished successfully! ✅
• Rejected: Something went wrong. ❌
🔹 2. The Old Way: .then() and .catch()
Before 2017, we handled promises by "chaining" functions. While it works, it can get messy (known as "callback hell").
Example:
fetch(' api.example.com/data')
.then(response => response.json())
.then(data => print(data))
.catch(error => print("Error found!"));
🔹 3. The Modern Way: async and await
This is the industry standard. It makes asynchronous code look and behave like normal, top-to-bottom code.
• async: Put this before a function to tell JS it contains asynchronous code.
• await: Put this before a promise to tell JS "wait here until the data arrives."
Example:
async function getData() {
const response = await fetch(' api.example.com/data');
const data = await response.json();
print(data);
}
🔹 4. Handling Errors with try...catch
When using async/await, we use a try...catch block to handle errors gracefully (like a lost internet connection or a 404 error).
Example:
async function safeFetch() {
try {
const response = await fetch(' api.example.com/data');
const data = await response.json();
print(data);
} catch (error) {
print("Network error or invalid API!");
}
}
🔹 5. Why is this important?
• User Experience: Your site stays interactive while loading data.
• Performance: You can fetch multiple pieces of data at the same time.
• Clean Code: async/await is much easier to read and maintain than old-school callbacks.
🎯 What you should do
✔️ Understand the 3 states of a Promise
✔️ Master the async and await keywords
✔️ Learn to handle API errors using try...catch See less


Saraphina, Emmanuel and 2 others
👍4
6
President John Dramani Mahama has called for Chris Tsui Hesse to be celebrated while he is still alive, insisting that the veteran filmmaker deserves recognition now rather than posthumous honours, during a courtesy call on the legendary cinematographer behind Ghana’s historical visual archives and the feature documentary, The Eyes of Ghana.
#PulseNews

Saraphina and Matthew
👍2
5
Once I become rich, one thing I don't want to hear is "Don't let money Control you."
When poverty was controlling me you were silent right?

Matthew and Support
😂2
5 That was the assurance i needed. I raised my left hand and put it on her waist holding her in position.., my right hand wandered up to her tank top and grabbed her generous boobs through her top. 🤧. In response her hands were on top of my pants and she held my dick in a tight grip making me jerk in response. ' Does she hold your heart this way ..?' I just stared at her in awe. In need like i was rn. I was at her mercies . ' lets see if i can handle it better… See more That was the assurance i needed. I raised my left hand and put it on her waist holding her in position.., my right hand wandered up to her tank top and grabbed her generous boobs through her top. 🤧. In response her hands were on top of my pants and she held my dick in a tight grip making me jerk in response. ' Does she hold your heart this way ..?' I just stared at her in awe. In need like i was rn. I was at her mercies . ' lets see if i can handle it better ...'She got out of my embrace and dragged my pants down . Grabbed my semi hard dick, stroked it and put it all in her mouth . 😫😫goosh. I just formed an O with my lips . This was all new to me. My girl never gave me head . Seeing her pretty face going down on me did things to me.. it made me want her soo bad. And this was soo wrong . I held her hair to stop her motion. ' Not a word of this gets to her. ' i said . She nodded her head as if she perfectly understood. I switched positions and put her under me. There was no time to take off the skirt. I just pulled her pink panties to the side and started eating her out. Shiit. I cant believe i was doing this.i was just running on instict. She just gave mehead and tit for tat is always fair .for a pretty face like her i didnt mind .i had never been this freaky with a girl. And the sounds she was making was showing me she was clearly having a good time . My tongue ran up and down in slick movement and her body was moving in sync. I reached out with my left hand and grabbed her tiddies through her top and she held it there for me as she continued grinding her hips on me. Rain on the roof muffled her voice and i couldn't hear her but she finally tugged my hair hard and pulled me for a deep kiss. 💦. See less
The moment that Matthieu Reeb, the director general of the Court of Arbitration for Sport, announced that Senegal had been reinstated as winners of Afcon 2025 🇸🇳
Support
👍1
3 'Not really ... Come closer then if that's what you want... ' in no hesitation she took my welcoming so seriously . She came over and joined me on the bed. We sat in bed edge looking at the walls and there was a lot of awkward silence save for the rain pattering on our semi tiled roof still loud .The room was dimly lit with the corners darker ..,i got up and lit some candles to illuminate the room and joined her sitting back on the bed. This had turned out to be erotic than i had… See more 'Not really ... Come closer then if that's what you want... ' in no hesitation she took my welcoming so seriously . She came over and joined me on the bed. We sat in bed edge looking at the walls and there was a lot of awkward silence save for the rain pattering on our semi tiled roof still loud .The room was dimly lit with the corners darker ..,i got up and lit some candles to illuminate the room and joined her sitting back on the bed. This had turned out to be erotic than i had planned and it was turning me on . I had never ever even had such a setting with my gf. She was fumbling with a pen she found god knows where and it seemingly just dropped out her hand and rolled a couple of feet just infront of me . 'Oops ' she said getting up slowly bending over to pick it even slower . Her tennis skirt riding up exposing her pink panties she wore underneath and i could vividly see the out outline of her pussy lips through the panties .. OMGGGG😩?.. i was going insane?. This girl was playing mind games with me . I turned my head sideways so she couldn't catch me watching but i was prolly too late . I tried reaching for my phone for a playlist and my hand landed on her thighs by mistake. '..mmmhh...Im looking for my phone ..' i said as i retrieved my hands back quickly. 'Here..' she handed it over to me. She had sat back on it. I took it in a desperate attempt to put on a playlist and it fell off my hand and fell on the carpet... She bent over to pick it up for me again... Shiiiit. She knew perfectly what she was doing and i was prey to her . She was my gf's bestie but i already knew her long before they were friends. And we used to pay each other visits before this so she isnt new to my room. She handed my phone back to me with a little 'sorry' and i put on a my playlist. My i was getting turned on with her presence and my grey sweats weren't doing me a good job in hiding the evidence. She came and sat right on top of me pushing me back to lie on the bed .. on top of my growing dick. 'oops.' she said again in an innocent smiley face . This girl was really pretty. Had i mentioned before. Now that we were alone in a room a kept stealing glances at her and her lightskin complexion was really breathtaking in this candlelit room... 'you could touch me.you know you want to ' she said in a playful voice. Woooah she just said that.?The audacity..💔Damn right I really wanted her rn . I felt so turned on. But i couldn't make a move. I was fighting an inner battle with my personality telling me she is a no go zone . But fuck that nigga . Its really cold outside and the remedy is seated on top of me . I put my hands on her thighs and moved it along her figure to her butt and rubbed it over and grabbed her.. she ground her hips hard against me and we both let out slow breaths of pleasure. It felt so naais? ... ' How long are you planning to keep quiet..whats on your mind .. ' she said again. She was always the one to hit the nail on the head. 'Its okay , i promise i wont tell on you...' she said as she leaned in forward with her lips just inches from me... See less
Stop writing single on your bio,
No one is interested in you.


Matthew, Michael and 1 other
😂👍3
4 There’s more on Slydap
Create an account to see everything, react, comment and follow people.