teleren/devto huggingface dataset:
Fosdem 2019 – I was there
Tags: mozilla, opensource
Published: 2019-02-13 14:35:56

---
title: Fosdem 2019 – I was there
published: true
tags: Mozilla,Open Source,
canonical_url: https://daniele.tech/2019/02/fosdem-2019-i-was-there/
---

My little recap of this Fosdem, with talks to check and my experience.

The post [Fosdem 2019 – I was there](https://daniele.tech/2019/02/fosdem-2019-i-was-there/) appeared first on [Daniele Mte90 Scasciafratte](https://daniele.tech/eng).
Design Patterns: Importance and its Limitations
Tags: android, appdev, blog, concepts
Published: 2019-02-18 18:10:59

---
title: Design Patterns: Importance and its Limitations
published: true
tags: android,appdev,blog,concepts
canonical_url: https://itscoderslife.wordpress.com/2019/02/05/design-patterns-importance-and-its-limitations/
---

 **Advantages of Design patterns:**

- Reusability in countless projects to solve problems with a common pattern
- Spend less time figuring out how to solve a particular issue 
- Spend a safe time on implementing the solution and improve the quality of the software product 
- Provides more value for the money
- Proven solution – Extending or enhancing a software system that relies on well-established design patterns is easier 
- Refactoring your code base also means that you introduce new bugs 
- Reduces the risk of implementing solutions that only work in the short-term. 
- Lessen the need for frequent changes by using design patterns

**Limitations**

- Whether or not to use a design pattern can be a tough decision. 
- Due to their generic nature, design patterns may not be able to address specific issues. In such cases, you will need to adapt them and change their implementation to fit your particular needs. 
- A certain level of expertise is required to implement design patterns correctly. 
- Unexperienced teams may fail to implement them properly, which can lead to bugs and unexpected delays.
C++ Interview Questions
Tags: question
Published: 2019-02-05 14:16:35

---
url: https://www.bestinterviewquestion.com/c-plus-interview-questions
title: C++ Interview Questions
published: true
description: Get latest c++ interview questions and answers at best interview question.
tags: c++,question
---

What is c++ & why it is used? 
What is the latest version on C++? 
Explain the difference between C & C++? 
What are the advantages of C++? Explain 
Why is C++ called OOPs? Explain 
What is oops and list its features in C++? 
Please explain Class & Object in C++? 
What is polymorphism & list its types in C++? 
What is namespace & why it is used in C++? 
What is a Loop? What are different types of loops in C++? 
Please explain the reference variable in C++? 
What are member functions used in C++? 
What do you mean by public protected and private in C++? 
What do you mean by “this” pointer? 
Explain the difference between class and struct in C++? 
What do you mean by volatile and mutable keywords used in C++? 
What is a storage class used in C++? 
What do you mean by inline function in C++? 
What do you mean by overhead in C++? 
Explain the difference between realloc() and free() in C++? 
What do you mean by inheritance in C++? Explain its types. 
What is constructor and destructor in C++? 
Explain the difference between new() and malloc() in C++? 
What do you mean by friend class & friend function in C++? 
What do you mean by function overriding & function overloading in C++? 
What is copy constructor? Can we make copy constructor private in C++? 
Explain the difference between Abstract class and Interface in C++? 
What do you mean by Vtable and VPTR in C++?
Interest in a DIY micro-service system?
Tags: devops, docker, kubernetes, discuss
Published: 2019-02-05 13:44:53

---
title: Interest in a DIY micro-service system?
published: true
description: Any nterest in a tutorial or series about building a DIY microservices system?
tags: devops, docker, kubernetes, discuss
---

Hello, everyone. I've been having fun these last few days building the more common components of a micro-service system out of anything I can think of. For example, I built an API Gateway with Phoenix and Elixir and a configuration server in Python.

Is there any interest in a tutorial or series following these lessons? The main point of the tutorial would be to demonstrate how a micro-service system can be developed by composing simple, stack-agnostic services. I will avoid using pre-built solutions and instead opt for building each component myself either with a few libraries or a popular framework. I find that this technique of learning is especially helpful at demystifying the more complicated aspects of any technology.

I would be using Docker and Docker-Compose for development and K8s for a simulated deployment.

Let me know in the comments if this sounds interesting.
How do you build web applications?
Tags: lowcode, saas, appbuilder, developmentplatform
Published: 2019-02-05 13:32:25

---
title: How do you build web applications?
published: true
description: Do you develop from scratch? Or use an low code dev platform builder?
tags: low code, saas, app builder, development platform
---

My partner and I are trying to understand how developers/makers build web applications.

Do you start development from scratch? Or would you use a low-code development platform?

When previously building applications, we’ve experienced a lot of repetition which annoyed the crap out of us.

So we have spent the last year building a SaaS builder - [Budibase](https://www.budibase.com/)

Budibase is an app builder which eliminates repetition, speeds up development, and allows you the freedom to use your own UI. We’re also going to open source it.

The product is not launched yet but we thought we’d seek validation from the Dev.to community. Do you feel this is a good idea? 

Is this something you would consider when building your next application?

Your answers are appreciated and will help us decide the future of Budibase.

Cheers and thanks for taking the time to help us out. Hopefully we'll be able to repay the favour!
AWS S3 Bucket Naming Challenge
Tags: aws, s3bucket, devhumor, cloudstorage
Published: 2019-02-05 13:22:25

---
title: AWS S3 Bucket Naming Challenge
published: true
description: Have you ever struggled to find that one unique AWS S3 bucket name? Dev has a situation here.
tags: AWS, S3Bucket, DevHumor, CloudStorage 
---
<span style="color: #000000;">Have you ever struggled to find that one unique AWS S3 bucket name? Dev here has a situation.</span>

<img class="alignnone wp-image-1158" src="https://thepracticaldev.s3.amazonaws.com/i/o1hr3va5u0ji3ghfj0sr.jpg" alt="AWS S3 Bucket Naming Challenge" width="656" height="559" />


<span style="color: #000000;">Check out this Sander Knape's <a href="https://twitter.com/SanderKnape/status/1060833631646728193" target="_blank" rel="noopener">tweet</a>-- you'll know what we are talking about. It is funny yet thought provoking.
</span>

<img class="alignnone wp-image-1158" src="https://thepracticaldev.s3.amazonaws.com/i/vomybub1enzy5b2ijn7o.png" alt="AWS S3 Bucket Naming Sander knape" width="356" height="259" />

<span style="color: #000000;"> The popularity of Amazon Web Services is increasing day by day. After EC2 and RDS, S3 is the most popular service, according to a <a href="https://www.clickittech.com/aws/top-10-aws-services/" target="_blank" rel="noopener">source</a>. Now imagine thousands of buckets getting created in a day. Wonder how challenging naming an AWS S3 bucket could get after few years! To top it, if you have naming conventions to follow as per company policies, you definitely need some luck.</span>

<span style="color: #000000;">What do you think? Can you help this Dev here? Tweet to us at <a href="https://twitter.com/totalcloudio">@totalcloudio </a></span>

<span style="color: #000000;"> Note: Originally published at <a href="http://blog.totalcloud.io/aws-s3-bucket-naming-challenge/" target="_blank" rel="noopener"> blog.totalcloud.io </a> on February 5, 2019.
</span>
Getting started with the yuga-framework part 1
Tags: php, framework, yugaframework, yuga
Published: 2019-02-05 12:45:40

---
title: Getting started with the yuga-framework part 1
published: true
description: This tutorial is about awareness of the yuga php framework
tags: PHP, Framework, Yuga-framework, Yuga
---
There is a full list of frameworks most of which are php frameworks, these frameworks help in Rapid Application 
Development. However, some of these frameworks are really had to get started with, have complex paradigms, 
and some are not good enough for an advanced php developer. This is where the yuga-framework comes in handy.

In this tutorial, I will introduce you to yuga-framework a framework for PHP that leverages between a beginner and advanced developer. Yuga-framework can be used just to develop apis or fully fledged web applications.

## What is Yuga-framework?
Yuga is a php framework that is ideal for rapid web app development, It can be used to develop apis or an entire web application like mentioned earlier. It supports all HTTP verbs or methods (GET, POST, PUT, DELETE, PATCH, and custom ones). It has automatic form validation, automatic cross site request forgery protection on routes and does not force the user to use Route methods if they aren't coming from that background. You can learn and advance with the framework.

### Steps needed to get started with yuga-framework

#### Step 1: Install Composer
Install composer (php package manager) if you don't already have it on your machine from [here](https://getcomposer.org/download/)

#### Step 2: Install Yuga Framework From Packagist using composer
To get started you just need one command
```
composer create-project yuga/yuga Blog
```
#### Step 3: Run the application
To run the application we have just created using composer, we **cd** to *Blog* and open the project in terminal or console, type the following **yuga command**, Oooh, Did I forget to mention that the framework comes with its own console application, I just did.
```
php yuga start
```
#### Step 4: See output
To see what the yuga start command has done, go to your browser and visit http://localhost:8000

#### Step Finale
Open the project in your favorite editor, in my case it's vs code. Let's try to see the file structure

- app
    - Controllers
    - helpers (optional)
    - Middleware (created automatically when you make a middleware using a yuga command).
    - Models
    - Providers (houses your application service providers)
    - ViewModels (Where view models live). The framework is well integrated with ViewModels so that's where our logic will reside
- boot (framework specific) do not touch
- config (Where the configuration settings of you application reside). Feel free to alter and see how the application changes
- database (Where migrations live)
- environment (Where environment settings live)
- mailables (Where files that can be sent as emails reside). This can change
- public (Where you should point your server instance)
- resouces (Where views are saved)
- routes
    - web.php (A file that holds all our routes)
- storage
- tests
Quick Share : Web Framework Benchmarks
Tags: discuss, performance, benchmarks, webframeworks
Published: 2019-02-05 12:34:03

---
title: Quick Share : Web Framework Benchmarks
published: true
description: Just found some interesting Web Framework benchmarks that i wanted to share.
tags: #discuss #performance #benchmarks #webframeworks
---

I stumbled upon a very interesting study of measuring the performance of various frameworks.

Amount of data gathered on various frameworks running with different configurations is astonishing. 



https://www.techempower.com/benchmarks/#section=data-r17&hw=ph&test=fortune&l=y44ozj-1

![3e6g04q9sh6ko8f5dv4u.PNG](https://thepracticaldev.s3.amazonaws.com/i/3e6g04q9sh6ko8f5dv4u.PNG)


I understand some but most of things are going around my head 😌 ⛟. It would be very useful to me and the community if anyone 😇 can shed more light into this..


Cheers 🙏
If/else or just if?
Tags: discuss, javascript, webdev
Published: 2019-02-05 00:01:27

---
title: If/else or just if?
published: true
description: It's a simple question that cuts deep.
tags: discuss, javascript, webdev
cover_image: https://thepracticaldev.s3.amazonaws.com/i/nzvrav6ia6ohrp5pi7sz.jpeg
---

Today in a code review we had a statement like this:

### Statement A

```js
if (typeof val === 'string') {
    return 'A'
} else if (val === null || val === undefined) {
    return 'B'
} else {
    return val
}
```

And a suggestion was made to switch to the following:

### Statement B

```js
if (typeof val === 'string') return 'A'
if (val === null || val === undefined) return 'B'
return val
```

I won't tell you where we came out 😜, but which do you feel is a better way?

Was the suggestion to be concise and avoid `if/else` logic a good one, or was the original way better?
Deploying your Gatsby.js site to Netlify.
Tags: gatsby, netlify
Published: 2019-02-05 11:06:39

---
title: Deploying your Gatsby.js site to Netlify.
published: true
description: A basic guide for deploying your Gatsby.js website to Netlify.
tags: Gatsby, Netlify
---

I've built a few sites now using Gatsby.js, the fantastic static site generator tool based on React. When I first started out I hosted my sites on Github pages, which sometimes became tedious, I think i lost hours trying to make sure the `pathPrefix` was correct.

I eventually came across Netlify, a cloud based hosting provider and much more.

![Screenshot of Netlify homepage](https://thepracticaldev.s3.amazonaws.com/i/j1q78j5brpzm1pwcx60s.png)

What i found remarkable was their free tier hosting which provides everything I needed.

![Screenshot of Netlify pricing plans](https://thepracticaldev.s3.amazonaws.com/i/p6n00ti9piy9m98jz420.png)

So this guide is a top level look at hosting a personal portfolio site on Github/Netlify. 


First things first, make sure you have your Gatsby.js project on Github. 

![Netlify screenshot for github](https://thepracticaldev.s3.amazonaws.com/i/kprdzjm40lp60wp2eivx.png)

I've chosen Github here.

![Select repo](https://thepracticaldev.s3.amazonaws.com/i/k6cex2ft8das96q56ujl.png)

Select which repository you would like Netlify to host, I've created a Gatsby demo here called `davids-gatsby-site` from the Gatsby starter kit.

Now Netlify should automatically detect our site is Gatsby.js and pre-populate the Basic built settings. 

![Netlify build settings](https://thepracticaldev.s3.amazonaws.com/i/gh9ax204r2prn7b6e6uc.png)

Pro tip: If we wanted to we can create a `netlify.toml` file, we won't dive into this today but one of the advantages of this are we can keep this in code. 

Click Deploy.

Deployment will run in the background, then after a few mins it should be done.

![Netlify deployment](https://thepracticaldev.s3.amazonaws.com/i/csr5wsz0m1fnx51hsmaj.png)

There you have it, [here](https://confident-tereshkova-9e3bab.netlify.com/) you've deployed the site Gatsby.js site to Netlify.

![Netlify done](https://thepracticaldev.s3.amazonaws.com/i/lbffbbd9nuuxuklycz79.png)
Ship or Source
Tags: idea, maker, short
Published: 2019-02-05 10:11:15

---
title: Ship or Source
published: true
tags: Idea, Maker, Short
canonical_url: https://miguelpiedrafita.com/ship-or-source/
cover_image: https://images.unsplash.com/photo-1523590589308-0d75c7389d38?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ
---
{% blogcast 295 %}

Yesterday, I had an idea just as I was going to bed. I was thinking about how sites like Peter Levels' _[Go Fucking Do It](https://gofuckingdoit.com/),_ a site where you set yourself a goal, and pay from $100 to $1000 if you don't achieve it. Specifically, I was thinking about how this sites increase productivity, and how can I do something similar (without paying money, because I'm a teenager and don't have a big quantity I can lose) to help me actually finish all my code projects and not leave them unfinised.

Then, an idea came to my mind. I called it Ship or Source. The challenge consists on setting a clear deadline for when you want your project to be launched. If by that day the product hasn't launched on ProductHunt, your repository goes public.

Not only this would motivate you to build and ship your product, but it'll also ensure you contribute something to the world, even if you finally leave the project, as other will be able to dig through the code and hopefully learn new things.

Ironically, this adds yet another project to my ideas list (which keeps growing and growing everyday), so I'll be doing this manually for now (instead of creating a platform for it), but if you're searching for something to build, feel free to take this :)
How Do You Continuously Learn?
Tags: learning, discuss
Published: 2019-02-05 08:19:17

---
title: How Do You Continuously Learn?
published: true
description: Discussion about how different developers learn new skills.
tags: learning, discuss
---

In a world where users constantly change how they interact with technology, where break-through technologies are only ever a few months a way, and where new JavaScript frameworks pop up almost daily, one of the best things we can do as developers is to constantly learn. 

Whether that means learning a brand new language, how to follow a different coding pattern, how to use the latest DevOps tools, or something else entirely, it's important that we find ways to build continuous learning into our lives.

I've already written about [something I do everyday](https://dev.to/joshhadik/rapid-reps---a-manageable-way-to-learn-new-skills-1pf) to keep me learning, but I'm curious to hear from the dev community...

What habits or techniques do you use to continuously learn new skills?
Building a personal website with GatsbyJS and Ghost deployed on AWS
Tags: ghost, gatsby, javascript, react
Published: 2019-02-05 08:03:18

---
title: Building a personal website with GatsbyJS and Ghost deployed on AWS
published: true
description: An guide to build a site using Gatsby and Ghost deployed on AWS
tags: ghost, gatsbyjs, javascript, react
---

As a web developer, I like to be in full control of how my website looks and acts. And with the growing popularity of ReactJS, I decided to use [GatsbyJS](https://www.gatsbyjs.org/) which is a framework to build static sites using React.

However...

While GatsbyJS was a perfect solution for my website's frontend, it lacked a CMS (Content Management System) for my blog posts and an online editor. I knew I could use Ghost is my blogging setup but I didn't want to use its EmberJS based frontend and wanted to stick to Gatsby.

I started searching online about how I can connect Ghost to my Gatsby site, and luckily Ghost had just [released](https://blog.ghost.org/jamstack/) its content API V2, i.e. an API to use Ghost as a CMS with any frontend layer.

So that's exactly what the setup for my personal website looks like. Its a Gatsby based site which pulls the data for the [blog](https://nishantdania.com/blog/) pages from a Ghost server that I am hosting on AWS. I use the Ghost editor to write my posts which means that I don't have to git push any markdown files every time I have to post something.

I am using AWS Route53 to host my domain, an AWS S3 bucket to serve all the static files generated by Ghost, an AWS Cloudfront instance which is a CDN service by Amazon that also provides free SSL for my S3 bucket, an AWS EC2 instance that runs my Ghost server and on top of all this, I use AWS CodeBuild to allow me to auto deploy my site in just one-click.

"Woah, that a lot of stuff for running a website dude !"

I know. But its worth it. I can now write in the Ghost editor and publish my content in a click on-the-go while still maintaining full control of how my website looks.

In the series of blog posts that follow this article, I'll go through the entire setup process. I hope you learn something new along the way and would love to know if you managed to setup your site using this approach. For any questions around this topic, please post them to the [Ghost Gatsby Spectrum channel](https://spectrum.chat/ghost-gatsby).

Get yourself a cup of coffee, play some good music and lets get started.

[Ghost & Gatsby Part 1 - Setting up AWS S3, Cloudfront and Route53 to host the project](https://nishantdania.com/blog/ghost-gatsby-part-1-setting-up-the-s3-bucket-to-host-the-project)
[Ghost & Gatsby Part 2 - Setting up a Ghost blog on AWS EC2](https://nishantdania.com/blog/ghost-gatsby-part-2-setting-up-a-ghost-blog-on-aws-ec2)
[Ghost & Gatsby Part 3 - Setting up a Gatsby site with gatsby-source-ghost plugin](https://nishantdania.com/blog/ghost-gatsby-part-3-setting-up-a-gatsby-site-with-gatsby-source-ghost-plugin)
[Ghost & Gatsby Part 4 - Setting up AWS CodeBuild for auto deploying the site](https://nishantdania.com/blog/ghost-gatsby-part-4-setting-up-aws-codebuild-for-auto-deploying-the-site)
Do you recognize your code 6 months later?
Tags: discuss
Published: 2019-02-05 07:54:26

---
title: Do you recognize your code 6 months later?
published: true
tags: discuss
---

> "Any code of your own that you haven't looked at for six or more months might as well have been written by someone else." - Eagleson's law

There are many angles to this quote, and we look at several of them in the show. I take the view that you should be able to recognize your code, and you should be able to be productive in it again, especially after only six months. Though, as time goes on, you'd expect code to look different, as you learn new things.

Stephane says he has problems recognizing code he wrote a few weeks ago.

{% podcast https://dev.to/edaqa-and-stephane-podcast/18-eaglesons-law %}


Do you recognize your own code? Or are you horrified when you go back?


Check out the [show notes](https://dev.to/edaqa-and-stephane-podcast/18-eaglesons-law)  and [read my book](https://edaqa.com/what_is_programming/).
Flow / Typescript Article Series Idea
Published: 2019-02-05 07:31:44

---
title: Flow / Typescript Article Series Idea
published: true
description: 
tags: 
---

I've been mulling over a comprehensive guide to Flow / Typescript. There's plenty of great resources, but all of the documentation I've seen is very fragmented (even official docs)

I think something that went over:
- differences between flow / typescript
- ways that they can break (fundamental language issues, etc)
- how to work with 3rd party code
- specific use cases like with relay (graphql), redux, higher order components, etc
- common pitfalls
- developer tooling
- code coverage
- how to ramp up team members to the tech and pitfalls I've seen with introducing this to teams

Has anyone seen anything like this, and if not, would it be appreciated?

Thanks!