teleren/devto huggingface dataset:
HNG internship 8.0: My Goals
Published: 2021-08-15 23:20:44

## About HNG internship
The HNG Internship is a 3-month remote internship designed to find and develop the most talented software developers.
Everyone is welcome to participate (there is no entrance exam). Anyone can log into the internship using their PC. Each week, tasks are given, and those who complete them advance forward. We pay the interns weekly.
The intern coders are introduced to complex programming frameworks, and get to work on real world software. The finalists are connected to the best companies in the tech ecosystem and get full time jobs and contracts immediately. - HNGi website
Follow [this link](https://internship.zuri.team/) to learn more about the internship: (https://internship.zuri.team/)


## My Goals :fire:
* To make it to the last stage, be one of the finalists.
* Flexible with front-end frameworks.
* Build my Leadership skills
* Get better at solving problems in the shortest possible time.
* Get more comfortable using front-end frameworks


## Preferred Tech stack:
MongoDB, Express, React, Node (MERN)

## Get Prepared: Free Beginner Resources
Figma: https://youtube.com/playlist?list=PLXDU_eVOJTx6zk5MDarIs0asNoZqlRG23

Git: 
Articles:
https://www.learnenough.com/git-tutorial
video tutorial: https://youtu.be/8JJ101D3knE

JavaScript:
https://youtu.be/hdI2bqOjy3c

Node.js: https://youtu.be/fBNz5xF-Kx4

I'm pumped :muscle:
My HNG 8 goals 
Published: 2021-08-15 22:57:13

My name is Nwandu Amarachukwu, an aspiring front-end developer. I have done and taken some online courses based on my selected track i.e Html, css, javascript, bootstrap and currently learning react j. I was among those who successfully reached the project stage of the last internship held by zuri team which ended in July where I worked on a real-life project with my team. I have always had eye to be part of HNG Internship. For me HNG internship is like tech bbnaija and I'm glad I was able to enroll for this years internship which has kicked off. 
My goals for HNG Internship are by the end of the 8 weeks program, I should be comfortable and be able to develop a web application in solving a real-life problem. I should also be able to say "I have become an expert in front-end development".
My achievements by the end of the internship are mastering the essential and necessary skills and tools for my stated track, i want to gain essential background knowledge which i will apply to what I previously learnt about web application and also build a network of contacts/friends.
To know more about zuri training /HNG Internship
[Click here](https://internship.zuri.team) to access their website.
Below are beginners tutorial for figma,Git, JavaScript and HTML:

[Figma for beginners](https://m.youtube.com/watch?v=c9Wg6Cb_YlU&t=2495s)

[Git/Github crash course](https://m.youtube.com/watch?v=RGOj5yH7evk)

[JavaScript crash course](https://m.youtube.com/watch?v=PkZNo7MFNFg&t=6626s)

[HTML for beginners](https://m.youtube.com/watch?v=UB1O30fR-EE&t=2103s)
Scope
Tags: angular
Published: 2021-08-15 22:56:52

Scope

Scope is one of fundamental building blocks in the Angular1.x framework. Its main purposes are the followings: sharing data, broadcasting and listening events, and watching for changes in data. Poking around the source code of the scope assists me in having a better understanding of what it is going on under the hood. In addition, I will share what I learned from the implementation of the scope in this blog. The scope has five components:
Dirty-Checking Mechanism
Scope Methods
Scope Inheritance
Watching Collections
Scope Events
Dirty-Checking Mechanism

The Angular Scope makes use of two main functions to implement the dirty-checking mechanism: the $watch and $digest function.
$watch(watchFn, ListenFn)

A watch function(watchFn): return the piece of data you’re interested in.

A listen function(listenFn): when the observed data changes, this function will be invoked.
A watcher: an object that has a watch function and a listen function as its attributes.

With $watch you can attach a watcher to a scope. The scope maintains a queue called $$watchers, which stores all the watchers attached to it.

$digest
First, the $digest function iterates all the watchers in the scope.
Second, it compares the previous state of data to the current one during each iteration. If something changes, it calls the corresponding listener function.
Finally, this performs the above steps repeatedly until the watched data stops changing.

Optimization
The Angular Scope takes advantage of the Time To Live(TTL) and short circuiting the digest to avoid endless or useless iterations.
TTL: sets the maximum amount of iterations.
Short-Circuiting: uses a variable to keep track of the last dirty watch that we have seen. Each digest round goes on until it reaches this last watch.
Performance

As I mentioned, Angular Scope iterates over the watches as opposed to the properties of a scope in each digest round. Therefore, it is a good idea to pay attention to the number of watches you have, which will affect the performance of your application.
My goals and what I want to achieve at HNG internship 8
Published: 2021-08-15 22:56:31

I have been looking for internship programs that will expose me to great mentors and to projects that matters. 

Internships that will feed my curiosity and make me a good and a result-oriented frontend developer that every company will love to hire. That is how [HNG Internship](https://internship.zuri.team) came to my rescue.

[Zuri](https://zuri.team) is a great platform that unlock brilliance with hands-on beginner and expert training. 

[Zuri](https://zuri.team) has been known for budding a pool of intelligent and talented workforce that helps companies around the world achieve their goals. 

[HNG Internship](https://internship.zuri.team) is an opportunity for me go world-class and push myself to the wall and do hard things as a frontend developer.

Although, I am comfortable with technologies like: [HTML/CSS](https://www.youtube.com/watch?v=D-h8L5hgW-w), [Git & GitHub](https://www.youtube.com/watch?v=SWYqp7iY_Tc&t=246s), [JavaScript](https://www.youtube.com/watch?v=iWOYAxlnaww&t=16s), [Figma](https://www.youtube.com/watch?v=Gu1so3pz4bA), the [HNG Internship](https://internship.zuri.team) has a lot to offer.

Below are my goals for the HNG Internship: 
1.	Make a lot of important relationships.
2.	Improve my frontend technical skills.
3.	Sharpens my soft skills.
4.	Learn to how to collaborate with other developers.
5.	Learn how to complete a project from start to finish following community standards.
6.	Build a lot of real-world projects.
7.	Learn how to work effectively under pressure.

There are a lot of amazing things that I want to achieve after my internship with [HNG](https://internship.zuri.team),  like contributing to or building super useful apps like [cars.ng](https://cars.ng/).

Below is the list of some of the things that I want to achieve after HNG Internship:
1.	Collaborate on open source projects around the world.
2.	Become a confident and proficient frontend developer ready to tackle any kind of project.
3.	Get a frontend developer role.
4.	Contribute to Zuri when the opportunity arises as much as I can.
5.	Build an app that solves one of the world’s most  pressing problems.
Notes: JS
Tags: javascript
Published: 2021-08-15 22:54:15

Executing a Program

Compiled Language like C++ and Java. First complies the program into machine-language instructions, then executes the complied instructions.
Interpreted Language such as Python. Runs the program directly without compiling.
The Javascript engine actually compiles the program on the fly and then immediately runs the program.
Dive into Javascript

Values & Types

Only values have types in Javascript, variables are just simple containers for those values.

Objects

Bracket notation : it requires either a variable or a string literal
Special characters in a property name like obj[“Kevin”].
Get access to a property/key but the name is stored in another variable.
My pathway to HNGi8
Tags: internship, hngi, zuri, article
Published: 2021-08-15 22:36:05

It was just like yesterday when I get to write my first 'Hello world' using python programming language. I couldn't go pass that level because I don't have a reason or goals to keep on with it. So on this faithful day on twitter, a tweet was re-tweeted to my timeline from @unicodeveloper about those who will love to learn how to code and that was how I go to join the first slack workspace. From that period, I was able to build a great passion for the tech world, precisely software engineering. I started learning how to code in a proper way online to aid my journey to become a software engineer. 
   During this process it got to a point where I felt lost, I didn't know the next direction to go, it was like make a wrong decision. This led to me look out for people who are already make a profession out this and are doing so well. During my search for answers I came across people like @zfinix , @dthompsondev @ThomasBurkhartB @hacksultan e.t.c. Dev community like @CodeNewbie, dev.to, @theZuriTeam and finally @hnginternship where i get to know about the HNGi8 intership. I had to turn on notification for the @hnginternship to ensure that I get to know about the next edition of the HNG intership. I register for this internship via this link:  (https://internship.zuri.team). During this intership, I want to grow more as a developer, network, make good friends and build meaningful relationships. I'm Dare Oloruntoba, and I'm in HNGi8's Frontend Track.

The following resources are what I use when I started to learn how to code:
- [HTML Crash Course](https://www.youtube.com/watch?v=UB1O30fR-EE) This YouTube video by Brad Traversy gives you a nice overview of HTML5. This way you won't have many challenges when it comes to structuring your websites or apps because your foundation is strong.
- [GIT](https://www.youtube.com/playlist?list=PLWKjhJtqVAbkFiqHnNaxpOPhh9tSWMXIF) This YouTube playlist by Free Code Camp explains basic things in Git and GitHub to get you started. I like it because it has short, concise videos that are easy to understand.
- [JavaScript tutorial for Beginners](https://www.youtube.com/watch?v=W6NZfCO5SIk) This video explains the basics of JavaScript and gives you links to more in-depth videos.
- [Figma UI design](https://www.youtube.com/watch?v=FTFaQWZBqQ8) This YouTube video by AJ&Smart walks you through the basics of Figma and helps you design a simple fun project while learning it.
Passion Led Me Here: HNG Internship 8; My Goals.
Published: 2021-08-15 22:09:25

The thirst for success I would say, and the willingness to give it all it takes was what led me to join the tech community on Twitter and trust me, I try not to miss any tech-related post. 

As fate would have it this very day, I was surfing through my twitter feed and boom, the opportunity I’ve been searching for, staring right at me, guess what; it was the Zuri Internship training. I can’t particularly recall the handle of the poster, but that was the beginning of an exciting and life transforming journey for me. To say the ZuriXI4G experience was great is an understatement. It was an awesome experience, the mentors were amazing, as a beginner, the ZuriXI4G training was just perfect. 

Here’s a link to the Zuri  training https://zuri.team for an extraordinary and life changing experience. I'll also be leaving below some links to beginner friendly tutorials that has helped me on this jouney.

Having sailed through all the stages of the Zuri training to the project phase, the opportunity to enroll for the HNGi8 internship came knocking.  Who doesn’t want an internship that has produced the most sought after, world class developers both in and outside Nigeria? 

The HNG internship has over the years been known to have produced exceptional developers. I consider it a great privilege to be part of the HNGi8.

In this Internship, My stack is Frontend, yes of course, I love to beautify and turn ideas/designs into reality.

One of my goals is to connect with people and build strategic relationships needed to excel in this field. In any field at all, the relationships we build, contribute greatly to our growth.

Moreover, I would love to put into good practice all that I’ve learnt in the training phase, to become a better developer. 
Most importantly, my goal is to become an expert in this field, to become not just a developer, but one who is thoroughly proficient and efficient.

Also, becoming a finalist in HNG is a big deal, and that’s definitely one of my goals. I can’t wait to share my success story with you.

Conclusively, to achieve these goals, believe me, hard work balanced with smart work and determination is a necessity, and I’m determined to give it all it takes.
Below are some helpful and beginner friendly tutorial links, for learning how to design with Figma, how to use GIT, Introduction to basic HTML and JavaScript.  

https://trydesignlab.com/figma-101-course/introduction-to-figma/
https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners
https://www.w3schools.com/html/
https://www.codecademy.com/learn/introduction-to-javascript
My goals for the HNGi8 Internship
Published: 2021-08-15 22:06:53

Here comes another edition of the hng internship [https://zuri.team]. This will be be my second internship in two years, having participated in the last year, hngi7 edition. I've set a goal for myself for the 8-week remote internship. 

This article is my submission for the stage one task, stating my objective at the end of the internship.

At the end of the internship, I wish to become a better communicator and improve my team-work ability. 

I've been a developer for close to two years, and the hgni7 internship was part of my grooming process. The internship is a key part of my learning process, introducing me to "tech community" and valuable resources. Over the years as a developer, I've come to realize being a good 'coder' isn't always enough to thrive in the tech ecosystem. To become a successful developer, you need to be an excellent communicator, one who can express himself clearly. 

As such, I wish to work on my communication skills, and on my social skills in general. I hope to be able to manage a team of developers and deliver a task/project.

Check this figma tutorial, https://trydesignlab.com/figma-101-course/introduction-to-figma/,  if you are just getting started as a designer. 

To get started and familiar with GIT, check this tutorial, https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners

To get started with Javascript, you can take a look at this tutorial https://www.tutorialspoint.com/javascript/index.htm
#001: Iniciando no Elasticsearch
Tags: elasticsearch, cluster, dev, docker
Published: 2021-08-15 22:05:50

1 - Instale e inicie [Docker Desktop](https://www.docker.com/products/docker-desktop).

2 - Crie o arquivo [docker-compose.yml](https://github.com/brunoflegler/elasticsearch-course/blob/master/001/docker-compose.yml) e adicione:

  ```
  version: '3.3'

  services:
    cluster-elasticsearch:
      image: docker.elastic.co/elasticsearch/elasticsearch:7.14.0
      container_name: cluster-elasticsearch
      ports:
        - "9202:9200"
      environment:
        - discovery.type=single-node
  ```
3 - Inicie o cluster:

```sh
$ docker-compose up --build -d
```

4 - Use o `curl` para acessar o status do cluster:

```sh
$ curl -X GET http://localhost:9202/_cluster/health?pretty
```

O status do cluster é definido pelo funcionamento da shards primárias e réplica. Os status são:

*green*: Todos as shards foram iniciadas.

*yellow*: Todas shards primárias foram iniciadas, mas uma ou mais réplicas não foi iniciada. Se um nó falhar, alguns dados podem ficar indisponíveis até que o nó seja reparado.

*red*: Uma ou mais shards primárias não foi iniciada, portanto os dados estão indisponíveis. 

```
{
  "cluster_name" : "docker-cluster",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 1,
  "number_of_data_nodes" : 1,
  "active_primary_shards" : 1,
  "active_shards" : 1,
  "relocating_shards" : 0,
  "initializing_shards" : 0,
  "unassigned_shards" : 0,
  "delayed_unassigned_shards" : 0,
  "number_of_pending_tasks" : 0,
  "number_of_in_flight_fetch" : 0,
  "task_max_waiting_in_queue_millis" : 0,
  "active_shards_percent_as_number" : 100.0
}

```

O intuito desse artigo não é detalhar todas as propriedades, durante os próximos artigos veremos com mais detalhes. Te vejo até lá.
HNGI8 GOALS
Tags: hng, internship, software, programming
Published: 2021-08-15 22:04:11

<b>WHAT IS HNG</b>
HNG is an acronym for <em>Hotels.ng</em>,Hotels.ng is a Nigerian online hotels booking agency which was launched in 2013. The platform was founded by Mark Essien ,they offer an Internship with the ambitious attempt to change the way education is done in Africa, utilizing technology with a well proven education system of learning to mentor interns and help them grow which in turn advances the ecosystem

<b>The HNG INTERNSHIP</b>
The HNG internship is a 3-month remote internship designed to find and develop the most talented software developers. Everyone is welcome to participate (there is no entrance exam). Anyone can register either via a link from the <a href="https://zuri.team/">zuri team</a> or other media platforms

<b>MY GOALS</b>
After participating in the <a href="https://internship.zuri.team/">zuri internship</a>,as a <em>PHP backend developer</em>, enrolling in the HNG internship feels like I joined the big leagues of internships(lol),which is the reason I aim to do big league things to make myself a better developer so as to build apps that help my community at large, these include:
1. Be better as a lone software developer, from researches down to writing well structured code.
2. Be able to efficiently work with a group towards a common goal
3. Improve my versatility with various frameworks and languages
4. Have fun and connect
5. Ultimately get the <b>shirt</b> 

<b>Some useful Tutorial links</b>
<ul>
<li>Figma: <a href="https://trydesignlab.com/figma-101-course/introduction-to-figma/">https://trydesignlab.com/figma-101-course/introduction-to-figma/</a></li>
<li>Github: <a href="https://www.youtube.com/watch?v=3RjQznt-8kE&list=PL4cUxeGkcC9goXbgTDQ0n_4TBzOO0ocPR">https://www.youtube.com/watch?v=3RjQznt-8kE&list=PL4cUxeGkcC9goXbgTDQ0n_4TBzOO0ocPR</a></li>
<li>HTML:
- <a href="https://www.youtube.com/watch?v=UB1O30fR-EE">https://www.youtube.com/watch?v=UB1O30fR-EE</a><br>
<p>- for reading <a href="https://www.w3schools.com/html/default.asp">https://www.w3schools.com/html/default.asp</a></p>
</li>
<li>PHP:
- <a href="https://www.youtube.com/watch?v=UB1O30fR-EE">https://www.youtube.com/watch?v=UB1O30fR-EE</a><br>
<p>- and if you prefer reading <a href="https://www.w3schools.com/php/default.asp">https://www.w3schools.com/php/default.asp</a></p>
</li>

<li>PYTHON:
- <a href="https://www.youtube.com/watch?v=Ozrduu2W9B8&list=PL4cUxeGkcC9idu6GZ8EU_5B6WpKTdYZbK">Video tutorial</a><br>
<p>- for the readers <a href="https://www.w3schools.com/python/default.asp">A written help</a></p>
</li>
</ul>
Stop using Mocking libraries
Tags: php, tdd, testing
Published: 2021-08-15 21:37:02

This weekend I read a post titled *"Don't use Mocking libraries"* by [Crell](https://steemit.com/@crell) and I think it's a gold nugget.

I will just make an overview of it to show you how powerful and clever [solution he is proposing us](https://steemit.com/@crell).

Mock libraries are great but we can achieve the same feature with just plain PHP giving an:
- Easier reading and understanding of our code.
- Better performance.
- Less dependencies (oh yes please, less composer packages to keep up to date).

## Example

We have a `UserRepository` we need to mock to make our Unit Tests without coupling with infrastructure layer (MySQL, SQLite...)

Let's show our scenario:

```php

class User
{
    private string $id;

    public function __construct(string $id)
    {
        $this->id = $id;
    }

    public function id()
    {
        return $this->id;
    }
}

interface UserRepository
{
    public function findById(string $id): User;
}

// An example implementation of our repository.
// not required for our example.
class InMemoryUserRepository implements UserRepository
{
    private array $users;

    public function findById(string $id): User
    {
        return $this->users[$id];
    }
}
```

Well, it's time to mock it to run our tests. We just need to create a class that mocks our `UserRepository` 

```php
$userRepositoryMock = new class implements UserRepository
{
    public function __construct() {}

    public function findById(string $id): User
    {
        switch($id) {
            case '1':
                return new User('1');
            case '2':
                return new User('2');
        }

        throw new \Exception('Not found');
    }
};
```

Boom! just using an anonymous class and implementing our interface we have the `UserRepository` mocked and ready to test

```php
public function itShouldTestSomething(): void
{
    $user = $userRepositoryMock->findById('1');

    $this->assertEquals('1', $user->id());
}
```

## Conclusion

It's usual to look for libraries / packages that help us to implement some feature to avoid reinventing the wheel and save some time but this is (sometimes) not necessary and easily achieve with just pure PHP.
servemux
Published: 2021-08-15 21:55:14

01 [RFC 7230](https://lnkd.in/grRPgc27)
02 [HTTP Messages](https://lnkd.in/gvgMXKGP)
03 [HTTP response status codes ](https://lnkd.in/gRJvb2Sq)
04 [HTTP request methods](https://lnkd.in/gscYGrdn)
05 [HTTP headers](https://lnkd.in/gqukK6pA)
#networkprogramming #route #routerequest #multiplexer #mux #servemux #server
My goals for HNGi8 
Published: 2021-08-15 21:51:03

Hello, I'm Adeyinka Balogun. I am a backend developer going through the <a href="https://internship.zuri.team">HNG8</a> internship and I build backend stuff with node.js which Is a JavaScript runtime. I started writing Node.js last year even though I had learned HTML and CSS a while back.

By the end of the HNG8 internship. I want to be able to point out a few projects I have done during the process. Secondly, I hope to become a better backend developer than I am now and probably pick up another language' backend framework like django and Golang. 

Furthermore, I'd love to develop my team working and communication skills during the process of this internship and be able to work with a team of like minds.

Also, I would like to network and meet like-minded people I can work with on a few projects as a team.


During my infant stage of this field, I was able to find some tutorials that have helped me and other resources that are beginner-friendly which I'll be sharing below.

- <a href="https://youtu.be/jk1T0CdLxwU">Figma tutorial.</a>
<br>

- <a href="https://youtu.be/SWYqp7iY_Tc">Git tutorial</a>
<br>

- <a href="https://www.w3schools.com/html/">HTML tutorial.</a>
<br>

- <a href="https://www.w3schools.com/css/">CSS tutorial</a>
<br>

- <a href="https://youtu.be/PkZNo7MFNFg">JavasScript tutorial</a>
<br>

- <a href="
https://nodejs.org/en/docs/guides/">Node.js tutorial</a>