The Chill Coding Lounge – Telegram
The Chill Coding Lounge
519 subscribers
494 photos
97 videos
11 files
226 links
Welcome to the Coding Lounge, chill and relax as we talk about programming, memes, and the pain of errors.
Download Telegram
>You will vote yes
>You will take the Node pill
>You will become based
PM asked me for my t-shirt size

Told him I was a large

I now have to build chatGPT V20 in 3 weeks

Agile is the bane of my existence
😭1
Happy Adwa Victory Day everyone. May all your pasta be eaten with Injera🙏🏾
At 30 subscribes I will activate discussions.

The chaos shall begin soon
We hit 30 subs!!!! As promised I'll be opening the pit of discussions.
1
console.log("Good Morning Lads and Lassies")
Remember, index your databases correctly. Or else Larry will be coming after you. 🙊

Indexing helps increase the performance of fetching data, which in turn helps your application show data quicker. 🚀

While it is has massive advantages, make sure to use indexes wisely as having to much will ironically make your app slower (the thing we are trying to avoid in the first place)🥲

So make sure to index datasets that have high read to write ratios and index the most common query/field.😎
print("Good Morning Lads and Lassies")
1
Let's start the day of right and see what JavaScript (the programming language that is used or integrated by a lot of frontend frameworks and backend languages like Node).

Here is a 100 seconds of JS for both the lovers of the language and the haters as well (Especially the haters)

https://www.youtube.com/watch?v=aXOChLn5ZdQ&ab_channel=Fireship
1
I will never forget the mathematical betrayal geospacial queries have brought onto my poor brain. I have to convert distance into radians to calculate objects within said distance. RADIANS??????? Oh HELL NAH bro what?

I will be dropping my full opinion on this topic after taking one paracetamol
system.out.println("Good Morning Lads and Lassies")
1
Is it just me or is the humidity lobotomizing me into not doing anything
#include <iostream>

std::cout << "Good Morning Lads and Lassies!" << std::endl;
Happy International Women's day
<?php
echo "Good Morning Lads and Lassies!";
?>
Everyday you shall be gifted a good morning message in different programming languages🙏🏾
Realizing that generic/factory functions are real time savers, although they are a pain to code.

For instance:

exports.getAll = (Model) =>
catchAsync(async (req, res, next) => {

//To allow for nested GET reviews on tour
let filter = {};
if (req.params.tourId) filter = { tour: req.params.tourId };

//Execute Query
const features = new APIFeatures(Model.find(filter), req.query)
.filter()
.sort()
.limitFields()
.paginate();

//const doc = await features.query.explain();
const doc = await features.query;

//SEND RESPONSE
res.status(200).json({
status: 'success',
// requestedAt: req.requestTime, //Came from middleware that manipulated the requested object
result: doc.length,
data: {
doc,
},
});
});


While this code can be used to run all get all for any resource, we have to go through the length of specifying different queries for different resources (if they require them)
For anyone interested in blockchain