teleren/devto huggingface dataset:
How do you manage private files on your work computer?
Tags: discuss, files, management
Published: 2018-07-03 12:23:42

---
title: How do you manage private files on your work computer?
published: true
description: Which approach do you take to manage private files on a work maschine?
tags: discuss, files, management
---

As I use my work laptop also for private researches or coding sessions in the evening because I am too lazy to sit on my desktop at home, I always have some downloads or files which are not work related.

How do you store them? Do you have a separate folder for everything private or don't care at all?
How Computers Work?
Tags: computerscience, webdev, beginners, career
Published: 2018-07-03 12:01:10

---
title: How Computers Work?
published: true
description: Do you want to learn computer science or curious about how this machine works internally know something better about how computers really work?
tags: computerscience,webdev,beginners,career
cover_image: https://fossbytes.com/wp-content/uploads/2018/01/Bill-Gates-How-Computers-Work.jpg
---

We all know computers are everywhere and every part of our life computers helps us to solve problems.

Do you want to learn computer science or curious about how this machine works internally know something better about how computers really work?

There is a really good series on Youtube about how computers work.

## 1. Introducing How Computers Work by Bill Gates

{% youtube  OAx_6-wdslM %}

## 2. How Computers Work: What Makes a Computer, a Computer?

{% youtube  mCq8-xTH7jA %}

## 3. How Computers Work: Binary & Data

{% youtube  USCBCmwMCDA %}

## 4. How Computers Work: Circuits and Logic
{% youtube  ZoqMiFKspAA %}


## 5. How Computers Work: CPU, Memory, Input & Output
{% youtube  DKGZlaPlVLY %}

## 6. How Computers Work: Hardware and Software

{% youtube xnyFYiK2rSY %}

*Hope you enjoyed*

happy coding.....
Build an E-Commerce Progressive Web App with Gatsby
Tags: pwa, gatsby, ecommerce
Published: 2018-07-03 19:12:09

---
title: Build an E-Commerce Progressive Web App with Gatsby
published: true
tags: pwa, gatsby, ecommerce
canonical_url: https://snipcart.com/blog/pwa-example-ecommerce-gatsby
---

![A PWA Example: Build an E-Commerce Progressive Web App with Gatsby](https://snipcart.com/media/203668/what-is-progressive-web-app.png)

I tried buying a t-shirt on my phone the other day.

First, I get redirected to a `http://m.thatsite.com` URL.

Mobile site loads...

Content finally appears, along with a fullscreen pop-up:

**Download our mobile app for a better shopping experience!**

I tap the link. App store loads...

Bad reviews, blurred screenshots, 50 MB. *Sigh*

I close both app store and browser.

***

This familiar, sketchy shopping experience *could* have been avoided. 

How? With **progressive web app e-commerce**.

Progressive Web Applications (PWAs) have been on the rise these last years. Solid [PWA examples](http://pwa.rocks/) are popping up everywhere, and for good reasons.

They encourage an inclusive, global, adaptative approach to web development. They make sense both from a user AND a business POV, as we'll see in this piece. Frameworks like [React](https://snipcart.com/blog/react-seo-nextjs-tutorial) and [Vue JS](https://snipcart.com/blog/vuejs-ecommerce-headless-buttercms) are increasingly used to craft PWAs.

In this post, I'll cover:

1. A definition of PWAs
2. A case for PWA e-commerce
3. An overview of Gatsby.js for PWAs
4. A detailed PWA example with steps, code repo, and live demo

Let's dive in.

→ Read the full post [here](https://snipcart.com/blog/pwa-example-ecommerce-gatsby)
Use AppleScript to Automate with iTerm
Tags: terminal, applescript, productivity
Published: 2018-07-03 10:51:32

---
title: Use AppleScript to Automate with iTerm
published: true
description: Use AppleScript with iTerm to save on running the same commands over, and over.
tags: terminal, applescript, productivity
canonical_url: https://tj.ie/use-applescript-to-automate-with-iterm
---

Sometimes when you're working on a project, be it work or personal, you might only be running a command in the terminal like `npm run dev`. Other times it might be a bit more involved. Maybe you have a local server running in one tab with another tab to run webpack and finally another one open for you to tap in your git commits.

This gives us an opportunity for automation if you find yourself doing this often. Let's imagine the above scenario where we want to run a server, webpack and keep a tab free for other once-off commands that we might want to run like git.

To get started, we'll need to open Script Editor from Applications > Utilities > Script Editor. We'll use this blank canvas to line up some instructions. _Note:_ this assumes iTerm is already running.

``` applescript
tell application "iTerm"
	tell the current window

	end tell
end tell
```

With this we grab the currently running instance of iTerm and focus in on the current window that's running.

Next we'll create a new tab and run some commands. This will set a variable for the tab that we can interact with and run with the default profile. If you have other profiles set up with iTerm you can specify it here instead.

What's nice as well is we can tell iTerm to split into panes so we don't get overrun with tabs.

``` applescript
tell application "iTerm"
	tell the current window
		set appTasks to create tab with profile "Default"
		
		tell the appTasks
			tell the current session
				set name to "App"
				write text "cd ~/Code/my-app"
                write text "node index.js"
				
				set webpack to split horizontally with default profile
				tell webpack
					write text "cd ~/Code/my-app"
					write text "npm run dev"
				end tell
			end tell
		end tell
    
        set freeTab to create tab with profile "Default"
		
		tell freeTab
			tell the current session
				set name to "Free"
				write text "cd ~/Code/my-app"
			end tell
		end tell
	end tell
end tell
```

You could also use this to launch it with your code editor of choice, so if you're rocking Visual Studio Code you could update the last block to be:

``` applescript
tell freeTab
  tell the current session
    set name to "Free"
    write text "cd ~/Code/my-app"
    write text "code ."
  end tell
end tell
```

Once you're ready to go, you can click the play button in the toolbar of Script Editor to kick everything off. When you're happy with the result you can save the script and the next time you launch Script Editor you'll be able to choose it and run it again.

I've found this fairly useful for work where there might be multiple apps and services that need to be run in parallel. 

This was originally [posted on my blog](https://tj.ie/use-applescript-to-automate-with-iterm).
How to learn to create Progressive Web Apps?
Tags: pwa, react, webdev, showdev
Published: 2018-07-03 07:07:46

---
title: How to learn to create Progressive Web Apps? 
published: true
description: learn to create PWA like dev.to
tags: pwa, reactjs, webdev, showdev
---

Hello everyone, I have been practicing to create web apps with Node.js and Express.js and I am also practicing to create those with Python Django. Thus I have mostly focused on Backend frameworks and 
working around routes mostly. I have not worked much on Front-end part mostly with 

# React.js

But I want to learn how to create Progressive web apps. Just like our [dev.to](dev.to) site since this is really cheering community and dev.to itself is a PWA. So may be @Ben would be able to explain in details. 

Please explain the tech stack that one can use, and also suggest any articles/blogs/video series that is available to work with. Also please explain the difference between PWA and Hybrid Apps and how are they different from React Native apps

PS and yes that's a screenshot of my lovely MotoG3^osprey

Thanks.
What do you prefer and why? Mono repo or multiple repositories?
Tags: microservices, discuss
Published: 2018-07-03 06:47:08

---
title: What do you prefer and why? Mono repo or multiple repositories?
published: true
description: 
tags: microservices, discuss
---
Moving to Microservices Architecture?

![We believe mono repos are the right choice](https://thepracticaldev.s3.amazonaws.com/i/x6mqgvu6hyniigzwb32f.png)

It is not just about moving to Microservices, when creating a system to perform a specific task, you need to make one decision clear, i.e, whether to keep the code in one repository or split it across multiple repos. 

We wrote an in-depth article on why we believe [mono repos are the right choice](http://bit.ly/monorepomicroservices) for us.

What do you prefer and why? Mono repo or multiple repositories?
Final classes in Java
Tags: java, programming, coding, oop
Published: 2018-07-01 20:20:02

---
title: Final classes in Java
published: true
description: Inheritance impossible
tags: java, programming, coding, oop
---

There have been [some](https://dev.to/amarlearning/why-it-is-not-possible-to-extend-a-final-class-in-java-5467) [discussions](https://dev.to/vasilvestre/explain-what-really-happening-when-you-put-final-in-a-class-like-im-five-2n26) about the `final` keyword applied to classes in Java. To put it simple: when a class is declared final, you can't create a sub class of it.

An example would be helpful now.
Say this is your class:
``` java
public final class PopBand {
	public void hereIAm() {
		System.out.println("Here I am");
	}
	public void willYouSendMeAnAngel() {
		System.out.println("Will you send me an angel?");
	}
}
```

If you try to create a sub class, the compiler will give you an error:
``` java
// This will cause a compile error
public class RockBand extends PopBand {
}
```

What you can do, though, is extend the class by using composition.
That is: you create another class that contains an object of the original class. And then you delegate to the original (for the original's methods). And you add new methods. Like this:
``` java
public class PopRockBand {
	/**
	 * Create an object of the class PopBand and assign it to containedBand
	 */
	PopBand containedBand = new PopBand();
	
	/**
	 * Delegate to methods of PopBand 
	 */
	
	public void hereIAm() {
		containedBand.hereIAm();
	}
	
	public void willYouSendMeAnAngel() {
		containedBand.willYouSendMeAnAngel();
	}
	
	/**
	 * This method is specific to PopRockBand class
	 */
	public void rockYouLikeAHurricane() {
		System.out.println("Rock you like a hurricane");
	}
}
```
And here's the Main class that proves composition works:
``` java
public class Gig {
	public static void main(String[] args) {
		PopRockBand scorpions = new PopRockBand();
		
		// Play "Send me an angel"
		scorpions.hereIAm();
		scorpions.willYouSendMeAnAngel();
		
		// Play "Rock you like a hurricane"
		scorpions.hereIAm();
		scorpions.rockYouLikeAHurricane();
	}
}
```
What is your favourite function()?
Tags: discuss
Published: 2018-07-03 06:23:49

---
title: What is your favourite function()?
published: true
tags: discuss
---

I think mine would be `json_encode()`. I think it's so cool that a single function can make your data understood by other machines. (I know other machines can interpret different kinds of data, but c'mon...)

How about you? What's your favourite function?
Best resources for learning cloud and distributed computing?
Tags: help, cloud, distributedsystems
Published: 2018-07-03 05:17:11

---
title: Best resources for learning cloud and distributed computing?
published: true
description: 
tags: #help #cloud #distributedsystems
---

Hi, I want to develop applications pertaining to cloud and distributed computing architecture. I have some basic theoretical knowledge of cloud. I have looked into internet but not able to find cumulative resources explaining steps and guidelines with proper sample projects.

So, can anyone suggest some good resources(books/online courses/articles) that will help me seriously dive into cloud computing field?

Thanks
Piyush
Would you hire an entrepreneur?
Tags: career, life, business, discuss
Published: 2018-07-03 04:16:42

---

title: Would you hire an entrepreneur?
published: true
description: 
tags: career,life ,business, discuss
cover_image: https://thepracticaldev.s3.amazonaws.com/i/60lku5l1fipjqueecqnm.jpg
---


And I'm not talking about a rich businessman. I'm talking about a developer who just opened his tech startup and maybe is getting his first customers. When considering someone with that profile for a tech gig, one may think that it's a good thing, because an entrepreneur is usually a hard worker and can get along nicely with a team. But others may think that an entrepreneur will put his startup before the company, won`t give his best or may even steal some co-workers. 

How do you guys feel about it?
Getting Started With s2i
Tags: docker, containers, images, opensource
Published: 2018-07-03 03:32:25

---
title: Getting Started With s2i
published: true
description: explains what s2i is and demonstrates creating a simple JBoss image
tags: docker, containers, images, opensource
cover_image: https://thepracticaldev.s3.amazonaws.com/i/rad1xni6w814wbapkql1.jpg
---

First entry in a new series is now live:

https://vault.osninja.net/tag/source-to-image/

This week I talk about what s2i is and provide a simple example of building a helloworld Java app deployed on JBoss EAP 7.
My 7 month update of my programming journey.
Tags: discuss
Published: 2018-07-03 01:36:27

---
title: My 7 month update of my programming journey.                                
published: true
description: My 7 month update of my programming journey.   
tags: #discuss
---

So I have not posted in a little bit. Mainly because I have been running around dealing with a million other things. But I wanted to come back and post a bit of a update now that I have hit 7 months. First of all I want to say 7 months may seem like a whole lot of time but it goes by really really fast.So there really is not much to update besides that I am still pushing along in math. I will be working on breaking into learning pre calculus here soon. And other than that it has been just work study work.

So since there is not much to update I did want to announce a few other things. First I wanted to say congrats to a friend for landing her first dev job. She announced it a few days ago on twitter. @JavaScriptErika. 

Also I wanted to take the time to reach out to the community. For any one who might know of a position for my other friend @TiffanyW_412 on twitter. She is looking for a junior front-end web dev position that is remote friendly. Or mostly remote. You can check out her work  below.

portfolio: https://www.tiffanyrwhite.com/portfolio 
 
So with that said I hope all of you have a good week. And until next time keep on going at it!
Module Monday: Carousel slideshow, Sticky footer, Phone overlay & more
Tags: showdev, opensource, webdev, javascript
Published: 2018-07-02 21:28:05

---
title: Module Monday: Carousel slideshow, Sticky footer, Phone overlay & more
published: true
description: Free, open-source modules for your next project
tags: showdev, opensource, webdev, javascript
cover_image: https://res.cloudinary.com/component/image/upload/v1530209769/slider_gspret.gif
canonical_url: https://guide.anymod.com/module-monday/02.html
---

Mods are functional, ready-to-use web modules for any website, on any platform.

## Open source: fork or copy + use anywhere
All of the mods below are open sourced by [Anymod](https://anymod.com) and free to use in any project you choose, whether on Anymod or not.

We support developers and open source, and Module Mondays are one way we give back to the developer community to help foster a more open, inclusive web. We hope you enjoy!

### Carousel slider
Responsive slider with custom images.
<a class="button" href="https://anymod.com/mod/dbdkb?v=20">View mod</a>
<a href="https://anymod.com/mod/dbdkb?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1530209769/slider_gspret.gif"/>
</a>

### Features section
Page with alternating text & images (we use it on anymod.com 🤓)
<a class="button" href="https://anymod.com/mod/rdoll?v=20">View mod</a>
<a href="https://anymod.com/mod/rdoll?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1530209760/feature_c2ehuy.png"/>
</a>

### Sticky footer
Reusable footer that stays at the bottom of the page for any window size.
<a class="button" href="https://anymod.com/mod/ondrb?v=20">View mod</a>
<a href="https://anymod.com/mod/ondrb?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1530209760/footer_uqioxn.png"/>
</a>

### Phone image overlay
Upload your image and it shows on the phone's screen.
<a class="button" href="https://anymod.com/mod/rdoal?v=20">View mod</a>
<a href="https://anymod.com/mod/rdoal?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1530209760/phone_overlay_es4ezp.png"/>
</a>

### Team page
Editable team section with automatic face cropping for images.
<a class="button" href="https://anymod.com/mod/moalk?v=20">View mod</a>
<a href="https://anymod.com/mod/moalk?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1530209760/team_page_ij8ypx.png"/>
</a>

## Contributing
If you want to contribute mods or ideas so that other developers can benefit, you can [request mods](https://guide.anymod.com/v1/community/requests.html) or [submit a mod](https://guide.anymod.com/v1/community/contributing.html).

I'll be posting new modules [here](https://dev.to/tyrw) every Monday -- I hope you find them useful!

Happy coding ✌️
LIVE SHOW - Progressive Web Applications #PWA in Angular
Tags: angular, javascript, frontend
Published: 2018-07-02 19:13:44

---
title: "LIVE SHOW - Progressive Web Applications #PWA in Angular"
published: true
tags: angular, javascript, frontend
cover_image: https://thepracticaldev.s3.amazonaws.com/i/oi6umht6970hovw78iew.png
---
Angular-Academy-Show S01E02 - Progressive Web Apps in #Angular #PWA with @webmaxru and @Michael_Hladky!

✅ Current status of PWA
✅ The ways to build PWA for Angular apps
✅ Main features of Angular Service Worker
✅ Angular SW vs. Workbox

LINK TO VIDEO: www.youtube.com/watch?v=xmiX0N4RGFQ

Angular Academy Show by www.angular-academy.com
Clojure: Introduction
Tags: functionalprogrammi, clojure, clojurescript
Published: 2018-07-02 22:34:11

---
title: Clojure: Introduction
published: true
tags: functional-programmi,clojure,clojurescript
canonical_url: 
---

#### Quick introduction to Lisp, Clojure and ClojureScript

[**Clojure**](https://en.wikipedia.org/wiki/Clojure) is a dialect of the [Lisp](https://en.wikipedia.org/wiki/Lisp_(programming_language)), general-purpose language with dynamic type system. It’s run on [JVM](https://ru.wikipedia.org/wiki/Java_Virtual_Machine) and can be compiled to JavaScript (and here we are already talking about [**ClojureScript**](https://clojurescript.org/)). Main features of Clojure (and mainly Lisp):

- [Homoiconicity](https://en.wikipedia.org/wiki/Homoiconicity)
- [Reflection](https://en.wikipedia.org/wiki/Reflection_(computer_programming)) and [metaprogramming](https://en.wikipedia.org/wiki/Metaprogramming)
- Immutability
- [First-class functions](https://en.wikipedia.org/wiki/First-class_functions)
- [Functional programming](https://en.wikipedia.org/wiki/Functional_programming)
- [REPL Driven Development](https://clojure.org/about/dynamic)

Best overview can be found on [official site](https://clojure.org/about/rationale).

It would be true if I say that Clojure doesn’t have syntax. It just uses Symbolic Expressions ([s-expressions](https://en.wikipedia.org/wiki/S-expression)): function call is a [list](https://en.wikipedia.org/wiki/List_(abstract_data_type)) where first item — name of the function and the rest — arguments. It’s called [prefix notation or polish notation](https://en.wikipedia.org/wiki/Polish_notation).

```
; clojure

(+ 1 2) ; 3
(max 13 9) ; 13
```

And here core concepts of clojure syntax is ended!

List is one of the most used data structure in Clojure but how we can use it as data if we use it in the code? We need treating code as data: add quote prefix (') before list or use special form quote. It’s really something like quotes in out regular texts. Of cause quotemakes sens not only for lists.

```
; clojure

'(1 2 3) ; (1 2 3)
(quote (+ 1 2 3)) ; (+ 1 2 3)
```

Greate, we have code as data — one of the most unique feature of Clojure — thanks to quote! For executing data as code you can use eval.

```
; clojure

(eval (quote (+ 1 2 3))) ; 6
```

So you can do code -> data -> new data -> code and transform your code in runtime. And it was just one example of really powerful conceptions of Clojure!

That’s enough for quick introduction to Clojure, feel free to read all links in this article for full picture. **In next article we will talk deeply about syntax.**

**Your are always welcome to follow** [**Medium**](https://medium.com/functionalhick) **and** [**Twitter**](https://twitter.com/maksugr) **, ⭐️ and create issues on** [**GitHub**](https://github.com/maksugr/functionalhick)) **, read publications on** [**functionalhick.online**](https://functionalhick.online/) **. Feel free to give any feedback, I am in touch 🙌🏻**

* * *
Who's looking for open source contributors? (July 2 edition)
Tags: discuss, opensource
Published: 2018-07-02 16:58:59

---
title: Who's looking for open source contributors? (July 2 edition)
published: true
description: Please shamelessly promote your project. Everyone who posted in previous weeks is welcome back this week, as always.
tags: discuss, opensource
---

Please shamelessly promote your project. Everyone who posted in previous weeks is welcome back this week, as always. 😄
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2018-07-02 16:41:43

---
title: The 7 Most Popular DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week.
tags: icymi
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sfwcvweirpf2qka2lg2b.png
---

#1. Think about your future self

_Write better commits today!_

{% link https://dev.to/pavlosisaris/git-commits-an-effective-style-guide-2kkn %}

#2. Class over class over class

Our author identifies and questions the OOP trend of throwing lots of classes in source code. 

{% link https://dev.to/adriannull/oop-overkill-250h %}

#3. Ask Vladimir Agafonkin anything!

Leaflet is one of the most influential projects in mapping history. The community took this opportunity to ask all sorts of questions. This is an ongoing AMA so feel free to jump in if you have any Qs!

{% link https://dev.to/mapbox/im-an-open-source-enthusiast-at-mapbox-the-creator-of-leaflet-and-40-other-js-libraries-and-a-rock-musician-ama-1c7o %}

#4. Facing old challenges

The what & why behind solving a particular algorithm and a critique on computer science class. 

{% link https://dev.to/aspittel/how-i-finally-wrote-a-sudoku-solver-177g %}

#5. Refrigeration!

>Your cows will not be expected to produce in real-time. The supermarket will handle the demand.

This is a really fun explanation 👇

{% link https://dev.to/kbk0125/web-caching-explained-by-buying-milk-at-the-supermarket-9k4 %}

#6. Practice makes better

A list of helpful resources for people learning to program, but probably also helpful for people who already know how. From an API security checklist to a list of influential books. 

{% link https://dev.to/_elmahdim/robust-resources-and-materials-to-boost-your-programming-skills-3d79 %}


#7. _Cue Lightbulb 💡_

A long-time subversion user shares their six big 'aha' moments when they had to start using git for version control. 

{% link https://dev.to/henrikwarne/6-git-aha-moments-3097 %}


_That's it for our weekly wrap up! Keep an eye on dev.to this week for daily content and discussions...and if you miss anything, we'll be sure to recap it next Monday!_