teleren/devto huggingface dataset:
Which Programming language should you choose Swift vs. Python: The ultimate battle
Tags: python, swift, pythonvsswift, pythontrends
Published: 2022-12-20 07:49:10


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0w84ilfh8a5f5ppgjz8r.jpg)
Programming languages have evolved in the past few years, and with the evolving technology, it becomes difficult to choose the right technology for development. Among them, these two technology Python and Swift has been most popular in recent times, as they are similar in quite a few ways, and have a lot of advantages as compared to other technologies. Lets dive into their differences 

**Python **

It is one of the most popular and widely use technology, the initial version of python was not that great but they have evolved over the timeframe and currently, it is one of the most widely used languages. It comes with the following advantages

1 - Open-source programming language
2 - It is simple to use
3 - Wide variety of libraries

**Swift**

Swift was initially introduced by apple in 2014, and in the next year, it became an open source as it gained more popularity. This technology is well known among mac, ios tvOS developers, and it stands 11 among the top 50 programming languages. It comes with the following advantages 

1 - It's straightforward & easy to learn 
2 - It creates clear and safe code
3 - It is convention-based and feels similar to C++

[This post](https://www.blackdown.org/swift-vs-python/) will give you a detailed comparison of these two technologies and will guide you to choose the correct one based on your project and business. A python is a good option for general-purpose programming, while Swift holds an upper edge for development on iOS and macOS apps
Laravel React Authentication Full Tutorial I Breeze Api Session Auth
Tags: tutorial, react, laravel, beginners
Published: 2022-12-20 07:43:12

{% embed https://www.youtube.com/watch?v=YhTZdiGpaxI %}
In this video, we are going to create full ReactJS + Laravel API auth with Breeze Sanctum session.
Laravel Authentication.
React authentication.
Laravel react authentication.
React Tailwind CSS.

Playlists:
Vue Authentication: https://bit.ly/3g7YZHd
Laravel Inertia Portfolio - https://bit.ly/3DlxTp5
Laravel Reddit clone - https://bit.ly/3UOYS2O
React tutorial for beginners - https://bit.ly/3arkqjX
Laravel Filament Blog - https://bit.ly/3nWYv74
Laravel 9 Full Tutorial - https://bit.ly/3nTiyTR
Laravel 9 Media Library - https://bit.ly/3LpJmVr
Laravel Essentials Full Tutorial - https://bit.ly/3vplyuC
Laravel Mail Tutorial - https://bit.ly/37mJUNh 
Laravel Restaurant Reservation - https://bit.ly/3Jc5IcG
Spatie Laravel Permission - https://bit.ly/3pOsOhN
Laravel Testing For Beginners - https://bit.ly/3t1gNq4
Laravel Roles and Permissions - https://bit.ly/3gOhM7d
LARAVEL INERTIA MOVIE APP - https://bit.ly/3FVMp4Q
Laravel Livewire Movie App - https://bit.ly/3s8D6v1
Laravel Classified Website - https://bit.ly/3nsFRnb
Livewire Employees - https://bit.ly/2ZtIpZY
Laravel Employees Management - https://bit.ly/3Gglt14
Laravel admin panel - https://bit.ly/3CcX75M
Part 2 in the Essential to Surviving in the Wild World of Software Development cont.
Published: 2022-12-20 07:22:33

**Step 7: Cookie Consent and Other Ways to Obstruct the Web Pages**

Everyone loves features and cookies, right? Well, not according to the EU. Make sure to add as many cookie consent notifications as possible to your website to ensure that your users can't actually use it. 
_Bonus points if you can find a way to block the back button or break the website on certain devices._

**Step 8: Deadline Driven Development, Can We Get This Done Tomorrow? "I Believe in You."**

Who needs realistic timelines and proper planning when we have well wishing and kind words? much like the plants I have serial murder, was it my obscene lack of water and maintenance or did they not have what it takes to survive in this fast-paced environment. Thats right just set ridiculous deadlines and expect your team to magically meet them, aim for the moon If you miss, you may hit a star. And when they inevitably fail, just tell them "I believe in you"  put it down to the architecture and move on to the next deadline.

**Step 9: Developing in Production, Last in First out**

Why bother with a staging environment? Just push your code straight to production and hope for best. be sure to break the important stuff on Friday _when the clock hits five, that's your problem now._ or maybe there's a API for that see also Coping with a SAAS Addiction.

**Step 10: Breaking Important Stuff on Friday, Just Let the Intern Fix It**

It's Friday, the end of the week and time to kick back and relax. But before you do, why not break something important and let the intern deal with it? After all, they're the lowest on the totem pole and it will give them not only valuable experience but an opportunity to show just how much discretionary time they have been hiding. And if they can't fix it, well, there's always Monday to deal with it.

**Step 11: Fundamentals of Establishing a Scapegoat**
Things are falling apart and you have no idea how to fix them. Don't worry, just find someone to blame and all your problems will magically disappear. It could be a junior developer, a contractor, or even a vendor - anyone will do as long as they're not you.

So there you have it, the essential guide to surviving in the wild world of software development. Just follow these steps and you'll be a pro in no time! Or at least, you'll be able to pretend like you are. Good luck!"
Why Integration Tests are 'must have' to deliver high quality software?
Tags: ci, testing, automation, tutorial
Published: 2022-12-20 07:18:26


Testing is a very important part of the SDLC. Sometimes I've seen projects where there are only unit tests, omitting integration tests. 

When I asked the development teams why they weren't there, I got different answers:
- We have a good coverage of unit tests, that's enough
- We had these tests but they were flaky, so we don't develop them
- Its hard to write first test and we have no time now to write them

![issue on production](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ruvw8v2t5916te623wef.jpg)

Good unit test coverage is not enough in most cases. 

### Why?

Unit tests provide certainty in Core places where we have business rules. 

They ensure us that logic and calculation works as expected. They cannot check integration between components because they are work in isolation.

Integrations tests can ensure integration of components work properly. In addition:
- serialization
- dependency injection registration
- database configuration
- data persistance
- schema migrations
- http clients
etc.

> Without integrations tests we are not enough confident to put our code to production, without manual regression tests. That makes real CI/CD impossible.


According to test pyramid.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3a901pgf97abum39qb6b.png)

I would use suggest a lot of unit tests where we have logic + a few integration tests to cover e.g happy path with one variant of logic and negative path.

If there is no logic i will write only integrations tests. 

There are many ready-made libraries that make our lives easier.

For example, WireMock can be used to mock responses from the external systems that we are integrating with.

When we use events for integration we can use queue simulator and simulate event publishing. Test our whole module in isolation. 

To sum up, Unit test can check logic but won't tell us that application behaves correctly. Unit Test with Integration tests can do it. With such a combination plugged into CI/CD pipeline you and your team should be pretty confident when you release new version of your code. First test can be difficult to write but it's is worth it. If your team will embrace the speed of implementations and thus the quality of the code will increase significantly.
Community Builders – Christmas Edition
Tags: cbchristmas2022
Published: 2022-12-20 07:07:00

## What surprises you most about the community builders program?

It is a world-wide global program! I meet here a lot of people from different cultures, countries, backgrounds. But what unites us is the passion to AWS, tech. And we always can find a common language!

##What’s your background and your experience with AWS?

I started my exiting AWS journey last April, first I got hands-on with Lambda, S3, SageMaker (since I am a Data Scientist). Then when I was preparing to Machine Learning certification, I discovered services like Athena, Glue, Kinesis, etc. Thanks to the program, I got Data Analytics certified. Now I am building the project based on Lex, Polly, Lambda, S3.
And this is a non-stop learning, very fascinating!

##What’s the biggest benefit you see from the program?

I would say that these are the possibilities that the program provides. The program's benefits and content are made wisely, so you have a cool infrastructure to grow technically. With credits you can build whatever you want, with sessions and cloud academy courses you have resources to learn, if you are stuck, you have a community of people willing to help. Finally, you can share your knowledge with other people!

##What’s the next swag item that you would like to get?

A backpack or a T-shirt.

##What are you eating for dinner today? Share the recipe!

My dinner is stupid simple: I just blender an apple, a banana, a tangerine, a carrot and some parsley (or spinach) into a smoothie.

##Is there anything else you would like to say about the community builders program in 2022?

It's hard to express in words how happy I am to be a part of this  awesome program! Thanks a lot! I am really looking forward to the next year!
How to Set Up a Cron Job to Update Your Firebase Collection
Tags: javascript, node, firebase, cronjob
Published: 2022-12-20 07:04:00

Are you tired of manually updating your Firebase collection? Do you want a way to automate the process and save yourself time? Then a cron job is the solution you need!

A cron job is a task that is scheduled to run at a specific time or interval. In this tutorial, we'll show you how to set up a cron job using NodeJS, Express, and TypeScript to update your Firebase collection every 5 minutes.

## Prerequisites

Before you get started, make sure you have the following tools installed on your machine:

- NodeJS
- Express
- TypeScript


## Step 1: Install the Firebase SDK
To access and update your Firebase database from your NodeJS code, you'll need to install the Firebase SDK for NodeJS. You can do this by running the following command:

```
npm install firebase-admin
```


## Step 2: Initialize the Firebase Admin SDK

Once you have the Firebase SDK installed, you'll need to initialize the Firebase Admin SDK by providing it with the appropriate credentials. You can find the credentials in the Firebase console under the "Project Settings" section.

To initialize the Firebase Admin SDK in your code, use the following lines:

```
import * as admin from 'firebase-admin';

admin.initializeApp({
  credential: admin.credential.cert(serviceAccount),
  databaseURL: "https://<DATABASE_NAME>.firebaseio.com"
});

```


## Step 3: Update the Firebase Collection

Now that you have initialized the Firebase Admin SDK, you can use it to access and update your Firebase database. For example, you can update a specific collection in your database using the following code:

```
const db = admin.firestore();
const collectionRef = db.collection('<COLLECTION_NAME>');

collectionRef.update({
  field1: 'new value1',
  field2: 'new value2'
});

```


## Step 4: Set Up a Cron Job

To set up a cron job that runs every 5 minutes, you'll need to use a package called "node-cron". You can install this package by running the following command:

```
npm install node-cron

```

Once you have node-cron installed, you can use it to schedule a task to run every 5 minutes by using the following code:

```
import * as cron from 'node-cron';

cron.schedule('*/5 * * * *', () => {
  // your code to update the Firebase collection goes here
});

```


## Step 5: Set Up an HTTP Server

Finally, you'll need to set up an HTTP server using Express in order to run your cron job. You can do this by using the following code:

```
import * as express from 'express';

const app = express();

app.listen(3000, () => {
  console.log('Cron job listening on port 3000');
});

```

With these steps, you should have a cron job that runs every 5 minutes, updates a Firebase collection, and is set up using NodeJS, Express, and TypeScript.
Hộp quà Tết dinh dưỡng đẹp & sang trọng 2023
Tags: webdev, javascript, beginners, programming
Published: 2022-12-20 07:00:17

Quà Tết hạt dinh dưỡng luôn phù hợp tặng cho mọi đối tượng và dịp lễ, đặc biệt là dịp Tết Nguyên Đán sắp tới đây! Tham khảo ngay các mẫu hộp quà Tết hạt dinh dưỡng đẹp & sang trọng tại SagoGifts.

https://sagogifts.vn/hop-qua-tet-hat-dinh-duong/

#hopquatet #gioquatet #quatet #quatangtet #quatethatdinhduong
#quatetcaocap #hopquatet2023 

https://www.facebook.com/profile.php?id=100084657319289
https://twitter.com/quatethcm
https://www.instagram.com/quatethcm2023/
https://www.youtube.com/channel/UCnSrSibLNWYjDvSCB7wrF0Q

![Uploading image](...)
An AWS Community Builders holiday story
Tags: aws, awscommunity, builders
Published: 2022-12-20 07:00:00

A holiday story of AWS Community Builders, this is the Johannes Koch edition, check out the other posts from my fellow AWS Community Builders on why they love the program and learn more about them too!

## What surprises you most about the community builders program?
All of the Community Builders that I talked to or met - they have the same mindset and understanding of wanting to help the AWS Community to get better at building. Everyone is very passionated about AWS & everything involved.
## What’s your background and your experience with AWS?
I've done a cloud migration of an on-premise application to a SaaS offering, I've developped a serverless applications and event driven services on AWS. I'm passionated about CI/CD and automation as well as "You build it, you own it" mindset.

## What’s the biggest benefit you see from the program?
Getting to know people, sharing experiences and learning from others. SWAG is a nice add-on, but the AWS led training or knowledge sharing sessions are priceless.

## What’s the next swag item that you would like to get?
I'm still missing a Community Builders Backpack - I'd love to get one that I can use out-door and that is waterproof :-)

## What are you eating for dinner today? Share the recipe!
We Germans often eat bread with ham, cheese, butter and other sneaky things on it ;-) 
Hard to share the recipe as I usually buy the bread instead of making it on my own.
![Bread from germany](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ko0osa4c42xneejubxer.jpg)


## Is there anything else you would like to say about the community builders program in 2022?
The program is an amazing thing for myself and gave me a lot of insights into AWS but more importantly it helped me grow my network by a lot meaningful connections. I am looking forward for more great collaboration in 2023!
The AWS team around Jason, Lily, Taylor, Ernesto and others are just AWESOME and investing a lot of their time into making the program work for us - THANKS for that!

![All DevChat speakers @ re:Invent 2022](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ii0oltr5br72m5sr8arc.jpg)
An AWS Community Builders holiday story
Tags: cbchristmas2022
Published: 2022-12-20 07:00:00

A holiday story of AWS Community Builders, this is the Aritra Nag's edition, check out the other posts from my fellow AWS Community Builders on why they love the program and learn more about them too!

## **What surprises you most about the community builders program?**
It's one of most erudite community i have ever come across. Everyone is enthusiastic about contributing their knowledge and helping each other . There are builders from different backgrounds, knowledge levels and roles, and everyone is willing to share their knowledge and help each other at their best.

Find out more about the AWS CB program here: https://aws.amazon.com/developer/community/community-builders/


## What’s your background and your experience with AWS?

I am a full stack developer having an experience of 12 years in IT consulting working with customers ranging from Automotive industry to Retail Management. I have mostly helping customer develop cloud native applications and implement their infrastructure using IAAC tools like terraform and AWS CDK

## What’s the biggest benefit you see from the program?

Networking and Knowledge Sharing is one of the big benefit  for the program.I have got builders from around the world and had meaningful conversations because of this program. This program encourages also to contribute more towards the community by creating more content and presenting them onto the world.

## What’s the next swag item that you would like to get?

AWS Community Builder sneakers 😉

## What are you eating for dinner today? Share the recipe!

As an Indian , rice is one of the favourite dishes I love to have. My preference is a Biriyani that can prepare easily similar to this: https://www.allrecipes.com/recipe/72483/biriyani/

## Is there anything else you would like to say about the community builders program in 2022?

This program has been instrumental for my technical upskilling in the AWS realm. It has given me the confidence to speak on stage representing my organisation and speaking about AWS solutions and products.

Thanks a lot Jason Dunn - the AWS CB Program Manager and all of the management team who are dedicated to make this community better and better every day!

Looking forward to an AWSome 2023 ahead.
Real-Time Governance (RTG) – A Powerful Initiative by N. Chandrababu Naidu
Published: 2022-12-20 06:40:04

Driven by the motto “People First,” Naidu unveiled a powerful initiative “Real Time Governance (RTG)” in 2017 as a functional arm with a 360-degree life cycle approach, leveraging technology. The RTG provided an efficient and seamless public service delivery system that benefited over 50 million citizens and allowed the government to monitor and review infrastructure projects, crime and incidents, weather, and natural calamities across the state in real-time. Unsurprisingly, the RTG initiative received international acclaim and was honoured with the Hitachi Transformation People’s Choice Award.
A state centre and 13 district centres make up the RTGS. The organisation operates from the RTG State Center with data input from the people hub, which hosts the data of all the households in the state along with the government benefits they receive and is in turn linked with various government departments. It is a fully-functional and highly developed ecosystem of technology and skill. To catch pace with TDP news, you may visit our website and stay up to date on TDP MLA’s in East Godavari latest news.
Additionally, a phone centre that will serve as both a platform for internal grievance redress and a communication and monitoring wing has been established. Surveillance systems, drones, biometric enhanced technologies, machine learning technology, and the Andhra Pradesh Weather Forecasting and Early Warning Research Centre, or AWARE, are some of the other sources that give the RTG state centre real-time data. The RTGS also receives support from other organisations in its ecosystems, such as Drones Corporation of A.P., AP Towers, AP Content Corporation, and A.P. Virtual Classes Corporation. You may get the most recent East Godavari TDP news and TDP achievements in East Godavari on our website.
The RTGC serves as a location where the chief minister and his team can make data-driven decisions and ensure that the government is able to make decisions that will have a positive impact on the lives of the citizenry with the motto of "People First," leading to a happiness index of 80%—the larger objective of the Government.
As a dynamic platform for public involvement, Real-Time Governance also has a dedicated social media team that actively engages the public about the work done by the government in real time. Check the TDP developments in East Godavari on our website frequently to remain up to date on political news in the East Godavari area. For more visit  eastgodavaritdp.com
Annotated Tech Talks
Tags: development, devops
Published: 2022-12-20 06:37:00

---
title: Annotated Tech Talks
published: true
description: There are plenty of excellent presentations given at various conferences. Let's look at some of them
tags: discuss, development, agile, devops
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
published_at: 2022-12-20 06:37 +0000
series: tech-talks
---

There are plenty of excellent presentations that were recorded at various conferences. Many of those get lost in the sea of other videos with less relevant videos.

For a while I thought it would be worth highlighting some of these, even if they are from several years ago. A **curated list of Tech Talks**.

The main topics I am interested in are
* (Software) Development methodologies
* **eXtreme programming**
* **Agile** (as in the manifesto)
* **DevOps** (as a methodology)
* "best practices" for (software) development


As I watch these videos I like to take notes. When the speaker mentions a book, an author, or refers to a web site I like to look them up and include the links in my notes. That helps me remembering what the speaker said.

This turns them into **Annotated Tech Talks**.

As I am already doing that anyway at one point I started to share these notes in the hope that my selection of presentations and the notes will help someone else as well.

I am going to share some of these videos and notes here on DEV and to make it easier to find I'll put them in a series and this will be the opening page of that series.

If you are interested in the full list of videos I have already annotated check out the [Annotated Tech Talks](https://tech-talks.code-maven.com/).

If you see presentation that you think would be worth watching and worth featuring let me know!
Javascript Promises in Simple Term
Tags: javascript, promises, beginners, webdev
Published: 2022-12-20 06:33:37

JavaScript Promises are a language feature that allows you to work with asynchronous code in a more synchronous way. They provide a way to handle asynchronous results in a more sequential, easier-to-read manner.

Promises are a pattern that you can use to structure your code to handle asynchronous tasks in a way that is easier to understand and maintain. They consist of a function that returns a Promise object, which represents the eventual completion (or failure) of an asynchronous operation, and a set of methods for working with the Promise.

Here's an example of how you might use a Promise to handle an asynchronous operation:

```
function getData() {
  return new Promise(function(resolve, reject) {
    // Do an async task (such as making an HTTP request)
    if (/* async task is successful */) {
      resolve(/* async result */);
    } else {
      reject(/* error */);
    }
  });
}

getData().then(function(result) {
  // do something with the result
}).catch(function(error) {
  // handle the error
});

```
In this example, the getData() function returns a Promise that represents the completion of an asynchronous operation. When the operation completes successfully, the Promise's **resolve()** function is called with the async result. If the operation fails, the Promise's **reject()** function is called with an error. The **then()** and **catch()** methods of the Promise allow you to specify callback functions that will be called when the Promise is resolved or rejected, respectively.

Promises are a useful way to structure your code and make it easier to read and maintain. They can also help you avoid callback hell, which is a common problem when working with asynchronous code.