coding

Singly Linked List Implementation in Go

Singly Linked List Implementation in Go

Hey there DEV.to community! This is a part of my data structures and algorithms series. In this article, we will implement a singly linked list then in the next articles from this series I will implement other kinds of linked lists as well using Go. Image source: GeeksforGeeks To implement a singly linked list we need to structures, a node and a singly linked list itself. But before beginning to code here is how I like to organize my code: project ├── singly_linked_list │ ├── node.go │ └── list.go └── main.go Enter fullscreen mode Exit fullscreen mode A node only…
Read More
Rasp-Pi Network ID tool

Rasp-Pi Network ID tool

I needed a tool that could display relevant network information as quick as possible. Armed with a Raspberry Pi 3 B+, 2.13 inch Waveshare e-paper HAT V2, and a curiosity to explore its potential, I set out to develop a tool that could display network data. This was born out of necessity while I was setting up VLANs within PfSense. I got tired of using "ipconfig /release" and "ipconfig /renew" while testing network segregation and firewall rules. I will share that project in an additional post. I plan making this post as concise as possible. During my research to make…
Read More
Métodos padrão das interfaces e Fundamentos dos métodos padrão e exemplos

Métodos padrão das interfaces e Fundamentos dos métodos padrão e exemplos

Métodos padrão das interfacesIntrodução no JDK 8: Métodos padrão permitem que interfaces forneçam uma implementação padrão para um método. Esse recurso resolve problemas de compatibilidade ao expandir interfaces sem quebrar códigos existentes. Motivações: Compatibilidade retroativa: Adicionar novos métodos a interfaces populares sem invalidar código existente. Métodos opcionais: Permitir que certas implementações sejam opcionais, especialmente em casos de métodos irrelevantes para algumas classes que implementam a interface. Exemplo de código: // Interface com método padrão interface MyInterface { void abstractMethod(); // Método padrão default void defaultMethod() { System.out.println("Default implementation."); } } class MyClass implements MyInterface { public void abstractMethod() { System.out.println("Implemented…
Read More
Cómo Iniciar en el Desarrollo Web

Cómo Iniciar en el Desarrollo Web

Introducción El desarrollo web es una de las carreras más demandadas en la actualidad, tanto para aquellos interesados en el frontend (lo que el usuario ve) como en el backend (la lógica del servidor). Si estás comenzando y te preguntas por dónde empezar o cuánto puedes ganar como desarrollador, esta guía te dará un camino claro y recursos para comenzar. ¿Qué es el Desarrollo Web? El desarrollo web se divide en dos grandes áreas: Frontend: La parte visual e interactiva de un sitio web. Incluye: HTML: Estructura el contenido. CSS: Estiliza el diseño y la presentación. JavaScript: Añade interactividad y…
Read More
Asynchronous Operations in JavaScript: The Event Loop

Asynchronous Operations in JavaScript: The Event Loop

IntroductionJavaScript is Synchronous by DefaultSynchronous vs Asynchronous OperationsThe Event LoopHow it WorksImportance of the Event LoopConclusion Introduction Picture this: you just developed a web application that has to fetch data from a server, update the user interface, and respond to all of the user actions in real-time, but you’re worried about whether your code will be able to juggle these tasks efficiently. Well, no need to worry, this is where the event loop comes in. In this article, I’ll go over how the event loop works, the differences between synchronous and asynchronous operations in JavaScript, and the importance of the…
Read More
Let’s build “Java demos” together during Hacktoberfest

Let’s build “Java demos” together during Hacktoberfest

Last year I first learned about Hacktoberfest where devs are encouraged to contribute into open-source projects. I managed to pass the challenge, although I spent a lot of time going through many projects from first class global tools (where I didn't see how to contribute) to totally meaningless "Hello, Worlds" (where I didn't see why to contribute). In 2024, I am looking for struggle through this once again. But this time, I also wanted to place something on the other pan of the scale. I am working here and there on number of different side projects in my GitHub repo.…
Read More
TOML for lazy developers

TOML for lazy developers

Hello all! My name is Peter Wan, and I'm a student at Seneca Polytechnic, studying Computer Science. This week in my Open Source Class, my classmates and I were tasked with adding a new feature to another classmate's command-line (CLI) tool. Before getting into what this feature was, I'd like to give you some context on the CLI tool I worked on. The CLI tool I worked on is called, barrierless and was made by my friend, Vinh Nhan. The barrierless CLI tool uses different large language models (LLMS), such as Groq's llama3-8b-8192 or Gemini's gemini-1.5-flash model to take one…
Read More
AWS Auto Scaling: How to Improve Performance and Reduce Cloud Costs

AWS Auto Scaling: How to Improve Performance and Reduce Cloud Costs

Introduction Briefly introduce AWS Auto Scaling and its importance in cloud architecture.Highlight the benefits of optimizing performance and cost savings. For a visual walkthrough of the concepts covered in this article, check out my YouTube Video:- Understanding AWS Auto Scaling Explain what AWS Auto Scaling is and how it works. Discuss the components involved, such as Auto Scaling Groups, Launch Configurations, and Policies. Setting Up Auto Scaling Provide a step-by-step guide on how to set up AWS Auto Scaling. Create an Auto Scaling Group. Define Launch Configurations. Set scaling policies (target tracking, step scaling, etc.). Optimizing Performance Discuss best practices…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.