teleren/devto huggingface dataset:
Requirements as code v1.0.0 published
Tags: coding, programming, java, eventdriven
Published: 2018-10-16 14:31:21

The [requirements as code](https://github.com/bertilmuth/requirementsascode)  project simplifies the development of event-driven applications.

It provides a concise way to create handlers for many types of events at once. A single runner receives events, and dispatches them to handlers. When activated, the runner also records the events. That can be used for replay in event sourced applications.

You can also customize the event handler in a simple way, for example for measuring performance, or for logging purposes.

For more advanced scenarios that depend on the application’s state, you can create a use case model with flows. It’s a simple alternative to state machines, understandable by developers and business people alike.

The v1.0.0 provides the following features:

* Define event handling models with event classes and event handlers
* Define use case models with actors, use cases, use case flows, use case steps that react to events
* Run a model, either for the default user or for a particular actor
* Record events
* Provide a custom event handler
* Generate documentation from a model

Further features:

* Include use cases
* Ask the runner if an event currently triggers a reaction
* Query the runner for events that are currently reacted to
* Specify event handler for events not handled by the model

Check out the [requirements as code](https://github.com/bertilmuth/requirementsascode) project now.
And please give me feedback. It will help me to improve the project.
Mac Mini or thinkpad T series or X?
Tags: thinkpad, thinkpadvsmacmini, laptopforprogramming, macmini
Published: 2018-10-16 12:52:26

---
title: Mac Mini or thinkpad T series or X?
published: true
description: Hi, I am having lot of confusion about which laptop to buy.To give you a brief overview- I am in Tokyo for 3 months and thinking about buying laptop as in my country it is expensive with because of high taxes. My main aim is laptop for programming purpose only.So main requirement is *i7 8th Gen, and 16 GB RAM* . It shouldn't hang obviously with multiple chorme tabs, multiple browsers, multiple IDEs,containers, workbenches etc. while looking at apple site even though tax free but cost goes very high for mac book pro 13, and 15 (i7, 16 gb min) So I have listed down some options . ####Mac mini#### - I am more focused on OSS because future possibility of doing something with swift, IOS automation or development etc. is it worth buying with highest model(I7, 16 GB ram)#### Thinkpad #### - not decided which model but minimum req as mentioned above as it comes out of box support with linux.The main reason for mac is I have been using mac mini in office work and till now it works smoothly, though it takes time to startup but other than than found no issues. ho delay nothing. but additional cost for keyboard, mouse and monitor is to be considered.And if not then Thinkpad but which model I am not sure, with good keyboard 16 gb or expandable RAM and I7 8th gen.Really appreciate if someone can give their opinion or experience about mini and thinkpads. 
tags: thinkpad,thinkpadvsmacmini,laptopforprogramming,macmini
---
Hacktoberfest - Getting your 5 PRs easily!
Tags: hacktoberfest, github, opensource
Published: 2018-10-16 12:51:49

---
title: Hacktoberfest - Getting your 5 PRs easily!
published: true
description: 
tags: hacktoberfest,github, open source
---

![Hello World wallpaper](https://thepracticaldev.s3.amazonaws.com/i/4uhxsiw0kxk9qmjs4wbk.jpeg)

# Hacktoberfest, how to get your 5 PRs easily?

I created a [repo](https://github.com/Webd01/Hello-World), especially for the Hacktoberfest. The goal of this repo is to create Hello World programs in multiple languages. There are about 45 languages on the repo now, so there's a lot to do here. 

## Why creating another Hello World repository?

I know that there's already a lot of that kind of repositories. There is also an official repo, so why did I created another one? In fact, when I wanted to contribute to the official Hacktoberfest's repository. I found myself in a trouble because there was already a ton of languages. I couldn't find one that has not already been added. That why I created this repo, it does not contain a lot of languages, so you can add ones and get your 5 pull requests easily. 

## Contributing

1. [Fork the repository](https://github.com/Webd01/Hello-World)
2. Create your own branch, example: **feat/my-awesome-language**
3. Make a PR!
4. Don't forget to add your Github username to the README. See this [issue](https://github.com/Webd01/Hello-World/issues/54) for more information! 

Thanks for reading this article, and I hope that you'll get your 5PRs!
8 things I hate in recruitment letters [add yours, it's kind of research]
Tags: discuss, career, job, productivity
Published: 2018-10-16 12:08:50

---
title: 8 things I hate in recruitment letters [add yours, it's kind of research]
published: true
description: And what bothers you in the emails with job proposals? 
tags: discuss, career, job, productivity

---
I am still making kind of research of the relations between recruiters and candidates. Here are 8 things that make me sick in recruitment letters.

**And what bothers you in the emails with job proposals?**

![gif](https://media.giphy.com/media/Ahw40HZzrd0yN9ndH5/giphy.gif)

1. My name is not {first name}. 
2. I am not willing to answer the letter that has "urgent" in the topic. That's not only unpolite, but also weird. Like I'd write them back: URGENT RELEASE PLEASE HELP FIND DEVELOPERS. 
3. Recruiters worry about me and my health (not true at all). That's why they all start their letters with "I hope you are doing well". Why they disappear when I am really sick and need some lemon? :D
4. "Opportunities" everywhere. Almost all of them are unique.
5. I am not a rockstar.
6. Not a ninja.
7. No, not even a jedi.
8. And more important: Java and JavaScript ARE NOT THE SAME THING.

Remember [my review](https://dev.to/whokilledkevin/how-i-tried-a-new-tool-for-recruiting-letters-2gj) of the tool called [Reply.id](https://reply.id/)? Still use it and my [personal bot](https://reply.id/whokilledkevin). Still works pretty well for me (and it's free, not [like Chatfuel](https://dev.to/whokilledkevin/how-i-created-a-bot-that-talked-to-recruiters-for-me-54n5) that I used before).
What security updates should one follow?
Tags: discuss, security
Published: 2018-10-16 12:05:39

---
title: What security updates should one follow?
published: true
description: Getting updates timely is important, but what are resources you follow?
tags: discuss, security
---


I am trying to figure out what RSS feeds, mailing lists, twitter accounts, blogs, etc one should follow to get good updates on security issues and vulnerabilities.

Any framework, language or platform is good.
I am currently following:

- NodeJS Security: https://groups.google.com/forum/#!forum/nodejs-sec
- Wired security: https://www.wired.com//category/security/
- AWS security bulletins(quite a lot and noisy): https://aws.amazon.com/security/security-bulletins/

What are you following, and why?

Maybe we can get a nice list going that helps a bigger audience.
What are the best vuejs framework for Native Mobile App?
Tags: nativeapp, vue, androidapp, iosapp
Published: 2018-10-16 10:08:45

---
title: What are the best vuejs framework for Native Mobile App?
published: true
description: To use most eCommerce function in Android/iOS app, Is it good idea to build the app using Weex or is there any suitable vue.js framework?
tags: native-app, vuejs, android app, iOS app
---
Object.assign() vs Object Spread { … } In Angular Ngrx Reducers🥊
Tags: angular, javascript, node, redux
Published: 2018-10-16 09:53:56

---
title: Object.assign() vs Object Spread { … } In Angular Ngrx Reducers🥊
published: true
description: Ngrx is a state management library which is used to implement one way data flow with centralized state store. Components and services dispatch actions in response to events triggered by user interaction and server communication...
tags: angular,javascript,node,redux
cover_image: https://thepracticaldev.s3.amazonaws.com/i/ifr7v4durje98vmhl2uv.jpg
canonical_url: https://medium.com/@tomastrajan/object-assign-vs-object-spread-in-angular-ngrx-reducers-3d62ecb4a4b0
---


#How to get better type checking and code completion support with Typescript in Angular Ngrx reducers or any other Redux-like library

>All the code examples in this post are taken from the real world Angular Ngrx Material Starter project in various stages of it’s development

##Short recapitulation of Ngrx state library

Ngrx is a state management library which is used to implement one way data flow with centralized state store. Components and services dispatch actions in response to events triggered by user interaction and server communication.

Every dispatched action produces a new application state by triggering corresponding reducer action handler. In the handler we always want to return new object or array to be sure that our new application state is clearly distinct from the old one.

[Read more...](https://medium.com/@tomastrajan/object-assign-vs-object-spread-in-angular-ngrx-reducers-3d62ecb4a4b0)
Anyone here doing crazy stuff with Ableton and Javascript (or something else)
Tags: music, javascript, ableton, generativeart
Published: 2018-10-16 08:30:34

---
title: Anyone here doing crazy stuff with Ableton and Javascript (or something else)
published: true
description: Music and Programming
tags: music, javascript, ableton, generative art
---

I recently did [some experiments with music theory](https://divu.in/music-theory-and-generation-13965ba83eb9) and found out that Ableton also has a TCP interface.

I was curious to know if people are doing something with that. Would love to collaborate.
Started a hobby project
Tags: gaming, sf, hobby, tdd
Published: 2018-10-16 06:55:05

---
title: Started a hobby project
published: true
description: Short description of my hobby project (crosspost from Medium)
tags: gaming, SF, hobby, tdd
---

Finally started a hobby project. You can [read more details about it](https://medium.com/@marko.bjelac/finally-started-a-hobby-project-f522c25d6d51).
Difference between Junior and Senior Developer    
Published: 2018-10-16 06:36:29

---
title: Difference between Junior and Senior Developer    
published: true
description: Understanding the mystery behind junior and senior developers 
tags: 
---
I've been contacted in email at least once a day for mid-senior level positions. I know that recruiters generally just email their whole network trying to hire as many people as they can and I get it, they have a job to do. The problem with this approach is that I'm not interested in senior positions, but I'm interested in junior positions. How can I make it clear that I would like more of an entry-level role and not something that requires years of experience?
What editor/IDE are you using for Vim bindings?
Tags: discuss
Published: 2018-10-16 04:46:52

---
title: What editor/IDE are you using for Vim bindings?
published: true
tags: discuss
---

I've been using MacVim for about 7 years now and have dotfiles/configs/plugins that have accumulated throughout the years. I have not been maintaining these that well so it's gotten to the point where sometimes when I open a file, I see a bunch of errors in the vim console. Also sometimes my fuzzy finder won't work correctly because it also tries to search through `node_modules`. I am reluctant to debug each of these issues separately and am thinking to start fresh with a new editor.

I still want to continue using vim bindings, but I'm just curious what vim binding supported editors/IDEs people are using these days. Any recommendations? Or if people are still using Vim/MacVim, any recommendations on dot files?
Protected Routes in React using React Router
Tags: react, javascript, webdev, video
Published: 2018-10-16 02:29:15

---
title: Protected Routes in React using React Router
published: true
description: Learn to create Protected Routes in React using React Router
tags: react,javascript,webdev,video
cover_photo: https://thepracticaldev.s3.amazonaws.com/i/fk62dxozh346514zs8nn.jpg
---

In this video, we will learn to create a protected route using React Router. This route is accessible only when the user is logged in.

[Link to CodeSandbox](https://codesandbox.io/s/ol6z72kjy9)
[Link to Video on Youtube](https://www.youtube.com/watch?v=Gp2KAqNvOFQ)

---

#### If this video was helpful, ❤️ it and [subscribe to my YouTube channel](https://www.youtube.com/channel/UClCm-WAOgN6XLwCpefSVezg?sub_confirmation=1).

{% link https://dev.to/theoutlander/react-component-lifecycle-explained-3koh %}

---
When Things Break, Use Appropriate Messages To Users
Tags: debug, ux
Published: 2018-10-16 02:17:02

---
title: When Things Break, Use Appropriate Messages To Users
published: true
description: Setting the proper message for application errors can mean the difference between having a few users complaining or having an entire state contacting you.
tags: debug,ux
cover_image: https://thepracticaldev.s3.amazonaws.com/i/bvprvsv8pnzsg7ms2buc.jpg
---
*Photo by [Alex Radelich](https://unsplash.com/photos/Evo4wmtRaPI?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/search/photos/demonstrator?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)*

## A Quick Story

If you have been following US politics this year, you are well-aware of the upcoming midterm elections on November 6. Anyone whom has been concerned with participating will surely verify their registration status. However, what happens if they go to verify and the system returns with "Record not Found" as the response?

That is what happened to me today as I checked my registration. Despite the fact that I had recently verified mine a few days ago, it came back with "Record not Found" in the system. I found myself not only confused, but somewhat angry that maybe I was purged from the system. 

After contacting the appropriate office, they responded with a "We're having issues with the system" response. Okay, that made sense as today was the deadline for registration. However why didn't the system respond with that same message that was told over the phone?


## The Takeaway

> Always make your public error responses user-friendly. 

Had the system been setup to respond with a status of "The system is experiencing issues right now", it would have been less alarming than a record is not found message. Users were counting on the system to find and verify their records and to show this message only frustrated users and possibly outraged a few others as well.

It's easy to sit back and scrutinize being on the outside of the system, having never seen the code, but this is one of those "write good code" habits that need to be used. 

Perhaps the developer simply did not have the luxury of making their error catches granular and decided to use a catch all "Record not Found" message for all database-related issues. However, if true, that approach did not help here as there is a very big difference between "Record not Found" and "System is experiencing issues" responses to the public.

Take some time and think about the context of public error responses and what they mean to users in public. Incorrect assumptions and interpretations can greatly impact user satisfaction and product quality.

## Conclusion

Fortunately, the system came back up and no other issues were reported to my knowledge. I was able to verify my registration and all was correctly stated.

Thanks for reading my *first* post on DEV.to. I felt compelled to share my experience today with other developers and perhaps this can be a reminder of why making these kind of decisions, even if they seem small, can be quite large if not properly thought out.
A useful progress-bar fallback to IE9. CSS-only.
Tags: css, html, ie9
Published: 2018-10-16 00:05:13

---
title: A useful progress-bar fallback to IE9. CSS-only.
published: true
description: Progress bars are tricky elements to be styled. This post is not about all the tricks we have to use to style them with CSS in a cross-browser way. This post is just about making it work for our users in IE9.
tags: CSS, HTML, IE9
---

Progress bars are tricky elements to be styled.

Yes, it's completely possible to make them look nice cross-browser with only CSS as [this CSS-TRICKS post](https://css-tricks.com/html5-progress-element) shows us. But making them look nice is not the point of this article.

The point of this article is making them useful for browsers that don't understand the `progress` element by themselves, and can't render that visible progress bar.

And it's simple.

Let's take a look at a basic `progress` markup:

```html
<progress min="0" max="100" value="15"></progress>
```
To a browser that don't understand what `progress` means, it's just a [HTMLUnknownElement](https://html.spec.whatwg.org/multipage/dom.html#htmlunknownelement) with the properties `min="0" max="100" value="15"`. What can we do with that?

- Use `:before` and `:after` to inject the text _15/100_ inside it:

```css
/* make it look like a box */
progress {
  border: 1px solid black;
  line-height: 30px;
}  

/* make pseudo-elements 50% side-by-side */
progress:before, progress:after {
  display: inline-block;
  width: 50%;
}

/* put the value and a slash on the left half, aligned to the right */
progress:before {
  content: attr(value) '/';
  text-align: right;
}

/* put the max value on the right half */
progress:after {
  content: attr(max);
}
```

- If we're sure that our progress elements will have a maximum of 100, we can show it with the `%` instead:

```css
/* make it look like a box */
progress {
  border: 1px solid black;
  line-height: 30px;
}

/* put the value and the percent sign in the middle of the pseudo-element */
progress:before {
  content: attr(value) '%';
  display: block;
  text-align: center;
}
```

Here's a simple demo of the two situations working (with `div` instead of `progress`):
{% codepen https://codepen.io/ayrtonvwf/pen/yRPGWm %}

Here's this concept applied to that nice fully-styled progress-bar from [that CSS-TRICKS post](https://css-tricks.com/html5-progress-element).
{% codepen https://codepen.io/ayrtonvwf/pen/JZWENR %}
No puedo correr Vulkan en surface 4
Tags: vulkan, intelgraphics
Published: 2018-10-16 00:00:44

---
title: No puedo correr Vulkan en surface 4
published: true
description: Un error impide ejecutar Vulkan
tags: vulkan, intel graphics
---

En una surface 4, no había podido ejecutar programas en Vulkan y mi interes en aprender acerca del tema se vio un poco frustrado al no poder ejecutar los programas que compilaba para aprender.

Después de ese año afortunadamente alguien en twitter me redirigio al (foro de Intel)[https://communities.intel.com/thread/128769] donde alguien pudo replicar/comprobar el problema e indicarme como reinstalar los drivers para que funcionen correctamente, los pasos son los siguientes:


1. Descargar el driver en `.zip` from https://downloadcenter.intel.com/download/27988/Intel-Graphics-Driver-for-Windows-10?product=88355 (o el más nuevo pero en .zip)
2. Desconectar la computadora de internet (para que Windows no pueda buscar por sí mismo). 
3 - ir a `Administrador de Dispositivos` -> `Adaptadores de video`.
4 - Click-derecho en `Intel ® Integrated Graphics`, seleccionar la opción de desinstalar y continuar hasta que sólo tengas el `Adaptador básico de Microsoft`.
5 - Unzip el archivo del punto 1.
6 - Click-derecho en el `Adaptador básico de Microsoft` y seleccionar "Actualizar controlador".
7 - Seleccionar la opción "Buscar en mi computadora el controlador".
8 - Seleccionar la opción "Dejame escoger de una lista de dispositivos en mi computadora".
9 - Seleccionar la opción "Tengo el disco".
10 - Seleccionar la opción "Explorar".
11 - Encontrar la carpeta "Graphics" en donde descomprimiste el zip en el paso 5. 
12 - Seleccionar el archivo de información de instalación (Típicamente nombrado como "idglh64" ó "igdlh").
13 - Click en `Abrir` y luego en `Aceptar`, finalmente click en `Siguiente` y los drivers comenzarán a instalarse. 
14 - Reinicia la computadora cuando la instalación se haya completado.

Básicamente esos son los pasos, en mi caso variaron un poco (encontré más rápido el archivo y tube que quitar dos veces el controlador para que quedará como "básico").

Después de esto pude ejecutar los diferentes programas de prueba de Vulkan.
3 Tips from Kent C Dodds for People Just Getting Started
Tags: advice
Published: 2018-10-15 23:54:50

---
title: 3 Tips from Kent C Dodds for People Just Getting Started
published: true
description: advice for beginners from a podcast
tags: advice
---

I heard this recently on the [6 Figure Dev podcast](https://6figuredev.com/podcast/episode-061-react-with-kent-c-dodds/) and just had to share notes from the great KCD:

- **Software is very hard**. If you're struggling, its because it's not easy. Ignore the people who tell you it's easy. It's constantly changing, and it is normal to struggle to ramp up and keep up.
- **Do motivation-based learning**. You don't have to learn ALL the fundamentals first. Learn what you need to get the thing you want to build built. It's the motivation that will push you through when things get hard. Dive in later when you are curious about framework source code and so on.
- **You will learn new things through building - teach them.** Don't worry if something's been said before. The stuff you learn won't be new to the world, but it will be **new to you** and I guarantee you there will be others in the world to whom it will be new too. **Learn by teaching** through a blogpost or a meetup talk. **YOU** can reach people who the current content isn't reaching. For example, non-English-speaking audiences, or more recent beginners (senior engineers are often afflicted by the "curse of knowledge", and can't effectively explain things to beginners anymore).

If you want more of the story of how he supercharged his own career, I recommend this talk: [Zero to 60 in Software Development: How to Jumpstart Your Career - Forward 4 Web Summit](https://www.youtube.com/watch?v=-qPh6I2hfjw&list=PLV5CVI1eNcJgNqzNwcs4UKrlJdhfDjshf)

That's it. Just had to share. Go do it.