teleren/devto huggingface dataset:
2022 In Retrospective: My Lessons
Tags: motivation
Published: 2022-12-31 08:41:34

With a cup of coffee in hand in the dawn of the morning, I decided to look back in 2022 and write what comes into my head at the first instance. I hope you can draw inspiration from my small experiences.

I lost my job in 2022. This was one of the biggest highlights of my year. I recently had a promotion, life was beginning to look “figured out” for me. I had plans for an increase in income as a result of the promotion. 

The change was so sudden but it made me take some decisions that I am grateful for:

- I got more serious with technical writing I started seeking opportunities to write paid content and I was able to land some that helped me sustain myself financially. I wrote over 50 original articles in my blog and other external blogs.
- I had a big leap in my career direction towards web3. I recommend checking out this article as a guideline for learning web3: [https://www.freecodecamp.org/news/breaking-into-ethereum-crypto-web3-as-a-developer/](https://www.freecodecamp.org/news/breaking-into-ethereum-crypto-web3-as-a-developer/).
- I started contributing to open source actively. For the first time, I was able to complete the Hacktoberfest challenge. I am currently contributing to [https://github.com/lenstube-xyz/lenstube](https://github.com/lenstube-xyz/lenstube), a decentralized video-sharing platform built on the Lens Protocol.

One of my biggest lessons is to find a way to manage your work-life balance. My relationship with some friends sucked in 2022 (I even lost some friends) but I became better. 

## What will 2023 Look Like for Me?

I don’t have any big plans for 2023 yet. Rather I have a process that I’d keep working on. The process includes:

- consuming and creating web3 knowledge.
- exploring deeply into technical writing and content creation.
- more involvement with the open source community in Nigeria.

I believe 2023 will be filled with happiness and greatness for everyone. 

Thanks for reading my early morning thoughts. I wish you the very best in 2023!
Number of Enclaves
Tags: javascript, leetcode
Published: 2022-12-31 08:23:39

[Number of Enclaves](https://leetcode.com/problems/number-of-enclaves/description/)

```js
/**
 * @param {number[][]} grid
 * @return {number}
 */
var numEnclaves = function (grid) {
  if (!grid.length) return;

  let n = grid.length;
  let m = grid[0].length;

  const isValid = (i, j, n, m, grid) => {
    if (i >= 0 && i < n && j >= 0 && j < m && grid[i][j] == "1") {
      return true;
    }
    return false;
  };

  const callDFS = (grid, i, j, n, m) => {
    grid[i][j] = "0";

    if (isValid(i + 1, j, n, m, grid)) {
      callDFS(grid, i + 1, j, n, m);
    }
    if (isValid(i - 1, j, n, m, grid)) {
      callDFS(grid, i - 1, j, n, m);
    }
    if (isValid(i, j + 1, n, m, grid)) {
      callDFS(grid, i, j + 1, n, m);
    }
    if (isValid(i, j - 1, n, m, grid)) {
      callDFS(grid, i, j - 1, n, m);
    }
  };

  for (let i = 0; i < n; i++) {
    // left -> top bottom
    let j = 0;
    if (grid[i][j] == 1) {
      callDFS(grid, i, j, n, m);
    }

    j = m - 1;
    // right -> top bootm
    if (grid[i][j] == 1) {
      callDFS(grid, i, j, n, m);
    }
  }

  for (let j = 0; j < m; j++) {
    // top -> left right
    let i = 0;
    if (grid[i][j] == 1) {
      callDFS(grid, i, j, n, m);
    }

    i = n - 1;
    // bottom -> left right
    if (grid[i][j] == 1) {
      callDFS(grid, i, j, n, m);
    }
  }

  let count = 0;
  for (let r = 0; r < n; r++) {
    for (let c = 0; c < m; c++) {
      if (grid[r][c] === 1) {
        count++;
      }
    }
  }
  return count;
};


console.log(numEnclaves([[0,0,0,0],[1,0,1,0],[0,1,1,0],[0,0,0,0]]));
```
Step by step guide for DevOps, SRE or any other Operations Role in 2023
Tags: devops, learnwithankush, roadmap, 2023
Published: 2022-12-31 08:07:55


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

Source: https://roadmap.sh/devops
What I've been reading (week 52, 2022)
Tags: watercooler, news, discuss
Published: 2022-12-31 08:00:17

Each week I share a few things that I've been reading. Here's seven from this week:

## [The Safari bug that never was](https://obyford.com/posts/the-safari-bug-that-never-was)

An example of how frontenders at GDS tracked down a Safari text layout bug, put together an A++ bug report, and worked with WebKit to fix it. I like the idea of inviting an engineer from WebKit to talk about the cause of the bug once it's sorted, a nice way of closing the loop.

## [Mobbing Pattern Language](https://jay.bazuzi.com/Mobbing-Pattern-Language)

A list of patterns and antipatterns for mob/ensemble programming

## [Concepts behind modern frameworks](https://dev.to/lexlohr/concepts-behind-modern-frameworks-4m1g)

A good summary of the different things that we get from frontend frameworks (state, reactivity, memoisation, templating etc), and how they differ between them.

## [Storybook and Mock Service Worker, a match made in heaven](https://hmh.engineering/storybook-and-mock-service-worker-a-match-made-in-heaven-e762bd7951ce)

Saving this for future use!

## [Dynamic LCP Priority: Learning from Past Visits](https://philipwalton.com/articles/dynamic-lcp-priority)

A Philip Walton blog post is always good, and this one is no exception. It's a smart use of client-side Core Web Vital reporting with a Cloudflare edge-y backend (worker and KV store) to monitor LCP images and dynamically add priority hints via the HTML.

## [Fun CSS-only scrolling effects for Matterday](https://lynnandtonic.com/thoughts/entries/fun-css-only-scrolling-effects-for-matterday)

It's that time of year again where Lynn Fisher updates their personal site design 😍 I spotted this nice how-to article on classy CSS-only scroll animations from when Lynn worked at Netflix.

## [Get off the main thread with an inline web worker: an example](https://calendar.perfplanet.com/2022/get-off-the-main-thread-with-an-inline-web-worker-an-example)

This is great! A nice trick to keep all your related code in one file, but still be able to use Web Workers by putting the worker code into a Blob, then creating a URL from that Blob, then using that URL as the source of the Worker.

---

I also [tweet these as I find them (@philw_)](https://twitter.com/philw_) and post them on my personal site at https://wolstenhol.me/#reading.

What were your favourites? Was there anything you found useful?

{% user philw_ %}
Writing files with Node.js
Tags: node, programming, webdev, tutorial
Published: 2022-12-31 07:28:57

Writing data to a file is one of the most common tasks in any programming language. Now let's take a look at how we can write files in node.js 

**Using writeFile():**

```js
//importing file system module
const fs=require('fs')
const path='./Files/write.txt'
const data='Hello this is new data'
fs.writeFile(path,data,(err)=>{
  if(err)return console.log('error occurred while writing data')
})
```
As we see above writeFile takes the following parameters:

**path:**filepath of the file to write
**data:**data to be written to the file
**callback:**If there is no error, err === null, otherwise err contains the error message.

writeFile is asynchronous in nature, means it does not effect the execution of the program.

**using writeFileSync():**

```js
//importing file system module
const fs=require('fs')
const path='./Files/write.txt'
const data='Hello this is new data'
try{
    fs.writeFileSync(path,data)
    //file written successfully
}catch(err){
    console.log('error occurred while writing data')
   //error occurred
}
```
As we see above writeFileSync takes the following parameters:

**path:**filepath of the file to write
**data:**data to be written to the file

writeFileSync is synchronous in nature, which means the rest of the code execution will be stopped until the file writing is complete.

**Using promise-based writeFile():**

```js
//importing promise-based file system module
const fs=require('fs').promises
const path='./Files/write.txt'
const data="Hello this is new data"
const fileWrite=async ()=>{
    try{
       
        await fs.writeFile(path,data)
        //file written successfully
    }catch(err){
        console.log('error occurred while writing data')
        //error occurred
    }
}
fileWrite()
```
As we see above promise-based writeFile takes the following parameters:

**path:**filepath of the file to write
**data:**data to be written to the file

since it is promise-based we can use async-await as shown above
New Open Source CRM for project Management and Invoicing
Published: 2022-12-31 07:00:01

Hello everyone,

I'm excited to announce the launch of my new open source project: Gmax CRM. an invoicing and project management tool for small businesses.

This tool is designed to make it easy for small businesses to track their projects, create and send invoices, and manage their finances. It's built on top of a modern stack and is designed to be easy to use and customize.

I've been working on this project for a while now, and I'm thrilled to finally be able to share it with the community. I believe it has the potential to make a big difference for small businesses looking for a simple and effective way to manage their finances.

You can find the project on GitHub [https://github.com/ajithjojo/gmax-crm]
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/20cxmicphr3ymvr975q4.jpg)(https://github.com/ajithjojo/gmax-crm) . If you'd like to contribute, feel free to fork the repository and submit a pull request. I'm always looking for new contributors and feedback to help improve the project.

Thank you for your support, and I hope you find the tool useful!
Where can I deploy my web app for free, any suggestions?
Tags: webdev, help, beginners
Published: 2022-12-31 06:55:53

I am trying to learn how to build and deploy a webapp using following stack

Frontend - React ^18.2.0
Backend - Node.js v16.13.0 [Rest API]
Database - Mysql 8.0+
Can you guys where I can host for free. Help appreciated
Some useful websites for your Frontend design
Tags: webdev, javascript, design, css
Published: 2022-12-31 06:26:44

Finding a good background or a cool looking animation is a hassle and selecting right color is tough. We share the same pain guys, so let me help you with some these useful and amazing sites that can help you out and reduce your pain of witch hunting.

**1.GET WAVES**

This site lets you create SVG waves for your backgrounds. you can just copy the svg code or download the svg file.
**https://getwaves.io/**
![Get waves for you project/ website background](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gkwb6whf383yd1ppme1i.jpg)


**2.BGJar**
There are various types of background choices available and not just limited to waves. It has shapes & colored patterns, hexagons, circuit board , clouds , abstracts and many more.
**https://bgjar.com/**


![Background library for your projects and websites](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mqnhjot5qvg3mq2wkja9.jpg)


**3. Coolors**
The ultimate color palette generator, you can randomly generated your colors or you can just find palettes related to your brand colors.
**https://coolors.co/**

![colour palettes for you websites/projects](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9uvn3ksseee13wa1zawg.jpg)

**4.Lottieflies**
Its an animation library, Yup you heard it right. This site provides you light weight scalable animations for various projects, ads and social media etc.
**https://lottiefiles.com/**


![Lottieflies is an animation library that provides light weight scalable animations for various projects, ads and social media etc](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7uyolxqjegevjbn4krzr.jpg)


**5.Feather Icons** 
This site is so simple and yet so useful. Variety of icon available for use. All you have to do is adjust the size and download the svg file. Yeah, its as simple as that.
**https://feathericons.com/**


![feather icons provides free icons and ready to use svg icons for your projects and websites](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f1oemrohtxni2vzzy61y.jpg)

**6.Box Shadows**
It does what its name suggests, box shadow generator, I guess no details or introduction is required for this. This generator gives you more flexibility for designing the shadows.
**https://box-shadow.dev/**


![generating box shadows for your html boxes, free simple and elegant](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4l8wyebbr1twwhds0d0o.jpg)





Thank you for reading. Hope this helps you guys. 
Follow for more , Adios and Happy New Year.
Best programming language?
Tags: beginners, programming, career, codenewbie
Published: 2022-12-31 06:22:50

Most times I come across posts which are titles, "best programming language 2022" "best programming language to learn" or even "best programming languages for beginners", the list goes on. As I see these I get confused, discouraged, and sometimes feel bad for upcoming programmers who might learn a programming language they won't like or use.
People put competition between these programming languages as saying one is best when in reality each is better at one aspect of tech or the other and it's just a popularity contest. Rather than read or write articles about this, articles that help like these: "languages best for data science", "languages best for web development", and so on. In this article, I'll go over the programming languages you can learn for some different aspects or fields of technology.The programming language you should learn is based on some career paths.

**Programming languages used in different aspects of tech**

- **Data science** - In this aspect, languages used include C#, R, Python, C++, and so on. Python is one of the most popular to learn, but the others have aspects of use based on companies' preferences or yours as an individual, consider these before diving into learning a language.
- **Web development** - Languages with aid web development include JavaScript, Python, nodejs, PHP, and typescript. Javascript is most popularly used here along with the others or alone.
- **App development** - Languages used in this field include Kotlin, Java, Swift, C++, and so on.
- **Cyber Security**- Programming languages used in this field include PHP, Javascript, Python, Perl, and so on.

In conclusion, all programming languages have use for various aspects of technology. So asking the first right question is important for beginners, instead of asking " what programming language should I learn?" Or "which is the best programming language to learn". Start by finding which aspect of technology to dive into and choose a language, you really can't go wrong with any. Thanks for reading feel free to like, comment, and happy coding.
Space complexity & Time complexity
Published: 2022-12-31 06:20:43

Hi, I just started the coding test using LeetCode, and I found that making the solution with less tome complexity and small space complexity is important. This is not only for LeetCode but also for creating productive application. Anyway, what is space complexity and time complexity?

> Space complexity... Space complexity consists of space used by input and Auxiliary space. Space complexity is the total used by a specific algorithm.

> Time complexity... The total amount of time that the computer takes to run a certain algorithm. The longer the whole processing time, the bigger the time complexity becomes.
Do 1 Scary Thing Every Day
Published: 2022-12-31 06:09:09

Entrepreneurship is a ride of discomfort. You are almost as a rule doing things that are outside your comfort zone. I have in so deep I can’t find my way back to my comfort zone. While I was gone, someone came and walked away with it, I think. Or at least, that’s what it feels like for the time being.

a) I am not a writer, but I write.

b) I am a programmer at heart, but I market what I have built.

c) I reach out to people who might be interested in my product. That must be amazing to my mother if she could understand what I do.

d) I chat with people on my website and turn it into sales conversations where possible.

e) I follow up on sales conversations. That’s like the toughest thing in sales, they say, and I do it.

f) Right now, I feel like I am bragging, and I shouldn’t be writing this blog post. But what I have written is true. Unbelievable to me even, but true.

So I follow this rule of doing one scary thing for just 10 minutes every day, not the whole creepy thing. That’s too much. I might die. So let me enter the lion’s den, stay there for just 10 mins and get out. And the next day I do it again.

It’s gotten me this far. In the last year, I created a SAAS product, developed a website(Proxies API) to sell it, and started marketing and selling it every day. All unlike me, accept the programming part. It enabled me to build a business that, from the looks of it, will sustain me for a long time and has helped me to quit my job.

The author is the founder of Proxies API, a proxy rotation api service.
What is the best Python course in 2023?
Tags: python, datascience, bigdata, database
Published: 2022-12-31 05:51:04

One of the most well-known programming languages, Python, is used across many industries, including web development, automation, [data science and machine learning](https://brainalyst.in/data-science-course-placement-guarantee/), to mention a few. Many experienced programmers are learning Python in 2022 because it has recently become the standard language for data science and machine learning activities.

## Why is Python used?

Python is a general-purpose computer language that prioritises simplicity over all other factors. It simplifies the programming process by avoiding ugly issues like memory management and boilerplate code and instead focusing on social, readable code. It is among the most reasonable languages for novices because it is simple to understand.

It can be used for various things, including making online apps and video games. It is very well known because of its adaptability. The TIOBE index, which lists the most popular programming languages, now places Python at the top. And after JavaScript and HTML/CSS, Python is the third most well-known language, according to Heap Overflow.

[Brainalyst](https://brainalyst.in) offers the Total Python Bootcamp: Go from zero to hero in the Python 3 course if you want to learn Python like an expert and use it to construct real-world tasks. It is one of the best python courses for beginners because it covers everything you need to know to start producing jobs. Additionally, for beginners, it is the best Python training. Whether you have a degree in computer science or are just beginning to comprehend how to code.

These remarkable salaries in Python are also offered for various professional types. Python expertise earns an annual salary of roughly $62,878, according to PayScale, and wages are higher in the US. As degrees, certificates, and knowledge increase, the figures rise. One of the fastest-growing programming languages, its development is constant and unhindered. It has gained relevance on par with and even greater than Java, C, and C++ today and in the years to come. The need for Python is rising as more large corporations use Python for their server-based and simple projects.

Software Engineer – $103,035/yr
Sr. Software Engineer – $129,328/yr
DevOps Engineer – $115,666/yr
Data Scientist – $117,345/yr
Sr. Data Scientist – $136,633/yr

The top Python education gives students a chance to work for attractive compensation and get the most important jobs for the future. Each student receives thorough industrial-level instruction from some of the best institutions, like Brainalyst in Delhi, so they can easily succeed in business. [Python courses](https://brainalyst.in/data-science-with-python-course/) currently offer the most exciting career opportunities and work roles.
Introducing Acey (state management lib for React Native)
Tags: reactnative, react, typescript
Published: 2022-12-31 05:40:43

Hello,

For 3 years, I gradually coded and improved a state management library built for React Native, but then also for ReactJS, called **Acey**.

{% embed https://github.com/AceyJS/acey %}

Since then, I have used it on many projects, and I can say it’s pretty stable. I also lately improved the documentation, so I think it’s time now to make it public.

So, to sum up, and answer the question, “How is Acey different from dozens of other state managers ?”

- I love Object Oriented programming, so it’s thought like React of the good old times, that is to say: a state - a class.

- It’s boilerplate-free. (no selectors, reducers, context, or bindings.)

- States can auto-synchronize with the local store, and pull back their previous data after the app quit/crash/leave/whatever, which is a good plus in React-Native, especially to make your app usable even without a network.

I have more things to say, but I think the best is still to check out the [Github Page](github.com/aceyjs/acey), where there are many concrete examples. 


If you have any questions, you can ask me here or open an issue on GitHub. 🐱

Enjoy your weekend and new year's eve !
O que é e para o que serve Javascript?
Published: 2022-12-31 05:36:16

Javascript ou Js para os mais íntimos é uma linguagem de programação usada para manipular conteúdos dinâmicos na web.

Uma das principais vantagens do JavaScript é a sua facilidade de uso e a grande quantidade de recursos e bibliotecas disponíveis. 

JavaScript é compatível com a maioria dos navegadores web, o que significa que as aplicações criadas com JavaScript podem ser acessadas por muitos usuários.

JavaScript é uma linguagem orientada a objetos, ou seja, ela é baseada em objetos e seus métodos, permitindo a criação de objetos customizados, o que facilita a criação de aplicações complexas e a reutilização de código.

Além disso, o JavaScript também possui uma sintaxe simples e fácil de aprender, o que o torna uma ótima opção para programadores iniciantes.

Além de ser amplamente utilizado na web, o JavaScript também é um componente importante em tecnologias como NodeJs, React e Angular, usadas para criar aplicações web modernas e escaláveis.

Resumindo, o JavaScript é uma linguagem de programação popularmente usada para criar aplicações web dinâmicas e interativas. Ele é fácil de aprender e possui uma grande variedade de recursos e bibliotecas, além de ser compatível com a maioria dos navegadores web. Ele também pode ser usado para criar aplicações móveis, servidores e dispositivos IoT, e é um componente importante em tecnologias como NodeJs, React e Angular.