teleren/devto huggingface dataset:
Aprovechar el poder de la pereza en el desarrollo de software
Tags: softwareengineering, programming, concepts, beginners
Published: 2023-06-14 00:59:56

Te encuentras en una cena buffet, con un plato en la mano y una mesa llena de deliciosos platillos. ¿Optarías por llevar a tu mesa todo lo que puedas cargar,  o simplemente tomarías una pequeña porción y volverías por más si así lo deseas?

Si elegiste la segunda opción, ¡Genial! Eres como Sid (una pequeña referencia a La Era de Hielo) Pero no te preocupes, lo cierto es que en el desarrollo de software es una estrategia ampliamente aceptada y beneficiosa.

En este contexto, nos referimos a un par de técnicas conocidas como _evaluación perezosa_ o _carga perezosa_, las cuales son formas de aprovechar los recursos de manera eficiente.

## Evaluación perezosa

No echas toda la carne al asador, mejor esperas a que los comensales lo soliciten.

En términos técnicos, la evaluación perezosa consiste en posponer la evaluación de una expresión hasta el momento en que se necesiten los resultados, similar a un servicio bajo demanda.

## Carga perezosa

Esta técnica es muy similar a la anterior, pero en este caso, se retrasa la creación o inicialización de los objetos.

Si un evento comienza a las 6 de la tarde, no tendrías por qué comenzar a alistarte desde las 6 de la mañana.

---

En resumen, ser "perezoso" en el desarrollo de software implica tomar decisiones inteligentes sobre cómo y cuándo utilizar los recursos, evitando gastos innecesarios y optimizando el rendimiento. Es una estrategia que puede conducir a un código más eficiente y a un mejor aprovechamiento de los recursos disponibles.

Al igual que en nuestra vida es completamente válido evitar los esfuerzos innecesarios para así poder concentrar nuestros recursos físicos y mentales en aquellas tareas que realmente nos interesan.
Der Anfang
Tags: html, beginners, javascript, webdev
Published: 2023-06-14 00:28:07

I just started on this road to a new career. Its definitely exciting and a little nerve-wracking. I have been a teacher for more than 5 years and have sort of hit a ceiling with what I can do and how much income I can make. Online ESL teaching is rewarding but after a long time, it becomes stale. I just want more. This is something that I never thought I could ever do but after enrolling in this online bootcamp, i'm starting to see that there's definitely a way forward towards a new and exciting career.
Ruby and Sorbet Module Loading Order
Tags: ruby, todayilearned, sorbet
Published: 2023-07-30 02:09:38

---
title: Ruby and Sorbet Module Loading Order
published: true
date: 2023-06-14 00:00:00 UTC
tags: ruby, til, sorbet
canonical_url: https://coreyja.com/til/sorbet-module-loading
---

Today I learned that Sorbet interfaces do some magic to override how Ruby module and method overloading usually works. This is great, lets take a look!

We had a base class lets call it `SomeBaseClass` and it implemented a method like `api_options`. So we had the following and `OurClass#api_options` was 'correctly' using the implementation from `SomeBaseClass`

```ruby
class OurClass < SomeBaseClass
  include ApiInterface
end
```

But what was interesting is `ApiInterface` was defined to need a`api_options` method, which looks like this

```ruby
sig { abstract.returns(ApiOptions) }
def api_options; end
```

Without all the Sorbet stuff in the `sig` that's an empty method definition which would just return `nil` everytime. Without Sorbet we'd expect `OurClass#api_options` to return nil since this version would be the last one defined.

However, Sorbet is doing the 'right' thing and calling the actual implementation from our base class! It kind of has to, or else it's interfaces would be hard to work with. But its good to confirm, and write down for next time I run into this!

I dug a bit and found some code to replace a method and some to call the original implementation, so I assume some combination of these is how Sorbet pulls off this trick. Maybe I'll dig deeper and turn this into a full post in the future.
Step-by-Step Guide: Testing HTTP Endpoints in Visual Studio 2022 Using Endpoints Explorer
Tags: visualstudio, dotnet, dotnetcore, csharp
Published: 2023-06-13 22:40:51

Visual Studio 2022 (v17.6) has introduced a new feature that simplifies the process of discovering and testing API endpoints. With this new feature, we can now effortlessly locate and test API endpoints within Visual Studio itself, streamlining our testing workflow.

The Visual Studio team has dedicated significant resources to enhance the experience of API development, testing, and debugging. Among the numerous recent additions, the **Endpoints Explorer** stands out as a noteworthy feature.

---

## Endpoints Explorer

To use this feature go to **View –> Other Windows –> Endpoint Explorer**

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

It automatically identifies the endpoints within our project that utilize the **[ApiController]** attribute, providing us with a comprehensive overview of the project and its associated endpoints.


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


If we invoke Generate Request an HTTP file will be generated with the request for the _/api/users_


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


The following process has occurred:

1. An HTTP file was created and added to the project.
2. A variable was created to store the host address.
3. The request was added to the file.

Let's run our API and make some HTTP requests.

## HTTP Get
After sending the request, we can instantly view the response on the right side, providing immediate visibility into the received data.


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

## HTTP Post


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


## Debugging

Highly intuitive for debugging!!! :)


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

---

## Final Thoughts

The feature greatly simplifies the process of testing HTTP endpoints and verifying the response, eliminating the need for external tools such as Postman or Insomnia.

---

## Thanks for reading!
Through my articles, I share Tips & Experiences on web development, career, and the latest tech trends. Join me as we explore these exciting topics together. Let’s learn, grow, and create together!

➕More article about [Programming, Careers, and Tech Trends.](https://medium.com/@andytechdev)

🔔 Follow me on [Medium](https://medium.com/@andytechdev) | [Twitter ](https://twitter.com/andytechdev)
Feature Store: Accelerating Data Science Initiatives!
Tags: datascience, machinelearning, deeplearning, productivity
Published: 2023-06-13 22:10:06

Hi Everyone!

This time, bring a summary with some feature store solutions and how this approach can accelerate initiatives aimed at developing artificial intelligence models.

To know more:

https://jlgjosue.medium.com/feature-store-accelerating-data-science-initiatives-373b5d34310f

Thanks for reading; share this post! :)
Streamline the process of scanning through job postings
Tags: vue, javascript, css
Published: 2023-06-13 22:01:25

Hi, I created Chrome and Firefox browser extensions to streamline the process of scanning through job postings, making it quicker and easier to identify relevant technical skills. The extensions enable you to highlight technical skill keywords in green/yellow/orange/red.

[Chrome install](https://chrome.google.com/webstore/detail/keywordkolor-highlighter/jlcoeobalplobjmbeoofpiinipgogkfd)

[Firefox install](https://addons.mozilla.org/en-US/firefox/addon/keywordkolor-highlighter/)

The extensions were written using Chrome/Firefox extension api's, Vue, and DOM api's.

{% embed https://www.youtube.com/watch?v=fzIGPCnhunc %}
Day 761 : Just Another Case
Tags: hiphop, code, coding, lifelongdev
Published: 2023-06-13 21:48:03

_liner notes_:
- Professional : Context switching is the phrase of the day. haha I finished updating / refactoring as much as I can a couple of demos using one set of technologies. Then got called into a discussion about a demo I did using another set of technologies. haha And then, I got some answers to questions I had about yet another demo using a totally different feature than the others. haha. I finally got it working properly and can start on the blog post. Then I started working on updating API specs for something different from everything mentioned previously. haha I need a nap. Just another case of DevRel life.

- Personal : I went through a bunch of tracks for the radio show. The battery on my laptop only lasts for like an hour so I have a limited amount to time to get as much as I can done. Really kept me focused. haha Did some work on the admin dashboard for my side project. Really liking the layout I have going. I think it will help make things easier for the user. Didn't get to watch any anime though.

![Waterfall in Hawaii with a lot of green vegetation on the walls of the waterfall.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nez2tv62741e2n2lfumw.jpg)

Made a plan of attack to work on for the part of the admin dashboard that creates sessions. I've got a structure for how I want the data to be stored so that helps with what should be on the dashboard. Hoping to be able to get creating and saving sessions completed tonight. I also want to go through more tracks and even watch some anime. We'll see.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube ol0Y1rlMoto %}
Grogie – Modern Serif Font
Tags: modern, font, serif
Published: 2023-06-13 21:43:28


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

[Grogie – Modern Serif](https://koplexsstudio.com/grogie-font/)

Are you ready to add elegance to your design project? Look no further than Grogie – the modern serif font that is taking the design world by storm. With clean lines and timeless beauty, Grogie is perfect for logos, branding and marketing materials. Therefore you should choose Grogie for your next design project.

Grogie – Modern Serif has a blend of beauty and class, which has a variety of uses but is primarily intended for logos, social promotions, perfumes, fashion magazines or other projects. You will find not only a lot of decorative characters, but also a spectacular number of alternative unique characters that will make you fall in love with this font.

—————————————————————————————————————————————————————————————————————————————-

Features :

Grogie TTF.
Grogie OTF.
Grogie WOFF.
Ligatures Features.
Alternates
Works on PC & Mac.
Simple Installations.
Accessible in the Adobe Illustrator, Adobe Photoshop, Adobe InDesign, even work on Microsoft Word.
PUA Encoded Characters.
Fully accessible without additional design software.
Support for 67 languages.

—————————————————————————————————————————————————————————————–

NOTE :

If you have any question, critique or anything about this font.
If you have difficulty and need help please send a message to email kolpexsstudio@gmail.com.
In order to use the beautiful swashes, you need a program that supports OpenType features such as Adobe Illustrator CS, Adobe Photoshop CC, Adobe Indesign and Corel Draw. but if your software doesn’t have Glyphs panel, you can install additional swashes font files.
You can visit our website (https://koplexsstudio.com) for other great fonts.

Your satisfaction is our priority.

I Hope you enjoy our font!

Thank You.

[SHOP NOW !!!](https://koplexsstudio.com/grogie-font/)
Injecting Dependency Like You've Never Seen Before: Unprecedented Laravel Missteps
Tags: php, laravel, webdev, beginners
Published: 2023-06-13 21:42:01

Ah, the majestic art of Dependency Injection in Laravel – when executed flawlessly, it's like watching a ballet dancer pirouette gracefully. However, when it goes wrong, it's a hip-hop dancer in a ballet class, utterly hilarious.

Isn't it simply the most elegant thing in the world, that thing we call Dependency Injection? When you inject the class into your Laravel controller, it's supposed to glide smoothly, like a well-oiled machine. Alas! Some of us seem to be making steam engines instead.

Picture this: You're in the code wilderness, on a quest to instantiate that tricky Repository class. You've heard tales of Laravel's magical service container, its mystical powers of automatic resolution. **But no, you say, "I’m not a magician! I am but a simple artisan."**

```php
public function __construct() 
{
    $this->repository = new Repository();
}
```

Oh, a standing ovation for your courage, good sir/madam! Who needs Laravel's automatic resolution when you can manually do it yourself? It's like driving a Tesla but insisting on turning the ignition key that doesn't exist.

Now let's up the ante. Ever stumbled upon the folks who like to treat Laravel like it's a one-man show, pushing all dependencies into a single method?

```php
public function overworkedFunction(Foo $foo, Bar $bar, Baz $baz, Quux $quux, Quuz $quuz, Corge $corge, Grault $grault, Garply $garply)
{
    // Sincerely hoping the function does not collapse under pressure!
}
```

Bravo! Look at this function, trying to juggle like a circus performer. It's not a function anymore, it's a dependency party and everybody's invited!

I implore you, friends. Laravel, with its service container, is more like a magical butler. Its sole purpose is to elegantly manage our dependencies. Don't reduce it to a simple valet, carrying around your piles of objects. Let it shine in its true glory.

```php
public function __construct(Repository $repository) 
{
    $this->repository = $repository;
}
```

Behold the glory of a well-implemented constructor injection, the kind that doesn't make Laravel shed a tear behind the scenes.

And that, ladies and gentlemen, is our comedy of errors, a true 'how-not-to' guide on Dependency Injection in Laravel. While these examples might make you laugh (or cry, if you're a true Laravel enthusiast), remember the golden rule: Keep It Simple, Silly. That's what Laravel is all about. Now, let's put our hands together for the unsung heroes of Laravel who keep the dependencies flowing smoothly, and the code bugs at bay.
Wait, you're not using API keys?
Tags: api, security, programming
Published: 2023-06-13 21:26:49

Have you noticed something the best API companies have in common?

Folks like Stripe, Twilio, Airtable, SendGrid, and many more?

Yep, they all use **API Keys** as the primary authentication method for their APIs. Why is this?

There are two primary reasons

## 1/ Security

While there is no formal protocol for API Keys and most implementations have some level of variability - at least compared to standards like OAuth and OpenID Connect - they offer a good level of security, arguably greater than using JWT tokens for a few reasons.

- **Revocability** - API Keys can be quickly revoked for any reason, whereas JWT tokens are hard to revoke and often require the reset of an entire certificate or tenant.
- **Opaqueness** - unlike JWT tokens, which can be easily decoded using services like [jwt.io](http://jwt.io), API keys are completely opaque and don’t reveal any hint of your internal authorization mechanism.
- **Self-management** - a good API program with API keys allows consumers to manage API keys themselves and, in the event of a leak (or accidental push to a GitHub repo), the consumer can quickly revoke and roll their keys. If the same mishap occurs with a JWT token, it is typically harder for the consumer to self-serve and revoke the validity of the JWT token.

## 2/ Optimizing Time to First Call (TTFC)

Great API companies focus on developer experience and obsess about metrics like [time-to-first-call](https://medium.com/better-practices/the-most-important-api-metric-is-time-to-first-call-62ac3959de44). That is, how long does it take for a developer to find your documentation and get everything set up, and successfully invoke your API.

If you choose an authentication option that has some complexity (token acquisition, token refresh, etc) you are automatically increasing that Time to First Call and thus reducing the conversion rate of developers that get to know and adopt your platform.

## Summary

Of course, there are valid reasons to use a more complex authentication method for your API, particularly if the consumer is doing work on behalf of another identity (e.g. accessing the GitHub API on behalf of a GitHub user) then OAuth makes the most sense.

However, if you’re primarily identifying the B2B business partners, API keys are a secure choice that is easy to use and will optimize the conversion funnel for winning new developers.
New Relic is awarding $100,000 in grants to eligible nonprofit organizations in 2023! - Apply Today
Tags: nonprofits, socialimpact
Published: 2023-06-13 21:32:20

Hi, Devs! 

We have something exciting to share at New Relic! 😊

##We’re awarding $100,000 in grants to eligible nonprofit organizations in 2023!

Grant size will be determined by New Relic and will range from $5,000 to $25,000 per project. We’re looking to support nonprofits with strategic or innovative technology needs, digital transformation projects, and creative solutions to enhance organizational efficiency and effectiveness. 

The application process is open to all eligible nonprofits from June 5 to June 23, 2023. Grant recipients will be announced in September 2023. To determine eligibility, please see our FAQ below.

📬 [**Learn more and apply here**](https://newrelic.com/about/impact-fund?utm_source=devto&utm_medium=community&utm_campaign=global-fy-24-q1-impact-fund-2023)
When JavaScript Thinks You're Imagining Things: An Unexpected Tale of Non-Existent References
Tags: javascript, beginners, webdev
Published: 2023-06-13 21:28:27

Are you a coder? Have you ever referenced an object in JavaScript only for it to reply with a blank stare? Today, we dive into the thrilling world of **ReferenceError: Undefined is not an object**.

Ah, JavaScript, that ever-loyal friend who assures you it understands, only to freeze up and sputter "Huh, what's that?" when you ask it to fetch an object or property that, in its humble opinion, doesn't exist. Yes, my friend, today we discuss the notorious: ReferenceError: Undefined is not an object. We’ve all been there, haven't we?

You know the scene. It's 2 a.m., the glow of your laptop screen illuminates the room, the keyboard's soothing click-clack is the only sound that can be heard, except for the quiet sobs of your sanity trickling away as you wrestle with this peculiar JavaScript foible.

```javascript
var myCar = {
    color: 'red',
    speed: 'fast'
};

console.log(myCar.weight);
```

And voilà! JavaScript, ever the vigilant guard of reality, snaps at you, "Wait a minute, partner. myCar doesn't have a weight property. I'm not going to let you just make things up here!" It may seem like JavaScript is throwing a tantrum, but really, it's just being a stickler for the rules. Adorable, isn't it?

The code above is a common enough sight, one that makes seasoned developers sigh deeply while simultaneously popping another antacid. You see, JavaScript, despite its friendly demeanor, is a strict grammar teacher when it comes to the English language. If it doesn't see an object or property listed, it doesn't exist. Full stop. No further discussion.

The remedy to such hilarity is quite simple. You, like a determined detective, must go back through your code, sifting through the lines of text until you spot the offending piece of errant referencing. Could it be a typo? A forgotten definition? Or maybe a promise to a variable that you never fulfilled? Who knows what mysteries await in the depths of your script.

So, next time you face this error, take a moment to appreciate JavaScript's fierce commitment to reality. It's not trying to make your life difficult, it's just committed to the truth. It might even teach you a thing or two about managing expectations - a priceless life lesson served with a side of code debugging.

As we bid adieu, **remember - in the strange land of JavaScript, 'undefined' is more than just a state, it's a way of life**. Embrace the quirks, question your assumptions, and above all, enjoy the ride.
Clean Code...What's that ?
Tags: development, beginners, webdev, programming
Published: 2023-06-13 20:32:31

Clean Code is the secret sauce in (web) development! 🧹✨

Clean Code is not just about making your code look pretty; it's about making it readable, maintainable, and super cool! 🌈💻

So, what's the deal with Clean Code? 🤔

Clean Code is all about writing code that's easy to understand and work with. It's like having a tidy room with everything in its right place. No more messy spaghetti code! 🍝🚫

Here are some quick tips to keep your code squeaky clean:

1️⃣ **Use Descriptive Names**: Say goodbye to "x" and "y" and say hello to meaningful names. Let your variables do the talking! 🗣️💡

2️⃣ **Keep It Simple**: Stick to the Single Responsibility Principle. Each function should have one clear job. No multitasking for our code, please! 🙅‍♂️💼

3️⃣ **Format like a Pro**: Consistent indentation, spacing, and formatting make your code look fly. It's like wearing a snazzy outfit for your code! 👔✨

4️⃣ **Avoid Duplicates**: Copy-pasting is a big no-no. It leads to bugs and confusion. Instead, reuse code like a pro and save time and headaches! ♻️😎

5️⃣ **Comment with Care**: Leave little love notes in your code. Comments help you and your team understand what's going on. It's like having a code conversation! 💬❤️

6️⃣ **Test It, Don't Guess It**: Testing is your secret weapon. Break down complex stuff into smaller chunks and test them. It's like having superpowers for your code! 🦸‍♀️🔍

7️⃣ **Refactor, Refactor, Refactor**: Don't be afraid to give your code a makeover. Clean up the mess, make it shine. It's like a makeover for your code! 💅✨

By embracing Clean Code, you'll be a **coding rockstar**. Your code will be easy to read, understand, and maintain. Let's make the web a cleaner, better place! 🌐🚀

Share your thoughts on Clean Code in the comments below. Let's geek out and spread the Clean Code love! 💙💪
#DEVDiscuss: Ultimate Tips for Writing Technical Content
Tags: devdiscuss, writing, devrel
Published: 2023-06-13 20:00:00

Time for #DEVDiscuss — right here on DEV 😎

{% embed https://dev.to/blackgirlbytes/the-ultimate-guide-to-writing-technical-blog-posts-5464 %}

Inspired by @blackgirlbytes's Top 7 post, tonight’s topic is...**ultimate tips for writing technical content!**

Based on her experience as a Developer Advocate, Rizèl Scarlett has written an incredible, comprehensive guide to writing technical content — seriously, take a look 👀

So let's talk about it!

### Questions:

- **Which of the points in the ultimate guide have served you well as a technical content writer?**
- **What are _your_ top tips for writing technical content? Where or how did you learn them?**
- **Any triumphs, fails, or other stories you'd like to share on this topic?**