teleren/devto huggingface dataset:
Django Hello World!
Tags: django, webdev, python
Published: 2019-10-21 06:40:08

Django is a secure, tested and battery included Python web frame work comes with a powerful ORM and migration, a different approach of developing web apps (solving the web request-response problem) called Model-View-Template in contrast with MVC, and often considered very opinionated.

One may think it's clunky and unnecessarily complicated for simple tasks. In the last US DjangoCon in September 2019, Carlton Gibson a respected friendly core Django veteran, beautifully shows that at core all web frame works are trying to solve the same problem and it is possible that Django too can be scraped down to a skinny single Python script for a Hello World! But Django is evolved to be what it is today to solve real world problems for rapid development and pragmatic design.


```python
# app.py
from django.conf import settings
from django.core.handlers.wsgi import WSGIHandler
from django.http import HttpResponse
from django.urls import path

settings.configure(
    ROOT_URLCONF = __name__,
)

def hello_world(request):
    return HttpResponse('Hello World!')

urlpatterns = [
    path('', hello_world)
]

webapp = WSGIHandler()
```

Now, lets install Gunicorn HTTP WSGI web server in a new environment to catch and hand over any request coming its way to our web app!
```bash
$ Pipenv install gunicorn
$ Pipenv shell
```
Let's run and introduce the web server to our minimalist web app.
```bash
$ gunicorn app:webapp
```

In the above command, the left of the colon is the python script file name our code lives in and the right of the colon is the name of the 
function calling our web app.


Now navigate to http://127.0.0.1:8000/ for a nice greeting!


Carlton Gibson talk at DjangoCon 2019 [Django as a Micro-Framework](https://www.youtube.com/watch?v=w9cYEovduWI&t=0s)
Enhance Your Career with the Best Microsoft Azure Training- MindMajix
Published: 2019-10-21 06:37:32

Gone are the days, when you had to go to pricey & exhaustive coaching classes to prepare for <a href "https://mindmajix.com/microsoft-azure-training>Microsoft Azure Training</a> today, with everything going digital, everything you need is right at the comfort of your home.

What if you are into graduation or currently working? It will be difficult to find the right resources for preparation. Right !! Worry Not. We have got you something you are looking for with the best of market price to provide you best of training by experienced professionals.

Mindmajix is the globally professional in IT courses training which emphasizes on hands-on experience with examples from real-time scenarios by experts. It is the largest provider of high-quality online training courses. It is conceptualized and initiated by several multidisciplinary and ingenious software technocrats having a combined experience of more than 10 yrs in the industry.

Contact Details: 
INDIA: +91 905 240 3388; 
USA: +1-201 3780 518 
Email: info@mindmajix.com 
URL: https://mindmajix.com/microsoft-azure-training
This is your path
Tags: pragmatic, programmer, learning
Published: 2019-10-21 06:34:10

---
title: This is your path
published: true
description: A distillation of a small part of The Pragmatic Programmer, 20th Anniversary edition
tags: pragmatic,programmer,learning
series: pragmatic-programmer
---

My company kindly bought a copy of The Pragmatic Programmer, 20th Anniversary Edition, for us all to share. Naturally, I'm hogging it :pig:

The word "Pragmatic" means "fit for it's use". This book is all about taking real-world scenarios to learn how to become the best programmers we possibly can.

The book isn't cheap, but that may be because it's filled with gold. As part of my learning and cementing of topics covered in the book, I'd like to present bit-sized chunks, as I go through them. This is the first.

# It's about you
- Care about your craft
- Think about your work
- Take responsibility

If you've chosen dev as a career (or perhaps just fallen into it), good for you! I hope you're enjoying it. This can be a career which not only rewards you well financially, but intrinsically too. You get to create and build, solve problems, and, if you're lucky, see how the things you create make the lives of others better.

This work is a _craft_: "a skill in doing or making something", which requires that you put in the effort to get better at it. Like other crafts, the more you mindfully apply yourself, the better you'll get at it, and the more rewarding it becomes.

This is your path to take: you need to be prepared to learn new things on your own time. If you're lucky, like me, your company will assign dedicated learning time every week. If your company doesn't do this (yet!) then try bringing it up: it's an investment by the company into the skills of the people working there which pays off not only through improved work output, but also increased happiness amongst the workers as they feel more fulfilled and challenged, and have a safe space to learn and fail (and learn by failing).

To that end: think about what you're doing. Don't just do it "the way it's always been done". Consider alternatives, or, at the very least, come to fully understand _why_ it's "always been done that way". Perhaps there's a good reason -- or perhaps _you_ can come up with something better!

Finally: take ownership of your career. If you make a mistake: own it. We learn through failure -- so try to figure out what went wrong and how to prevent it in the future. Stand tall and admit that, just like everyone around you, you aren't perfect, and you're on a long path of learning which is unlikely to ever end. If someone else makes a mistake, remember: _you do too_. Everyone does. So help your co-workers out: what can we all learn from the mistake? How do we prevent it from happening again?
Microservices vs Batch programs
Tags: microservices, batch, software, design
Published: 2019-10-21 06:20:38

---
title: Microservices vs Batch programs
published: true
description: Differences between a microservice and a batch program usecase in software engineering
tags: microservice, batch, software, design
---

| Microservice                                                                                       | Batch program                                                            |
|----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
|                                                                                                    |                                                                          |
| Typically built to serve one usecase                                                               | Supports multiple tasks called jobs                                      |
| APIs are built into a microservice                                                                 | Batch should never contain APIs since the availability is not guaranteed |
| Hosted by a server framework eg., Netty, Django                                                    | Not hosted but executed periodically by a scheduler eg., cronjob         |
| Have very high availability requirements                                                           | No requirement of availability. Executed when required                   |
| Interoperability with other microservices and batches might be desired                             | Should be interoperable with other microservices and batches             |
| High resource intensive tasks are usually not handled by microservices to enable high availability | Designed for high resource intensive tasks                               |
Addiction: Its been a month on dev.to
Tags: beginners, showdev, motivation
Published: 2019-10-21 05:09:36

It's like I am getting addicted to this platform.
Seeing notification now & then.

I have learned a lot & connecting with like-minded peeps.

Getting overwhelmed by views & reaction to my articles.

![Views & Reactions](https://thepracticaldev.s3.amazonaws.com/i/auda1quknl3whx1ja86z.PNG)


It seems people are liking my work. Although I got some criticisms too, but that's the way I can improve I think.

Moreover, dev.to is also encouraging by GIF

![GIF](https://thepracticaldev.s3.amazonaws.com/i/u6v2a7fs34h8yewzd1up.PNG)

This is great platform for introvert developers like me.
What are you reading right now?
Tags: watercooler, discuss, books
Published: 2019-10-21 03:53:42

I'm currently reading [*Form Design Patterns* by Adam Silver](https://www.smashingmagazine.com/printed-books/form-design-patterns/).
 
What are you reading?

*Title illustration from [unDraw](https://undraw.co/illustrations).*
bundle add to add a gem to your application
Tags: ruby, productivity
Published: 2019-10-21 02:46:57


If you want to add a gem to your application, you don't need to edit the `Gemfile` manually and run `bundle install`.

Just run `bundle add <GEM NAME>`!

```sh
▶ bundle add stimulus_reflex
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
..
```
Your Flutter APP has one or more issues
Tags: ios, flutter
Published: 2020-01-07 19:11:40

---
title: Your Flutter APP has one or more issues
published: true
date: 2019-10-21 02:25:58 UTC
tags: ios,flutter
canonical_url: 
---

It was the first time that I was submitting a Flutter APP to the App Store… I thought that everything was ready… I’ve tested on several emulators, on real iOS devices… and everything went smoothly and without a problem when I uploaded to the App Store… but after their system finished processing my build, I received an email from Apple…

> **_ITMS-90338: Non-public API usage_** _ — The app references non-public symbols in Frameworks/Flutter.framework/Flutter: \_ptrace. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed._

To avoid that issue… you should run

**flutter build ios — release**

Then in **xCode** , go to **Product-\>Scheme-\>Edit Scheme**  … and make sure that **Build Configuration** is in **RELEASE** for ** Archive**

![](https://cdn-images-1.medium.com/max/1024/1*ac_7w5Pza1n2b1fLk0xA9w.png)

And now you are ready to publish!
Curso JavaScript desde cero
Published: 2019-10-21 02:14:19

En este curso aprenderás los fundamentos de este gran lenguaje de programación que se utiliza en toda la web. Javascript es el único lenguaje con el que se puedes programar desde el Frondend y el Backend.

## ¿Por qué aprender JavaScript?

Un﻿﻿ lenguaje para dominarlos a todos, tanto frontend, como backend, como aplicaciones móviles y de escritorio.
Es fácil de empezar a desarrollar. Es el lenguaje más activo en este momento, con una comunidad cada vez más grande.Uno de los lenguajes ﻿más solicitados en el mundo laboral.﻿Nos ofrece esta la posibilidad de desarrollar videojuegos mediante diferentes motores﻿﻿.

## ¿Qué﻿﻿﻿﻿﻿﻿﻿ aprenderás﻿﻿﻿ en el curso?

Aprenderas el lenguaje en su versión más reciente y aprenderás a crear un juego estilo Mario Bros. 

## Temario :

1. Historia
2. Variables y tipos
3. Funciones
4. Arrays
5. Diccionarios
6. Objetos
7. Prototipos
8. High-order functions

#### Aqui puedes entontrar el curso y lo puedes descarga gratis [miralo aquí](https://codepici-blog.site/keepcoding-curso-java-script-desde-cero/) 

Espero y te sirva!! 🤓💻
Tech Lead Squad 💪 - What's on Tap This Week (10/21)
Tags: career, leadership, techlead
Published: 2019-10-21 02:07:42

---
title: Tech Lead Squad 💪 - What's on Tap This Week (10/21)
published: true
description: This week, we're going to explore this question: How do you begin to see yourself as a tech lead?
tags: career, leadership, tech lead
---

Tech leads,

Hope you had a great weekend. For me, I spent the weekend doing beach things here in sunny Los Angeles. 🚲🏄‍♂️🏊‍♂️

Last week on my email list and podcast, we covered some of the ideas from James Clear's _Atomic Habits_ (as applied to the tech lead role, natch), but I'm afraid I might have butchered it a bit.

Let's try for better this week.

This week, I'm going to focus our discussion on this question: ***how do you begin to see yourself as a tech lead?***

***On Monday***, I'm going to rely a bit on one of my favorite leadership books: *[Act Like a Leader Think Like a Leader](https://www.amazon.com/Act-Like-Leader-Think-ebook/dp/B00O4CRR8S)* by Herminia Ibarra. Ibarra's core idea is that you can't *think* your way into leadership.

I think the best analogy is that it's like riding a bike. If you know how to ride one, how on earth can you explain it? You can't. There's all kinds of tiny little experiences, from the feel of bike seat to the discomfort of falling off and scraping your knee. You have to get a *feel* for it.

***On Wednesday***, we're going to dig a little further into what Ibarra calls "outsight." Ibarra has three main areas to focus on: how you see your job, how you develop your network, and how you see yourself. For Wednesday, I think we'll focus on the first two.

**On Friday**, we'll dig into the last topic and pull it all together.

I think it’s going to be a pretty interesting week. Glad I’m on the journey with you!

## Get on the list!

I post public summaries of what the email list here on dev.to from time to time because it's such an awesome community. But to get the full content, get on my email list!

**[Subscribe to Get the Full Letters](https://michaelrice.substack.com)**
Mac os x install Xdebug with multiple PHP versions
Tags: webdev, devops
Published: 2019-10-21 00:47:40

If you have brew installed with multiple PHP versions i.e. 7.1, 7.2 and 7.3 on Mac OS X mojave, you can to do the following:

1. Install autoconf with brew `brew install autoconf`.

2. Change to the PHP version that you want Xdebug on, run `brew unlink php@7.1 && brew link --force --overwrite php`. This will switch from PHP 7.1 to PHP 7.3.

3. Download the latest Xdebug source from [xdebug][1] website.

4. Extract the Xdebug tar and navigate to extracted directory, where you'd see all the files.

5. Run `phpize` to configure the build for the new Zend engine.

6. Run `./configure`.

7. Run `make`.

8. Xdebug extension `xdebug.so` gets compiled in `modules` directory.

9. Create a new directory path under `/usr/local/lib/php/7.3.1/extensions/` and copy `xdebug.so` to this location. Here, `7.3.1` is the current version that I switched earlier, change this to match your PHP version.

10. Open `php.ini` in an editor and enter
`zend_extension="/usr/local/lib/php/7.3.1/extensions/xdebug.so"` then save the change.

11. Run `php -v` and it will show Xdebug has been configured correctly.

If you want to configure Xdebug on another PHP version then just repeat from step 2 all the way to 11. As mentioned in earlier post, this way you don't need to disable/enable System Integrity Protection on Mac OS X.


  [1]: https://xdebug.org/download
Pet Store with Apache Juneau Part 1
Tags: java
Published: 2019-10-21 00:20:10

---
title: Pet Store with Apache Juneau Part 1
published: true
description: Tutorial installing Pet Store with Apache Juneau
tags: java
---

Hi! I'm doing a Pet Store with Juneau. I'm sure that you first question will be: What is Apache Juneau?

Apache Juneau is an open-source, lightweight set of libraries for marshaling POJOs to a wide variety of languages and building self-documenting REST services and REST-backed proxy interfaces.  

In this tutorial, I will show you how to install the Pet Store from their repository. 

First, you have to download the code from their repository. You can find the code here.

[Apache Juneau](https://github.com/apache/juneau-petstore)

I'm using IntelliJ Idea, but you can use Eclipse or NetBeans. You should look to have something similar.

![Juneau Pet Store](https://thepracticaldev.s3.amazonaws.com/i/gb2qodrvw7bu3lj7qg3y.JPG)

After this, you have to run your app with Maven. In the console, you will view Spring Boot running. You will have the app in your browser "localhost:5000"

The result will be this. 

![Result](https://thepracticaldev.s3.amazonaws.com/i/xz8s6qcyho678ptcs443.JPG)

I'm working on doing a Pet Store application, so wish me good luck. I will show you my application when I finished it. 

If you have trouble, let a comment and I will try to help.
Learning JavaScript #Day-02
Tags: javascript, webdev, beginners, productivity
Published: 2019-10-21 00:15:31

Hello folks!

So keeping the excitement intact, spent another few hours of my day in learning JavaScript. I must mention here the fact that this language has seriously got me into its fandom especially after meeting with Arrays.

Being a c++ and a Java guy, the definition of Arrays for me was " kiddo! It's a fixed size container which can hold up certain elements of the same data type".
But, JavaScript got me stunned. No more dealing with data types just declare it and do your thing.

" var Example=['baa','bee', 12, 45] " // That's How you declare your Array in JS, with no higgle-haggle in data types, Pretty amazing.

Well let's not just drool over the Arrays, another thing I first used was the backtick ( ` `) when using the template string.

Template strings are the string literals which can allow you to add embedded expressions. Syntax-> ` //any string// ${your expression} //string`.

I was so dead confused, took it as a single quote and kicked my brains put on the errors. so GOOGLE helped me out. Template strings are pretty amazing to work with.

Now Functions, Functions are pretty the same as former languages so nothing to scratch my that part of my mind, Just made few programs which include functions, conditionals and arrays to make the "JavaScript" blueprint in my mind.

 Also Gone through the 3 important array functions which can be used mainly:-

1. Shift() and Unshift():
   This Array function gives you the functionality to return the first element of 
   the array and insert the element on the start of the index.

2. Pop() and Push():
   You might know them if you are into Data Structures Stack, well Their function is to Pop up or remove the Last element on the array present and insert on the last index of an Array.

3. Splice(); 
   This function is most interesting amongst its two brothers, it adds an element in the middle, and takes 3 parameters.Splice(start, delete count,'your element').

So another interesting day with JS, hoping this dating will go well in the future :)

note- Please give your suggestions on additional information, study materials and different learning approach, please drop in the comment box. Your help will be highly appreciated :)

Thank You.
Adios.
Anas Khan.
As a backend developer, What should you do with users' gmail accounts that contains dots?
Tags: backend, developer, website, discuss
Published: 2019-10-21 00:07:35

---
title: As a backend developer, What should you do with users' gmail accounts that contains dots?
published: true
description: ignore users' gmail accounts
tags: backend, developer, website, discussion
---

Hi, If you have a gmail account, you can create multiple accounts using same email, just put dots between characters, But as a backend developer should you consider this case or not?

In the thread below i just pointed to this case.
{% twitter 1186067203080249344 %}
Git commit file to previous commit
Tags: git, webdev
Published: 2019-10-21 17:12:21

---
title: Git commit file to previous commit
published: true
date: 2019-10-21 00:00:00 UTC
tags: git, webdev
canonical_url: 
---

I ran into an issue of wanting to simply add a small change to a previous commit that I had just done. I am trying to use git in a way that will hopefully enable me to work on larger projects in the future and being able to navigate the logs has been something that pops up more and more. So creating these mini commits for fixes that were typo's or something like that would definitely not create a clean history. A bit of searching and I found the solution:

```
git commit --amend --no-edit

```

This allows me to add the small fix to the previous commit and I don't even have to have another message. Of course I could omit the `--no-edit` and then add another message with `-m [new message]`.
Accepting sponsorship
Tags: rust, sponsorships
Published: 2020-01-06 20:19:28

---
title: Accepting sponsorship
published: true
date: 2019-10-21 00:00:00 UTC
tags: rust, sponsorships
canonical_url: 
---

I have just set up a [sponsorship profile](https://github.com/users/phansch/sponsorship) on GitHub :tada:

The past two years I have been working on Clippy in my free time, sometimesbefore and sometimes after my full-time programming job. To date I have[contributed over 200 pull requests](/onehundred/rust/) to Clippy, Rust and other Rust relatedprojects. If you feel like my work is worth supporting, you now have the optionto do so!

Some of my past contribution highlights include:

- [Fixing of multiple crashes in Clippy](https://github.com/rust-lang/rust-clippy/pulls?utf8=%E2%9C%93&q=is%3Apr+sort%3Aupdated-desc+%27Fix+ICE%27+is%3Aclosed+author%3Aphansch+)
- [Adding rustfix support for the Clippy testsuite](https://github.com/rust-lang/rust-clippy/pull/3519)
- [Rewriting a Clippy python developer script in Rust](https://github.com/rust-lang/rust-clippy/pulls?utf8=%E2%9C%93&q=is%3Apr+sort%3Aupdated-desc+RIIR+is%3Aclosed+author%3Aphansch+)
- [Adding](https://github.com/rust-lang/rust-clippy/pull/3824) the initialversion of the [lint writing documentation](https://github.com/rust-lang/rust-clippy/blob/master/doc/adding_lints.md) for Clippy
- The [missing\_const\_for\_fn](https://rust-lang.github.io/rust-clippy/master/index.html#missing_const_for_fn) lint

At the time of this writing, I’m working on:

- Slowly [replacing Rust’s diagnostics emitter](https://github.com/rust-lang/rust/issues/59346), the code that formats Rust’s awesome errormessages
- [Adding a custom ICE message to Clippy](https://github.com/rust-lang/rust-clippy/pull/4588)

You can always check what I’m currently working on, [in this GitHub project](https://github.com/users/phansch/projects/3).

## What about rewards?

I’ve set the bar for rewards high. I only have limited time every day to work onopen source and want to spend that time on the Rust things I’m passionate about.This makes sure I’m motivated for the tasks I choose to work on.

To keep my work sustainable, I make **one** commitment for now: I willpost **monthly reviews** publicly here on the blog. These reviews will include:

- A special shout-out to new sponsors (unless you don’t want to bementioned)
- Review of what I’ve worked on during the past month
- Goals for the next month
- Reflections on my work, productivity and motivation for the past month
- As I’m freeing up more time to work on open-source based on sponsorships,there will be more things coming in the future, for sure

[![Support my work via GitHub](https://img.shields.io/badge/Support-via%20GitHub-critical?style=for-the-badge&logo=github&label=Support)](https://github.com/users/phansch/sponsorship "Support my work via GitHub <3")

If you have any questions or feedback, I’m happy to talk on Twitter or inprivate at [dev@phansch.net](mailto:dev@phansch.net).
Help beginners with Hacktoberfest
Tags: discuss, codenewbie, hacktoberfest
Published: 2019-10-20 23:59:56

Hey ;D
With less than 2 week to the end of October and I just got 2 PRs in, I am here to ask: Where/How do you find your issues? As a Newbie I haven't had much luck :(

If you have a project or know some project where we can contribute with simple yet helpful issues, share!

My skills are HTML, CSS and Basic Modern JavaScript.
I can also Translate Portuguese(BR)/English and vice-versa.  

Thank you!!!!