teleren/devto huggingface dataset:
Review of best youtube channels for Ethereum devs, State Channel Dapp Tutorial | EatTheBlocks Newsletter #13
Tags: ethereum, dapp, solidity, statechannel
Published: 2018-10-30 18:20:11

---
title: Review of best youtube channels for Ethereum devs, State Channel Dapp Tutorial | EatTheBlocks Newsletter #13
published: true
description: Newsletter of EatTheBlocks
tags: Ethereum, Dapp, Solidity, State channel
---

This week in the EatTheBlocks newsletter: Review of best youtube channels for Ethereum devs, State Channel Dapp Tutorial 

Post: https://eattheblocks.com/eattheblocks-newsletter-13-new-ebook-to-learn-ethereum-dapps-review-of-best-youtube-channels-for-ethereum-devs/
Video: https://youtu.be/470Q_-mX-h8

If you are a developer interested in learning about Dapp development, Solidity, Truffle, Web3, Ethereum protocol, Token standards ..., you will love this newsletter! Every week I send the 10 MOST INTERESTING tutorials, tips & news for Ethereum Dapp developers
Hundiyas – Battleship game in JavaScript (June 2007)
Tags: board, game, gamedev, javascript
Published: 2018-10-30 18:31:17

---
title: Hundiyas – Battleship game in JavaScript (June 2007)
published: true
tags: board,game,gamedev,javascript
canonical_url: 
---

“Hundiyas” is an open source Battleship (aka Battleships or Sea Battle) game totally written in DHTML (HTML, CSS and JavaScript). Highly configurable.

![Screenshot](http://dhtmlgames.com/hundiyas/hundiyas.gif)

It is my eighth DHTML game and was made in mid 2007.

Players can configure the game with many options. For instance, you can change board size, decide whether to allow bombing same cell more than once or not, whether to allow to place two ships next to each other without any space between them or not, whether to mark already bombed cells or not, decide who will start playing first and choose among three difficulty levels (easy, normal and hard) that will change the AI (Artificial Intelligence) of the game.

You can also change the game behaviour easily by editing many of the configuration variables which are at the beginning of the script. To change the game images you just need to replace them with others.

Official languages are Spanish and English.

You can find other modified and adapted versions of this game on the Internet, including one Opera widget.

This game has been tested under BeOS, Linux, NetBSD, OpenBSD, FreeBSD, Windows, Mac OS X, BlackBerry Tablet OS, Android, iOS and others.

Play online in English: [http://hundiyas.tuxfamily.org/hundiyas\_english/](http://hundiyas.tuxfamily.org/hundiyas_english/)

Play online in English (mirror): [http://www.dhtmlgames.com/hundiyas/hundiyas\_english/](http://www.dhtmlgames.com/hundiyas/hundiyas_english/)

Play online in Spanish: [http://hundiyas.tuxfamily.org/hundiyas\_spanish/](http://hundiyas.tuxfamily.org/hundiyas_spanish/)

Play online in Spanish (mirror): [http://www.dhtmlgames.com/hundiyas/hundiyas\_spanish/](http://www.dhtmlgames.com/hundiyas/hundiyas_spanish/)

Official web site: [http://hundiyas.tuxfamily.org/](http://hundiyas.tuxfamily.org/) (mirror at [http://www.dhtmlgames.com/hundiyas/](http://www.dhtmlgames.com/hundiyas/)).

It can also be found on GitHub: [https://github.com/jalbam/hundiyas](https://github.com/jalbam/hundiyas)
Realizations from being a frustrated developer
Tags: developer, learning, community, discuss
Published: 2018-10-30 18:17:29

---
title: Realizations from being a frustrated developer
published: true
description: There are developers out there like me who struggles to step up his/her game.
tags: developer, learning, community, discuss
cover_image: https://thepracticaldev.s3.amazonaws.com/i/gt1crhzq12yc4hmfk9cf.png
---


*Found a cool program online? A nice new framework that you can hack around? A very cool snippet of code (if that’s a thing). Ever wondered why you didn’t do or can’t do the same thing? etc. etc.*

Ah, the frustrations keep piling up. ☹ HELP!

```php
$frustrated = true;
while ($frustrated) {
    echo "HELP!"
}

```
……

Seriously. It pisses me off.

These are some just some of the frustrations that I always feel whenever I wander around the development community (you know what I mean). To help me get over these frustrations I looked everywhere for answers. I asked my previous professors and my colleagues, to trying to do the same thing because I always believe that experience is the best teacher. And because of all that, I found my answers and realizations:
1.	**_Our ability to learn is unique_**.

2.	**_I won’t do something I don’t want and need at all_**. Other developers just have a reason to do it.

3.	**_I don’t have the luxury of time to even think about making a program_**. Unless it is related to what I do or if it is needed at work.

4.	**_Other developers seem to be doing it already_**. I don’t need to make my own version. I can just use what they did. This is a mentality that was engraved to me (us)—Don’t repeat yourself.

5.	**_I program to earn a living_**. Most of the time that I am at my computer doing programming? It's work-related.


My answers and realizations may not necessarily apply to you or anybody else. If you have experienced these kinds of frustrations, please let me know about it and tell me how you coped up. I want to know how you guys did it. Thanks!
InvaderZ
Tags: game, javascript, geneticalgorithm
Published: 2018-10-30 18:04:34

---
title: InvaderZ
published: true
description: Space invaders, but the invaders evolve with genetic algorithm
tags: game, javascript, genetic algorithm
canonical_url: https://github.com/victorqribeiro/invaderz
cover_image: https://thepracticaldev.s3.amazonaws.com/i/y4vad65fyfnrv1hjuws3.png
---

A game kinda like space invaders, but the invaders evolve with genetic algorithm.

![InvaderZ](https://thepracticaldev.s3.amazonaws.com/i/0baoqi1man70n8fb4cu7.png)

See it live [here](https://victorribeiro.com/invaderz) or take a look at the code [here](https://github.com/victorqribeiro/invaderz).
StencilJS Router Events
Tags: stencil, javascript
Published: 2018-10-30 18:22:00

---
title: StencilJS Router Events
published: true
tags: Stencil,Javascript
canonical_url: https://yon.fun/stencil-router-events-listener/
---

If you would take a look to **Stencil Router** documentation, you wouldn't find any info about **open** nor **close** page events, so how we would listen to them? I made a simple library for this scope.

Let's say we have an application compiled by [Stencil](https://stenciljs.com/) which contains more than one page. Now, we would like to add **Google Analytics** on our pages. Let's see how we can implement this purpose.

Here's a standard stencil router configuration:  
 ![StencilJS Router Events](https://yon.fun/content/images/2018/10/stencil-default-router.png)

Nothing special, we just provide some props to a **stencil-route** component, in order to dynamically generate our **app-home** and **app-about** components based on *History* links. More about [how to set up a stencil router, check this article](https://yon.fun/stencil-router-step-by-step/).

Now let's install **ip-stencil-route-listener** library and make some changes:

```
npm i ip-stencil-route-listener
```

After installing, we have to add `<ip-stencil-route-listener />` component inside of **routeRender** function of `<stencil-riuter />`. Take a look to red lines:  
 ![StencilJS Router Events](https://yon.fun/content/images/2018/10/stencil-route-listener-1.png)

Nothing much! Now each time when you'll enter or leave a page, the EventListener will trigger _pageEnter_ or _pageLeave_ events. The names of these events talk about their selves.

Take a look at this image:

![StencilJS Router Events](https://yon.fun/content/images/2018/10/stencil-listen-page-events.png)

So, let's add Google Analytics on *pageEnter* event:

```js
  @Listen('pageEnter')
  onPageEnter(e: CustomEvent<LocationSegments>) {
    // This is a Goolge Analytics event
    ga('send', 'pageview', e.detail.pathname);
  }
```

[Here](https://stencil-route-listener.netlify.com/) is an example of this demo.

Consider using this library until there will be some official events support delegated by **stencil router**. I reckon they will implement kind of these events very soon.
How To Run Ethereum Node?
Tags: ethereum, eth, node, geth
Published: 2018-10-30 17:54:09

---
title: How To Run Ethereum Node?
published: true
description: 
tags: ethereum,eth,node,geth
---

How To Run Ethereum Node

Running Ethereum node on ubuntu server is quite easier.

This post provides step by step instructions on how to install a quick Ethereum network on Ubuntu 16.04 LTS.

geth:

 Our main Ethereum CLI client. It is the entry point into the Ethereum network (main-, test- or private net), capable of running as a full node (default), archive node (retaining all historical state) or a light node (retrieving data live). It can be used by other processes as a gateway into the Ethereum network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. geth --helpand the CLI Wiki page for command line options.

Ethereum:

Ethereum is a decentralized platform that runs smart contracts, applications that run exactly as programmed without possibility of downtime, censorship, fraud or third party interference.

According to my experience:

* Minimum hardware requirements (for initial sync): 4 CPU, 8 GB RAM, 100 GB disk 
* Minimum hardware requirements (for normal operations): 2 CPU, 4 GB RAM, 300 GB disk

Hosting a website and creating ethereum node on the same server is NOT a good idea.

Install the latest Ethereum software.

Installing from PPA

1. install software-properties-common(add-apt-repository command is under the package software-properties-common and you need to install this package in order to install add-apt-repository).

2. add the ppa:ethereum/ethereum repository using the add-apt-repository command.
Now you want to check your /sources.list.d/. For example if you are adding Launchpad to your wheezy /sources.list.d/

3. updated versions of packages are available is obtained by running sudo apt-get update (or sudo aptitude update ), it is advisable to run this before installing any package

4. Installing Go Ethereum. Install from a package manager. Install on macOS via Homebrew. Install on Ubuntu via PPAs. Install on Windows via Chocolatey. Download standalone bundle. Run inside docker container. Build it from source code

If you want to stay on the bleeding edge, install the ethereum-unstable package instead.
After installing, run geth account new to create an account on your node.
You should now be able to run geth and connect to the network.
Make sure to check the different options and commands with geth - help

Start up Geth
Start up a light geth node in one tmux pane.

geth - light
or
geth
Create React App 2.0: What's New?
Tags: react, javascript, createreactapp
Published: 2018-10-30 16:54:21

---
title: Create React App 2.0: What's New?
published: true
description: Learn what's new in Create React App 2.0
tags: #reactjs #javascript #createreactapp
canonical_url: https://auth0.com/blog/create-react-app-2.0-whats-new/
---

In this article, we are going to go over the new updates and features added in the new major release of the create-react-app tool.

[Read on ⚛️](https://auth0.com/blog/create-react-app-2.0-whats-new/?utm_source=dev&utm_medium=sc&utm_campaign=cra2)

![Create React App 2.0: What's New?](https://thepracticaldev.s3.amazonaws.com/i/xekyrx1uw41w2vzbuj67.png)
[HELP] Best proxy server socks5
Tags: help, proxy, socks5, server
Published: 2018-10-30 16:07:28

---
title: [HELP] Best proxy server socks5
published: true
description: 
tags: help, proxy, socks5, server
---
Hi, I am really struggling to find a good socks5 proxy to use on my Linux machine.
I have found tinyproxy but the version that I get from apt-get does not support HTTPS and it's a normal HTTP proxy, not even socks5.
I can't even find good documentation about squid or other proxy servers, it's such a niche argument.
I don't have such a great knowledge of http and tcp protocols to create one myself so I'm kind of lost.

Thank you!
Learn Angular 7 | Episode 3 of 5 | Part 4
Tags: angular, webdev
Published: 2018-10-30 16:05:37

---
title: Learn Angular 7 | Episode 3 of 5 | Part 4
published: true
description: Learn Angular 7 | Episode 3 of 5 | Part 4
tags: angular, webdev
---

{% youtube ps2T5Q9D_HY %}
What are your best tips for working from home?
Tags: career, productivity, discuss
Published: 2018-10-30 15:34:28

---
title: What are your best tips for working from home?
published: true
description: 
tags: career, productivity, discuss
---

I had a great conversation yesterday with some coworkers about working from home, including why some prefer it and others hate it, and our productivity tips. I've been working from home more frequently for health reasons, and I'm trying to get better at it! For example, I make an effort to get dressed and ready every day as though I was going into the office. Then, I try to leave my house for a few minutes, even if it's just for a walk around the block. 

I'd love to hear your thoughts on how to most effectively work from home! What do you do to make your space more welcoming? How do you make sure you stay on task, or conversely, how do you make sure you remember to stop working at a certain time? How do you communicate with your team when you work remotely? I'm interested both in productivity tips, as well as self care tips, as I know that lots of folks feel more anxious and pressured to get things done when they work from home.
Top 5 DEV Comments from the Past Week
Tags: bestofdev
Published: 2018-10-30 15:05:24

---
title: Top 5 DEV Comments from the Past Week
published: true
description: Highlighting some of the best DEV comments from the past week.
tags: bestofdev
cover_image: https://res.cloudinary.com/practicaldev/image/fetch/s--7VrAA2ln--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://thepracticaldev.s3.amazonaws.com/i/qmb5wkoeywj06pd7p8ku.png
---

This is a weekly roundup of awesome DEV comments that you may have missed.  You are welcome and encouraged to boost posts and comments yourself using the **[#bestofdev](/t/bestofdev)** tag.

The **[why branching on git is wrong](https://dev.to/anortef/why-branching-on-git-is-wrong-1pao)** article spanned 154 comments and was a real lightning bolt of conversation and debate.  @nezteb took the top spot with an opinion that seemed to be shared by many in the thread:

{% devcomment 6d31 %}

@sergio shares a story in the **[You want HOW MANY years experience?!](https://dev.to/jsrn/you-want-how-many-years-experience-4jl4)** thread, talking about a consultant interview that took an interesting turn:

{% devcomment 6bn4 %}

The above comment was the basis for a [#bestofdev](/t/bestofdev) thread titled **[Turns out language creators are pretty good at their language](https://dev.to/ben/turns-out-language-creators-are-pretty-good-at-their-language-4ham)**.  That offered the opportunity for @tux0r to jump in with a similar story:

{% devcomment 6ceg %}

Switching gears from language creators, @simonhaisz rolls into the **[Why you should reinvent the wheel](https://dev.to/quantumsheep/why-you-should-reinvent-the-wheel-4ha2)** discussion to add some context around the oft-repeated advice:

{% devcomment 6d95 %}

Finally, **[An Organizer's Guide to Pronoun Buttons](https://dev.to/sublimemarch/an-organizers-guide-to-pronoun-buttons-afb)** provided both valuable resources and an important discussion.  @bintlopez does a great job of describing the fundamental importance of making proper accommodations for all attendees:

{% devcomment 6bno %}

See you next week for more great comments ✌
Welcome Thread - v20
Tags: welcome
Published: 2018-10-30 14:54:45

---
title: Welcome Thread - v20
published: true
description: Introduce yourself to the community!
tags: welcome
---

Hey there! Welcome to dev.to!

![Scooby Doo cuts through a layer of fog with a knife, and smiles satisfingly. ](https://media.giphy.com/media/jxj9FwfBtomzt2s117/giphy-downsized-large.gif)

1. Leave a comment below to introduce yourself! You can talk about what brought you here, what you're learning, or just a fun fact about yourself.

2. Reply to someone's comment and say hello or ask them a question. 👋

3. Or answer this question: What's your favorite tool to use and why?
You shouldn't focus on learning JavaScript frameworks
Tags: javascript, webdev, beginners, frameworks
Published: 2018-10-30 14:31:13

---
title: You shouldn't focus on learning JavaScript frameworks
published: true
description: Don't be alarmed yet. Yes, you should learn frameworks, but not put all of your focus on them.
tags: #javascript, #webdev, #beginners, #frameworks
---

JavaScript frameworks are incredibly hot right now. You've probably heard of the most popular two: Angular and React. They can really help speed up the development process and they do a good job of separating responsibilities in the code. So why shouldn't you focus on them if they're so great?

It's not that you shouldn't learn them. You should just spend more time making sure you are proficient in HTML, CSS, and JavaScript/TypeScript. When you know these foundational web development languages, then you can use the true power of the frameworks.


The problem is that many people start learning web development within a framework and when you take them out of the one they know, it's really hard for them to shift gears. That's mainly because what they know about HTML, CSS, and JavaScript/TypeScript comes from the context of the framework. When you can use the main web development languages alone, you can jump into any framework and start figuring out how to work with them.

For example, Angular works with components and each component can have its own HTML, CSS, and TypeScript files. What most people overlook in the beginning is that you still have to know how to write the code for those files even if they come pre-loaded from a template.

Again, that's not to say that you *shouldn't* learn the JavaScript frameworks. That just shouldn't be your main focus until you feel like you know the base languages well enough to write a web app from scratch. You'll find out in some cases it might be easier to write the whole thing from scratch after you deal with the updates to the different frameworks.

Which brings us to another point. JavaScript frameworks can have updates that make everything you know about them irrelevant. Angular has changed **so** drastically over the past few years that Angular 1.x has close to nothing in common with Angular 6.

But the two versions do have some things in common and I bet you can guess what they are: HTML, CSS, and JavaScript/TypeScript. So spend some time learning how the frameworks work so that you can use them, but make sure you understand the guts behind them first.

Not only will it help you write more efficient code, you'll be able to jump into any JavaScript framework and start making meaningful changes. The hype behind the different frameworks is definitely deserved because they can be great, but like everything else in web development they come and go and have major releases.

What's been your experience with JavaScript frameworks? I've worked mainly with Angular and I ~~want to throw my computer out the window~~ love it. Anybody using React or any of the others?

<hr>

Hey! You should follow me on Twitter because reasons: https://twitter.com/FlippedCoding
Is Redux Needed After Hooks?
Tags: discuss, help, opinion, eli5
Published: 2018-10-30 13:56:08

---
title: Is Redux Needed After Hooks?
published: true
description: With the potential of React's Hooks becoming production ready, what does that mean for state management?
tags: discuss, help, opinion, eli5
---

Alright, so the big news in React the past week has been the proposal of Hooks. People seem to be embracing and flocking to them like crazy.

![The Hooks!](https://i.ytimg.com/vi/GRB0q88xpKI/hqdefault.jpg)

I'm still not fully understanding of exactly when to use them versus a class component's state or Redux reducer.

Does the addition of hooks mean that redux is no longer needed? Or do hooks still provide only per-component state management, instead of a top-down global state manager? 

If they are the next best thing, I would love to use them...**but** I also want to understand them first, so I don't *misuse* them. I've done some smaller applications in React, but maybe I'm just not proficient enough to spot where hooks gain competitive edge over Redux's `connect` or `dispatch`.

Please help me to understand 😄
Tracking and saving updates in a collection in MongoDB
Tags: mongodb, db, nosql, help
Published: 2018-10-30 11:30:52

---
title: Tracking and saving updates in a collection in MongoDB
published: true
description: I look forward to hearing and learn about the strategies you consider when you have to save the changes to a collection in a collection.
tags: mongodb,db,nosql,help
---
Hello everyone! I am Samuel and I am a young web developer. Actually I am working in a project to help my family's business. 
The system is about access control to a vehicle with QR codes. It is composed by a web application (Angular6), mobile application (Ionic3) and REST API (NodeJS) connected to a noSQL DB (MongoDB).

One of my collections is Reservations and the document is structured as follows:

`{
    _id: number,
    serviceId: number,
    datetimePaid: Date,
    responsible: Person,
    state: string,
    tickets: Tickets[],
}`

And Tickets is something like:

`{
    price: number,
    passenger: Person,
    roundtrip: boolean
}`

A reservation could be modified by users with differente roles (with higher or lower privileges) but I need to track whenever an user has modified some field of the document to give the administrator a good way to solve possible problems.
The operations or fields that could be updated are: 

- datetimePaid
- responsible (replace it with another Person)
- state
- tickets[i].passenger
- Add or remove elements from the tickets array

I haven't find any native solution provided by MongoDB to it, and I have couple of ideas but I would like to hear your strategies or ways to do it.

Many thanks in advance
What's fun about being a developer?
Tags: job, fun, passion, work
Published: 2018-10-30 10:47:00

---
title: What's fun about being a developer?
published: true
description: Put into words what you enjoy about being a developer
tags: job, fun, passion, work,
---

This morning a colleague at work (who's not a developer) asked me what I enjoyed about being a developer (I'm a front-end / native app dev). He's messed around with code and made some simple games / applications (using Unity and other frameworks), but finds it very frustrating. His question was "What's fun about being a developer?" I didn't really have an exact answer for him, and the more I've been thinking about it, the more I'm unsure why I love doing app development! I just know I wouldn't change it for the world.


*So, what do you find fun about being a developer?*
Event - Hack Your Way Up London
Tags: events, eventsinyourcity, hack, london
Published: 2018-10-30 10:39:01

---
title: Event - Hack Your Way Up London
published: true
description: Using micro-challenges to improve your skills! 
tags: events, eventsinyourcity, hack, london
---

Next Tuesday evening I'm running an event called [Hack Your Way Up](http://resources.hired.com/hackyourwayup/) in London for Hired. 

The idea is simple - you'll be given a huge list of challenges. Each is short, and worth a number of points. Some are focused around algorithms, creative coding, design, and some are just plain silly. 

Our whole list is written so there's something suitable for everyone. Hopefully you'll also learn some new skills! 

You can come in a team, or come alone and we'll help you form teams. There's free food and drinks, and it should be super fun. Hopefully we'll see you there! 

[Sign up for free here](http://resources.hired.com/hackyourwayup/)