teleren/devto huggingface dataset:
Should freelance be considered as experience?
Tags: career
Published: 2019-08-20 19:26:05

**TLDR;** I did freelance before my first job so do I have 2.8 years of experience or 6 years?

I am from India and way it works here is most of the student go to high-school, then an engineering college and then get a job.

The problem is I fell in love with programming when I started high-school and while I was going through the studies and college, I used to write code and learn things.

**Fast-Forward to college:**
when I found out that I can make money by writing code or creating websites, so I've created websites for local businesses, plugins and themes for WordPress, SAAS software products and whatnot. This is what I consider as my experience working long nights daily and continuously delivering projects for 4 years.

During my college, I've also started an e-commerce store for technical books and ran that company for 2 years. 

During the last year of my college, I got very involved in helping my college with technical solutions like websites, hackathons, and android apps. This helped me convince the faculties to allow me to work full time as a software developer in a legit company before graduating. (not an internship, but an actual job where I was expected to perform similar to people with 2 years of experience)

I have been working for the last 2.8 years and I graduated from my college 2 years ago.

The reason I am writing all this is that I am actively looking for a job and want to ask your help on how to respond for the look on recruiter's face saying "``numbers don't add up``".

Whenever I am put with junior developers I feel I can do a lot better but every time I am out looking for a job, it becomes very hard to explain how I actually have the skills that I claim. 

Every time I fill a form and write 2-3 years as experience, I feel a bit sad.

**Ending Note:**
I strongly believe that during freelance I did not only gain the skills of software development but I also learned end to end delivery of products and even some business skills. People paid me to build software for them, how is that not a legit experience?

I've been coding for more than 6 years now and still have to write that I only have 2-3 years of experience, does that feel right to you?

What can I do to explain this better? Should I just say I am 2.8 years experienced?


PS. I don't like writing 2.8 for 2 yrs and 8 months as mathematically it means 80% of a year is passed but in reality, it's only around 66-67%. But that is a topic for another discussion as of now let's leave it to ``Numbers don't add up.``
A TRIP TO FRANCE,ALL YOU NEED TO KNOW
Published: 2019-08-20 19:23:56

The Great State of France.what is there not to like really? The lights,view,city and all
But as good as it all is,it is also very busy.So where would one go to relax after the everyday hustle and bustle.....
  Where would be a good place to chill out and relax,to whip out bathing suits and slather on sunscreen? I’m talking about a stand alone vacation where you can forget the world as you know it exists,take fruity cocktails by day and dance with a hot stranger by night🙃
I’m saying tiny little umbrellas in your hair and flower garlands around your neck. I’m talking about France!!!

  Fun fact, France  has only two seasons that is summer from May to September and winter from October to April.
 Franceis known for its world renowned vacation spots,beautiful islands lined with beaches of warm white sand and verdant,lush flora,beautiful food rich in culture and tasty fruity cocktails.
  It’s best to plan a vacation to France in  the summer. To know a couple of things,visit https://www.timbu.com/France
How to make your footer stick to the bottom of your page
Tags: quicktip, css, html
Published: 2019-08-20 19:12:56

---
title: How to make your footer stick to the bottom of your page
published: true
description: Tired of having your footer creep up on you? This article tells you how to kick your footer to the curb!
tags: quicktip, css, html
cover_image: https://images.unsplash.com/photo-1533037853526-b94301e591db?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1440&q=80
canonical_url: https://www.selbekk.io/blog/2019/08/how-to-make-your-footer-stick-to-the-bottom-of-your-page/
---

Don't you just hate it when you create this wonderful design, which is made for a lot of content, and then you stumble across a page that just doesn't have the content to push the footer all the way to the bottom of the page?

Something like this:

{% codepen https://codepen.io/selbekk/pen/qBWqWQQ %}

See that terrible white gap thing at the bottom? Blergh.

How can we stick that footer to the bottom of the screen?

Luckily - the fix is pretty easy once you've learned how. This article is all about teaching you **how to avoid this ugly "footer gap"** once and for all! 🎉

## First: The content structure

Most of the web sites I work with have a pretty simple basic structure. They have an outer container, a site header, a content area and a site footer. It's a versatile and popular design, and most web sites have some sort of variation of this.

You can create this structure with the following HTML:

```html
<div class="site-container">
  <header class="site-header">...</header>
  <main class="site-content">
    ...
  </main>
  <footer class="site-footer"></footer>
</div>
```

## Then: The CSS!

We're going to use the CSS layout algorithm [flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox) to push that pesky footer down into the gutter where it belongs. 

First, we apply the following styles to our `site-container` - that wrapping `<div />` that encapsulates the entire web site:

```css
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
```

Here, we specify that our main container should be laid out using flexbox, and that its children should be stacked vertically. We also specify that the site container should at least be the height of the screen.

Second, we have to apply one more CSS rule to our `site-content`:

```css
.site-content {
  flex: 1;
}
```

`flex: 1` is a quick way of saying that the item should grow as large as it can inside its container.

And that's it!

Here's a CodePen with the finished result:

{% codepen https://codepen.io/selbekk/pen/PoYbooN %}

Hope you find this useful! :)
Could someone build my kivy app for me?
Tags: kivy, python
Published: 2019-08-20 18:54:39

I have made really simple kivy app for myself but i'm using windows so i can't build it with buildozer. I wouldn't like to use p4a cause of it's complexity and on Kivy launcher the app just exits. So could anyone who's using linux (or is in other way able to do it) build my app for me? If so message me and i'll send you all the files needed (main.py, main.kv and one .json file)
SunshinePHP 2020
Tags: conference, php, mysql, javascript
Published: 2019-08-20 18:47:43

---
title: SunshinePHP 2020
published: true
description: There are many iconic PHP conferences around the globe, but this one is true to my heart and now is the time to register.
tags: conference, php, mysql, javascript
---

SunshinePHP is by far one of the most iconic PHP conferences around the globe, but more importantly, in the USA. I've attended each year since it's first.

It has been held in the warm city of Miami (since in the US, most of the country is frozen in February) for 7+ years and, regardless of when you purchase tickets, every year there are high-quality talks worth listening to.

Each year a few months prior to the conference the organizer releases "blind" pricing. During this period, you will be paying to attend a conference about PHP without knowing who will be speaking, but the price is unbeatable making it easy to justify a conference even if you have to travel.

As an example, the blind price of the general admission plus tutorials is less than the general admission alone if purchased later.

https://2020.sunshinephp.com/register

Now if want to get in for free, and still help the community, how about becoming a speaker? All you need to do is to pass the CFP selection process, which is now open.

https://cfp.sunshinephp.com/

See you there!
What is your approach for blogpost titles?
Tags: writing, meta, discuss
Published: 2019-08-20 18:35:24

---
title: What is your approach for blogpost titles?
published: true
tags: [writing, meta, discuss]
description: "The title is the face of the article. People judge the article by the title, before reading the article."
cover_image: https://thepracticaldev.s3.amazonaws.com/i/5eqd6izb7moq5x317cc1.jpg
---

The title is the face of the article. People judge the article by the title, before reading the article. Sometimes people don't read the article and instead comment based on the title. So I guess the title is pretty important.

People can as well judge based on the cover image (for example Twitter) or based on tags (for example dev.to).

Below are **some random thoughts** about titles meant as **conversation starter**.

## Styles

Some authors have a recognizable style, for example:

- Lucas Chen: "Redux is seriously overrated. Change my mind" or "TypeScript is a waste of time. Change my mind".
- jsmanifest: "14 Beneficial Tips to Write Cleaner Code in React Apps", "22 Miraculous Tools for React Developers in 2019".
- Ananya Neogi: "HTML can do that?", "CSS can do that?".

**Have you noticed some style that you like?**

## How to measure "quality"?

I notice that some of my posts get a relatively big number of likes, but a small number of views. It means that whoever opened the article liked it, but the title probably wasn't attractive enough so not much people opened it.

**Do you track "click-through rate" for your articles (titles)?**

## Cliche

> Cliché - a saying or remark that is very often made and is therefore not original and not interesting.
>
> -- [Cambridge Dictionary](https://dictionary.cambridge.org/dictionary/english/cliche)

I've been taught that cliches are bad and that I need to avoid them. But it seems that this rule doesn't work for dev.to (cliche titles work quite well here). I may be wrong about this one. What your thoughts here?

## Propaganda

Propaganda targets the emotional part of the brain (which we all have). For example:

- sensational titles (used by tabloids and yellow papers) works with those feeling: 😮, 😲, 🤯("Man bites dog")
- provocative titles use those feelings: `(╯°□°)╯︵ ┻━┻`, 😡, 🤬
- etc. it can use all spectrum of human's feelings, like fear, anger, love

Those methods are known for a long time in mass media and now people rediscover it again for blogging. Is it morally acceptable to use those tricks for dev.to posts? It seems not directly prohibited by CoC (or am I wrong?).

> Photo by Elijah O'Donnell on Unsplash
New Challenges Ahead
Tags: community, jakartaee, java, microprofile
Published: 2019-08-22 12:35:41

---
title: New Challenges Ahead
published: true
tags: Community,Jakarta EE,Java,MicroProfile
canonical_url: http://www.agilejava.eu/2019/08/20/new-challenges-ahead/
---

 **I am super excited to announce that October 1st, I will become the first Jakarta EE Developer Advocate at Eclipse Foundation!**

So, _What’s new? Hasn’t this guy been doing this for years already?_

Well, yes, and no. My day job has always been working as a consultant even if I have been fortunate that [Cybercom Sweden](https://www.cybercom.com/) (my employer of almost 15 years) has given me the freedom to also work on open source projects, community building and speaking at conferences and meetups.

_What’s different then?_

Even if I have had this flexibility, it has still been part-time work which has rippled into my spare time. It’s only so much a person can do and there are only 24 hours a day. As a full-time Jakarta EE Developer Advocate, I will be able to focus entirely on community outreach around Jakarta EE.

The transition of the Java EE technologies from Oracle to Jakarta EE at Eclipse Foundations has taken a lot longer than anticipated. The community around these technologies has taken a serious hit as a result of that. My primary focus for the first period as Jakarta EE Developer Advocate is to regain the trust and help enable participation of the strong community around Jakarta EE. The timing of establishing this position fits perfectly with the upcoming release of Jakarta EE 8. From that release and forward, it is up to us as a community to bring the technology forward.

![](http://www.agilejava.eu/wp-content/uploads/2018/05/eclipse_foundation_logo.jpg)

I think I have been pretty successful with being vendor-neutral throughout the years. **_This will not change!_** Eclipse Foundation is a vendor-neutral organization and I will represent the entire Jakarta EE working group and community as the Jakarta EE Developer Advocate. This is what distinguishes this role from the vendor’s own developer advocates.

**I hope to see you all very soon at a conference or meetup near you!**
What is the Javascript Pure Function?
Tags: javascript, webdev
Published: 2019-08-20 18:25:55


1.Pure function is the function that takes input returns a value without modifying data outsides of its scope 

2. Which Generate same output with the same parameters every time
```
var a=[1,2,3];
 
function impureJSFunction(array,value){
    array.unshift(value);
}

impureJSFunction(a,10)

console.log(a);
```
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/l7li7amumh55bit00qom.png)

This is not a Pure JS function as its affecting the outside array a[];


How javascript a Pure Javascript function?
```
var a=[1,2,3];
 
function pureJSFunction(array,value){
     return [...array,value] ;
}


console.log("pureUnshiftData",pureJSFunction(a,10))
```

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/g3w0r3hfir0jiho7o783.png)

is this a pure JS function?
```
function myFunc(array,value){
    return [...array,value,Math.random()] ;
}

console.log("Is it pure ?",myFunc(a,10));
```
![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/99chuw9khyann9myox0s.png)

//Answer is No Because it does not satisfy the second Point as it not returning same values with same parameters every time



//Answer is No Because it does not satisfy the second Point as it not returning same values with the same parameters every time


Learn Source - https://www.youtube.com/watch?v=fYbhD_KMCOg&t=311s
MySQL implicit commit
Tags: mysql, dba, development, tip
Published: 2019-08-20 18:21:21

---
title: MySQL implicit commit
published: true
description: One of the features from MySQL that you should know how it works.
tags: mysql, dba, development, tip
---

MySQL implicit commit might be one of those features that can get you by surprise if you don’t understand how it works. I’m not going to jump in and question why it was done like that and I believe there is a very reasonable reason behind it, but, nonetheless, if you don’t understand this feature of MySQL it will act against you.

The feature is simple: given certain situations MySQL, regardless of its configuration, will implicitly commit the preceding statements.

What this means is that if you have a bunch of inserts and then something that causes an implicit commit, all those inserts, regardless of the result of the implicit commit statement, will be committed leaving the database in an odd state.

Sometimes text doesn’t help so let’s move to some code or some form of a code.

<pre>
START TRANSACTION
INSERT
INSERT
INSERT
INSERT
ALTER TABLE
...
</pre>

Regardless of the result of the ALTER TABLE, based this feature of MySQL all the commits before it will be committed and, anything after the ALTER TABLE (if it doesn’t fail), will start a new transaction.

This same behavior will occur with:

* any structural changes
* another transaction start (note MySQL has the concept of SAVEPOINTS but not nested transactions)
* any BEGIN statement (there are 2 types)

So how can this affect you? Simply consider that you are restoring a SQL dump and a set of tables with it’s following data are correctly created and seeded, but one, is not. Everything up that moment will be committed and anything after will simply fail.

Another scenario is data migration scripts or scripts that attempt to reconstruct/alter data. Not understanding the implicit commit will leave your database in a bad state.

There is a lot more to talk about it but, just give the documentation a read. It is worth a million.

Ref: https://dev.mysql.com/doc/refman/5.7/en/implicit-commit.html

This article was originally at: https://bit.ly/2Z5EzF1
NodeJS: What is it & How To Install it
Tags: javascript, node, eli5
Published: 2019-08-20 17:35:26

---
title: NodeJS: What is it & How To Install it
published: true
description: a small intro to nodejs
tags: javascript, node, eli5
series: Intro to NodeJS
---

## What is NodeJS?

- a run-time environment that executes JavaScript code outside of a browser
- has an event-driven architecture capable of asynchronous I/O, therefore used in many real-time web applications, e.g. chat applications
- two main use cases: server-side scripts & command line tools
- no need to learn two languages to write fullstack applications
- has a [big ecosystem](https://docs.npmjs.com/about-npm/)

---

## How To Install it?

### Windows

1. Go to the [NodeJS download page](https://nodejs.org/en/download/current/) and click on `Windows Installer`
2. Go through the Installer


### macOS

1. Go to the [NodeJS download page](https://nodejs.org/en/download/current/) and click on `macOS Installer`
2. Go through the Installer


### Ubuntu

1. `curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -`
2. `sudo apt-get install -y nodejs`


### Arch

1. `pacman -S nodejs npm`


---


## Further Reading
[NodeJS Homepage](https://nodejs.org/)
[NodeJS Documentation](https://nodejs.org/en/docs/)
[NodeJS on Wikipedia](https://en.wikipedia.org/wiki/Node.js)
[npm](https://docs.npmjs.com/about-npm/)
Vue.js, Spring Boot, Kotlin, and GraphQL: Building Modern Apps - Part 2
Tags: vue, javascript, kotlin, springboot
Published: 2019-08-20 17:29:55

---
title: Vue.js, Spring Boot, Kotlin, and GraphQL: Building Modern Apps - Part 2
published: true
description: Learn how to build modern web apps using Vue.js for the frontend and a Spring Boot, Kotlin, GraphQL API for the backend
tags: #vuejs #javascript #kotlin #springboot
canonical_url: https://auth0.com/blog/vuejs-spring-boot-kotlin-and-graphql-building-modern-apps-part-2/
---
TL:DR: This article is the continuation of the series on building modern web apps using Vue.js for the frontend and a Spring Boot GraphQL API with Kotlin for the backend. In this part, you will create a GraphQL API using schemas, queries, mutations, and entities stored in a H2 database engine. Learn how to manage the state of an application using Vuex, improve route handling and last but not the least, improve the UI of your application using Bootstrap, Font Awesome and Google Fonts. For a quick glance of the application you will have at the end of this series, clone this GitHub repository.

[Read on 🚀]( https://auth0.com/blog/vuejs-spring-boot-kotlin-and-graphql-building-modern-apps-part-2/?utm_source=dev&utm_medium=sc&utm_campaign=vuejs_spring_p2)

![Vue.js, Spring Boot, Kotlin, and GraphQL: Building Modern Apps - Part 1](https://thepracticaldev.s3.amazonaws.com/i/zoprkt2wmgpesijuqod8.png)
Angular or React: Which can be learnt faster? 
Tags: react, angular, frontend
Published: 2019-08-20 17:26:48

--- 

title: Angular or React: Which can be learnt faster? 
published: true
description: 
tags: #React #Angular #Frontend 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/q6299yvl9elzeqyp3qxc.jpg
---

I consider myself competent at JavaScript in addition to html/css. Which framework should a beginner pick up between the popular frameworks by Google and Facebook?
Game Tic Tac Toe
Tags: replit, ruby
Published: 2019-08-20 17:26:44

Tic-tac-toe, noughts and crosses, or Xs and Os is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row wins the game.

{% replit @R4Ajeti/Tic-Tac-Toe %}
Indent (xml like) text with flatMap!
Tags: flatmap, javascript, recursive
Published: 2019-08-20 17:15:45

For a hobby-project I needed to indent an XML text which my code compiled and came up with a solution which is quite simple.

The input is an array with XML tags and all children nodes is nested inside other array.

A short example for that:
```javascript
const input = [
	'<!DOCTYPE html>',
	'<html lang="en">',
	[
		'<head>',
		[
			'<title>Hello, World</title>',
		],
		'</head>',
		'<body>',
		[
			'<h1>It works!</h1>',
		],
		'</body>',
	],
	'</html>',
];
```

And the output I wanted to achieve is this:
```html
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>Hello, World</title>
	</head>
	<body>
		<h1>It works!</h1>
	</body>
</html>
```

With the given input, the following code would achieve the goal:
```javascript

function indentText (nodes) {
	return Array.isArray(nodes)
		? nodes.flatMap(indentText).map(node => '\t' + node)
		: nodes;
}

const output = input
	.flatMap(indentText)
	.join('\n');

console.log(output);
```

Walk-through on the callback:

- A callback passed to the [Array.prototype.flatMap](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap) will walk through all the items and expected to return an item or an array for _flattening_.
- If the passed value is not an array, it just returns it back - because we want to maintain the value.
- If it's an array, it's a whole other story: Because flatMap only works on the first level, the method calls itself recursively through flatMap to resolve the deeper layers.
 - The recursive call makes sure there will be no arrays inside the actual one, just text (assuming the input is correct)
 - Mapping the items and adding an indent prefix to them. On the deepest level it will add a single character on each item, which will be accumulated during the recursive call going up the levels
What are some must watch courses in Frontend Masters?
Tags: help, javascript
Published: 2019-08-20 17:06:31

Today I was browsing the internet as usual and discovered that Frontend Masters is now part of the [GitHub Student Developer Pack](https://education.github.com/benefits). You can access all courses and workshops for 6 months.

I redeemed the benefit and started watching [Testing React Applications, v2](https://frontendmasters.com/courses/testing-react/), but I wanted to ask here, are there any courses/workshops you consider to be a **must watch** in the site?

Thanks in advance.