teleren/devto huggingface dataset:
I don't remember birthdays (for a reason)
Published: 2020-01-22 14:24:01

I always thought that not remembering birthdays was something that **just happened** and did not think much into it. Recently I've been thinking about it a bit more, and I think I have found the reason. I do remember the ones from the people closest to me though :P

For me, birthdays are like rather un-useful data to remember, like the names of people that you meet once, or knowing all css properties... and are another day.

I think the reason to not remember birthdays is to save space in my brain for more useful information.

What do you think? Does this happen to you?
Hello world!
Published: 2020-01-22 14:16:55

Hey everyone,
My name is gadi and I'm excited to join this community. Long time I've been reading posts appearing in my Google feed. Now I decided to go further, since I am looking to develop my front-end skills to eventually find a job.

Front end is my passion. I finally realized it. CSS is fun, JavaScript is challenging. 

I'll be very happy the moment I develop products of my own. Can't wait for it honestly 😄

So Dev.to is perfect for my needs.
Makes Home Digitized With Smart Life App
Tags: smartlifeapps
Published: 2020-01-22 14:14:16

Home decoration is every person desire and ambition but how to make a perfect home with latest technology. Here we are introducing best app for your home, this app makes your home digitized. You can control your all house hold accessories, items by connecting through Smartlife apps and controls their working. Like person goes outside from room and if their is no need of light then lights automatic cut off and when person enters in the room then light sensor activated and your light goes to turned on. This is called Smart  Home and with the help of Smart life app you can easily customised and controlled your home with your finger tips. Thanks Smart Life App. https://tototechy.com/download-smart-life-app-pc-windows-mac/
Thinking of writing about HCI & interaction design
Tags: discuss
Published: 2020-01-22 14:10:53

---
title: Thinking of writing about HCI & interaction design
cover_image: https://thepracticaldev.s3.amazonaws.com/i/1xdiao4o4hb5b3u5rcc8.jpg
published: true
tags: discuss
---

Hi Everybody,

I am creating a new series on my blog about all my learnings from 1.5+ years of studying HCI & Interaction design in my master course. The series will have more than 30 posts containing theory and practice about different methodologies used by designers in research projects to create digital artefacts and interfaces.

Some examples of what the stories will be about:

* Discussing [Don Norman's principles of design](https://principles.design/examples/don-norman-s-principles-of-design)
* How to brainstorm and different methods to do so
* How to interview users
* Ethnographic observation
* Usability testing (when to use it and when to stay clear of it) and other evaluation methods
* Lo-fi & Hi-Fi prototyping
* Video prototyping
* ...and many more

All of these will come with examples as I try to bring practice in all the articles.

I'm doing this mainly to record all the information I accumulated in this time because if I don't do it I'll most likely forget a lot of it. These design methods are to be used in different situations so it's good to have something to come back to when starting a new project in the future.

I'm mainly a lurker on dev.to and I was wondering if this is something that the community will like since it's not about coding directly. If yes, then I will repost my articles here as it will probably much easier for users to read the material than going to yet another blog.

Cheers ✌

Raz
Why Java? Why Clojure?
Tags: clojure, java, softwaredevelopment, coding
Published: 2020-01-22 13:20:12

---
published: true
canonical_url: https://danlebrero.com/2016/12/14/why-java-why-clojure/
title: Why Java? Why Clojure?
tags: clojure,java,softwaredevelopment,coding
description: The reasons to use Java and Clojure are the same
cover_image: https://danlebrero.com/images/why-java-why-clojure.jpg
---

I learned Java at university back in 1997. It was my third year as an undergraduate and Java was at version 1.1.

I still remember the struggle to understand the classpath and the relationship between packages, files and folders. And how slow it was!

But what I remember more vividly is how it immediately clicked. It solved a lot of the headaches that I was having with C. 

Maybe Java was less powerful than C but I felt an order of magnitude more productive:

* Garbage collection: a big chunk of complexity and bugs just disappeared overnight.
* NullPointerExceptions: they were awesome! (if you compare them with a crash, some corrupted memory and a core dump)
* Immutable Strings: I was manipulating strings all day long; immutable strings just made my life so much easier.

All those features made my programs so much simpler, and they allowed my brain to focus on more important stuff.

But by 2008, I realized that a profound dissatisfaction was growing within me. 

ORMs and the never ending object-relational impedance mismatch, long compile and deploy cycles, XML all the things (or the more modern annotate all the things), millions of *if (foo != nil)*, Factories and FactoryFactories, inflexible types, little reuse and all the frameworks' black magic.

And then my pet hate: creating yet another Mapper class to transform one DTO to another DTO, both of them being 95% the same.

I got to the point where:

> [If I still want to be a programmer I don’t want to do it this way anymore](http://www.youtube.com/watch?v=VSdnJDO-xdg&t=1m5s)
<cite>Rich Hickey — Clojure, Made Simple.</cite>

So I started to look elsewhere: Ruby, Erlang, Scala. Somebody suggested to look into Clojure and of course I ignored him (it is a LISP! A LISP!).

But then Rich Hickey's [Simple Made Easy](https://www.infoq.com/presentations/Simple-Made-Easy) talk really struck a chord. Simplicity is what I was looking for.

Clojure solved a lot of the headaches that I was having with Java. Clojure is more powerful than Java and I feel an 
order of magnitude more productive:

* Data first: once you embrace the fact that your programs just transforms data from one shape into another, [you can 
throw away 90% of your code](https://dev.to/danlebrero/java-maybe-verbose-but-who-cares).
* The REPL: Not Ruby's irb, not Erlang's Shell nor Scala's REPL, but [a whole more powerful interactive environment](https://dev.to/danlebrero/repl-driven-development-immediate-feedback-for-your-backend-code-4b0o). 
* Immutable everything: The niceties of immutable strings extended to the whole codebase.

All those features just make my programs so much simpler, and they free my brain to focus on more important stuff.
Daily Developer Jokes - Wednesday, Jan 22, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-01-22 13:00:05

---
title: "Daily Developer Jokes - Wednesday, Jan 22, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Wednesday%2C%20Jan%2022%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258f70cd7f.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Are computers dangerous?

___A:___ Nah, they don't byte. They just nibble a bit.
 -->
PWA
Published: 2020-01-22 12:55:54

I am new to PWA and working in my Chromebook. I'm facing an issue. When i run node server.js and connect to the localhost:8000 it's refused to connect. I tried shutdown/restart and even configuring all this again but it still doesn't work on my system. But it's been working lately very well. Please help with my issue. Thanks in advance.
Share good resources to start with Ember.js
Tags: ember, javascript, discuss, beginners
Published: 2020-01-22 12:46:42

Hi 👋

Next month, I will start to work for a new customer. Their project is made with Ember.js so I need to learn developing with this framework. When I learn something new I like to have a side project that keeps me motivated. So yesterday, I bootstrapped a website with `ember-cli` for my project [gitmoji-changelog](https://github.com/frinyvonnick/gitmoji-changelog). In a couple of hours, I made a working MVP 🎉 (if you are interested in making a code review here is the [pull request](https://github.com/frinyvonnick/gitmoji-changelog/pull/175)). Here is the result (this is still a work in progress):

![gitmoji-changelog website](https://user-images.githubusercontent.com/13099512/72843094-18631c00-3c9a-11ea-8f32-cd8cc70a75d1.gif)

I only used the documentation to achieve it which is really nice! I don't like to look for basics in a search engine when I start learning a new framework. The work done on documentation is really impressive. There are still a lot of things I need to read in it. But... I want more!

I'm looking for more resources to learn about good practises, architecture, ... I found an [awesome-ember](https://github.com/ember-community-russia/awesome-ember) repository but there are a lot of links! I don't know where to start.

What are your recommended resources for beginners that want to learn more about advanced topics on Ember.js?
How to call a function on edit button in angular?
Tags: angular, typescript, javascript
Published: 2020-01-22 12:45:01

My project angular version:

Angular CLI: 9.0.0-rc.7

I m working with grid and I want to edit a record. and I call a function on edit Button then console.log is not display on the browser??

partymastercomponent.ts

import { Component, OnInit } from '@angular/core';
import { BackendService } from '../backend.service';

@Component({
  selector: 'app-partymaster',
  templateUrl: './partymaster.component.html',
  styleUrls: ['./partymaster.component.css']
})
export class PartymasterComponent implements OnInit {

    PartyMstId: any;
    PartyCode: any;
    PartyName: any;

    partylist: any;

    constructor(public myservice: BackendService) { }

    columnDefs = [
      {
          headerName: "Edit",
          field: "icon",
          width: 100,
          //id: this.PartyMstId,
          cellRenderer: function (params)
          {
                        //return  '<button (click)="editfunction()"><i class="fa fa-edit"></i></button>' //when i press edit icon then console log not print
                         return '<button (click)="editfunction()" >ClickThis</button>' //when I press button then console.log is not display
          }
      },
      { headerName: 'PartyMstId', field: 'PartyMstId', sortable: true, filter: true/*, checkboxSelection: true*/ },
      { headerName: 'PartyCode', field: 'PartyCode', sortable: true, filter: true },
      { headerName: 'PartyName', field: 'PartyName', sortable: true, filter: true },

 ];

  editfunction() {
      console.log("call this edit function");
  }
}

partymastercomponent.html

<ag-grid-angular style="width: 1000px; height: 500px;"
                 class="ag-theme-balham"
                 [rowData]="partylist"                   
                 rowSelection="multiple"
                 [columnDefs]="columnDefs">
</ag-grid-angular>

how to call a function on edit button click??

icon as well as button is not working??

when  I press write click on browser then

<span><button (click)="editfunction()"><i class="fa fa-edit"></i></button></span>     

browser

please help?
What is BEM!?
Tags: css, beginners
Published: 2020-01-20 19:57:02

![BEM, What is that?](https://thepracticaldev.s3.amazonaws.com/i/maxug4tt5yk38hr67xfo.png)

One of my favorite things, as well as one of the more frustrating things about being a self-taught developer, is that you are constantly learning. This quality is great because I love learning and gaining new knowledge. It is frustrating, because when there is always something missed and when it’s brought up then comes the imposter syndrome (well at least for me it is).

I tend to work in Frontend development when it comes to my software engineering teams, not to say that I’m not able to work full-stack I just understand visuals and designers better than others. In my past, I achieved a Masters in Fine Art, so the Frontend development work really does just make sense to me. So in a recent project when my naming conventions for classes were brought up for not following BEM Standards…

I was like what is that️!? So now that I know, let me tell you about it!

# BEM is Block, Element, Modifier

It is a standard naming convention when creating your Class names for CSS styling practices.

A __Block__ is a page component, of which can be nested in other blocks or placed independently. The block holds within it a full scale of power, including but not limited to behavior, templates, styles. Blocks can often be reused throughout the code.

![Block example](https://thepracticaldev.s3.amazonaws.com/i/dqe3l0btwy8wv2emwz0i.jpeg)


An __Element__ is a part of the Block. It shouldn’t be used outside of the block. In class names, there can be a generalized form of an element to use in a global instance.

![Element example](https://thepracticaldev.s3.amazonaws.com/i/qfl8ab7j872y2s7k4ncv.jpeg)

A __Modifier__ is a descriptor entity. Its job is to define the appearance and behavior of a block or element.

![Modifier example](https://thepracticaldev.s3.amazonaws.com/i/nof2ep0uoji1xmndgjt6.jpeg)

Having this in my tool belt is something that is going to make me a better programmer and a produce cleaner code. 

Happy Coding!
Oracle TDE
Tags: database, oracle, encryption
Published: 2020-01-22 12:40:45

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/n20qvym0eei8413gcuns.png)
Data are encrypted by the master encryption key which is stored in the Oracle Wallet or a HSM.
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/up6xz64g7uuku6ot59ym.png)
The Oracle Wallet is a pkcs#12-formatted file securing the master encryption key. We can use a HSM to store the master key and retrieve the decrypted master key later.
Setting up Domain with Namecheap & Netlify
Tags: showdev, webdev, devops
Published: 2020-01-22 12:37:45

In this article, I would be showing how to connect a Namecheap domain to an application deployed with Netlify.


The first step is to have [Netlify](https://www.netlify.com) and [Namecheap](https://www.namecheap.com) accounts setup. Once that has been done, go ahead and purchase your domain on [Namecheap](https://www.namecheap.com) and also deploy your application to [Netlify](https://www.netlify.com).

> Note: It is assumed that you have an application hosted on Netlify and that you've also purchased your domain on Namecheap.

After purchasing your domain on Namecheap, navigate to your dashboard you should see the purchased domain there. Click on the manage button on the far right corner of the domain.

![Namecheap Dashboard](https://thepracticaldev.s3.amazonaws.com/i/i6rqs9k3qniapr450ob3.png)

Scroll down to the **NAMESERVERS** section, click on the dropdown and change it from **Namecheap BasicDNS** to **Custom DNS**. See example in the image below

![Namecheap DNS](https://thepracticaldev.s3.amazonaws.com/i/m81lpe10hkthpzx2854v.png)

Navigate to your application on Netlify and click on the Domain Settings or Setup Custom Domain

![Domain Settings](https://thepracticaldev.s3.amazonaws.com/i/z48ak2fr0fy47azkin7a.png)

Add your domain in the input field and click on the verify button. Netlify would try to validate the domain.

![Add domain name](https://thepracticaldev.s3.amazonaws.com/i/0cpr4vgf7g97x3bg57xm.png)

After adding the domain, click on the options dropdown to the right of the domain you just added, and select **Set Up Netlify DNS**. See example in the image below

![Netlify DNS Setup](https://thepracticaldev.s3.amazonaws.com/i/2xkmd5l2msqgby5ydi8f.png)

Click through till you get to the point where Netlify shows a list of Nameservers. See example in the images below


![Netlify Dns Setup](https://thepracticaldev.s3.amazonaws.com/i/60p9349trcbpthzao3vz.png)

![Netlify Dns Setup](https://thepracticaldev.s3.amazonaws.com/i/7xfyplg9zbbxqpqc6z0x.png)

![Netlify Dns Setup](https://thepracticaldev.s3.amazonaws.com/i/bsl8rjrm7bumkukixngg.png)

Navigate back to Namecheap, and copy each of the DNS servers one at a time to the **NAMESERVERS** section of Namecheap. After adding them, click on the check icon to the right to save them. See example in the image below

![Namecheap Custom Dns](https://thepracticaldev.s3.amazonaws.com/i/uvpcpv3wt86swwzez6h4.png)


And that's it, we're done. You would need to wait for 1–5 minutes for Netlify to propagate, after that your web page can now be accessed by the custom domain.

Netlify will issue your domain free SSL certificates, so you would not need to worry about setting up HTTPS on your own.

This article was originally published on my [blog](https://www.blog.ezekielekunola.com/setting-up-domain-with-namecheap-and-netlify).
Best practices querying APIs via cloud functions
Tags: serverless, beginners, help
Published: 2020-01-22 12:33:38

Im currently working on a little side project where I want to query an api via cloud functions.

The API has several endpoints, say "Users" and "Posts".

Do I create one function for each endpoint? ie:

```javascript

getUser(id) => Userdata
getPost(id) => Postdata

```

OR do I create one single function that chooses the endpoint via a given paramenter:

```javascript

getApiData("user", id) => Userdata
getApiData("post", id) => Postdata

```

Are there any best practices? What are the pros and cons? How do you do it?
Simple Like System in Laravel 6 using Vue Js
Tags: laravel, likesystem, vue
Published: 2020-01-22 12:06:48

Hi Artisan,

In this tutorial, i will guide you step by step how to create single post like or favorite system in laravel using vue js. Here i will create a post table which contains a like field. When a user hit this like button then this like field will be incremented.

https://www.codechief.org/article/simple-like-system-in-laravel-6-using-vue-js
another programming language to learn
Tags: programminglanguages, beginners
Published: 2020-01-22 11:47:37

---
title: "another programming language to learn"
published: true
description: 
tags: #programminglanguages #beginners
cover_image: https://cdn-images-1.medium.com/max/800/0*LN4BnfbK_-m8pscE
---

Often you will hear this from developers saying they have to learn this new programming language. They usually ignore what the programming language can actually help them accomplish and just get into it because everyone is using it. Even though large programming language ecosystem provides great support. Knowing a programming language is not enough but building applications with the programming language is the real deal.

A programming language is a tool which will help you build software applications as we all know. Knowing the kind of software application you want to build will help you in choosing the right tool for the job. Whenever you want to learn a new programming language take your time and research on what you can build with that programming language you want to choose.

But most importantly knowing the basic concepts of the programming language will not make it hard for you to learn a new programming language. Basic concepts such as variables, control structures, data structures, algorithms, syntax and tools can be applied in all programming languages out there. So master the basic concepts with the programming language you are comfortable with. And if you’re starting please don’t pick a programming language because everyone is using it but pick the language because you want to build a software application with it.

Thank you for your time reading this! See you next time.
💡 How to check if a variable is undefined in JS
Tags: javascript, beginners, webdev, tutorial
Published: 2020-01-22 11:18:58

How do I check if a variable is undefined in JavaScript?

**tldr**
```js
typeof xyz === "undefined"
// ==> true
```

You might be tempted to check a variable with something like

```js
if(!xyz) {
    // this will NOT WORK! It crashes because xyz is not defined
    console.log("not defined");
}
```
Doing so will lead to an error like the following:

```
Uncaught ReferenceError: xyz is not defined
```

So the solution is, as already mentioned to use the `typeof` operator
Do you know Conduktor?
Tags: kafka, microservices, conduktor
Published: 2020-01-22 11:03:30

Do you know Conduktor? The tool to visualize everything that happens inside Kafka.

![Conduktor](https://thepracticaldev.s3.amazonaws.com/i/jfoizunbbufq2zh2xbhb.png)

I am currently studying microservices and am really enjoying this study journey. When I started using Kafka, my topics started to grow and I didn't know where things were anymore. I had thousands of topics and I didn't even know what each one did.

Searched deeply and I found this tool. Now I can visualize everything that is happening inside my Kafka.

I think this tool is very useful for new members of the development team, who still don't know the whole architecture.

Link to download: https://www.conduktor.io/

That's it for today. Goodbye.