teleren/devto huggingface dataset:
My first experience using python.
Tags: python, django
Published: 2020-02-19 11:24:46

I started using Python Programming Language, this was after me and my team landed on a project that necessitated python and majority of my teamates decided that its the language we were to use, ofcourse i had to adopt.

I had no time to learn the language basics then use it in the project.
I was assigned a module that required routine deliverables. For the first three weeks i struggled putting the logic together.

I decided to use rudementary python methods that were dirty code to experienced pythonistas, we developed the first web application with the help of django framework which made the work alot easier.

But consquently after a year now, i jave gained some skills coding in django and now i have resorted to going back to dirty code that i wrote first and updating it with new clean python logic.

Am not so good in python but after a year of coding with it, i have experienced a drift in my coding skills, and i have promised myself to do more python and become a pythonista one day.

Thanks python community
SpotBugs v4.0.0 is out!
Tags: spotbugs, java
Published: 2020-02-19 11:04:58

---
title: SpotBugs v4.0.0 is out!
published: true
description: Introduce SpotBugs version 4.0.0
tags: spotbugs, java
---

This week we've released [SpotBugs v4.0.0](https://github.com/spotbugs/spotbugs/blob/4.0.0/CHANGELOG.md#400---2020-02-15).

![SpotBugs Logo](https://spotbugs.github.io/images/logos/spotbugs_logo_600px.png)

We've spent about a year to deliver this stable version, however, this version has less breaking changes. We removed only unused features based on [this investigation](https://github.com/spotbugs/discuss/issues/65). I wish you can enjoy the new version with fewer migration costs.

Note that default detectors in this version still has some problems around Java 9+, check [related issues](https://github.com/spotbugs/spotbugs/issues?q=is%3Aopen+is%3Aissue+label%3AJava-9) if you run SpotBugs for projects using Java 11, 14 or later. To avoid this problem, you can [limit activated detectors by command line option](https://spotbugs.readthedocs.io/en/latest/running.html#detector-visitor-configuration-options).

We also provide [the official migration guide](https://spotbugs.readthedocs.io/en/stable/migration.html#guide-for-migration-from-spotbugs-3-1-to-4-0). If you're SpotBugs plugin author, please check it to ease your migration.


BTW if you're using IntelliJ IDEA, watch [this issue](https://github.com/spotbugs/spotbugs/issues/515) and contribute to help [the SpotBugs-IDEA project](https://github.com/GoSecure/findbugs-idea). I'm not member of it, but it seems pretty cool.
And if you're using Gradle, watch [this issue](https://github.com/spotbugs/spotbugs-gradle-plugin/issues/180) and help us to verify [the experimental implementation](https://github.com/KengoTODA/spotbugs-gradle-plugin-v2/). Current implementation has many problems, and it's quite hard to solve incrementally, so I started this project from scratch. It seems working and keep most of API, but we still need your contribution especially from [Android project developers](https://github.com/KengoTODA/spotbugs-gradle-plugin-v2/issues/1).
Bagaimana caranya menyeimbangkan dunia dan akhirat bagi seorang developer?
Tags: dev, heaven
Published: 2020-02-19 11:01:24

---
title: Bagaimana caranya menyeimbangkan dunia dan akhirat bagi seorang developer?
published: true
description: Beberapa perenunganku tentang cara seorang developer meraih kebahagiaan di akhirat
tags: dev, heaven
series: Life
---

Seorang developer adalah seorang yang selalu berkutat dengan sistem; membangun sistem, memperbaiki sistem, menganalisa sistem. Intinya adalah memberi kebaikan bagi semesta.

{% post https://dev.to/mzaini30/mengapa-manusia-kerja-1dhj %}

Ya, itu adalah sesuatu yang mulia. Apalagi zaman sekarang tu eranya open source sehingga antardeveloper bisa saling membangun sistem hingga menjadi lebih baik.

Tapi memang ada beberapa ibadah yang sebaiknya memang kita rutinkan karena nggak bisa digantikan dengan amal membangun sistem tadi:

1. **Shalat tepat waktu**. Shalat tepat waktu adalah bukti komitmen kita kepada Allah. Maka, memang sebaiknya apapun kesibukan kita, selalu usahakan shalat tepat waktu.

    Kenapa sih mesti shalat? Kenapa sih harus tepat waktu? Mengapa? Mengapa begini mengapa begitu?

    Dengan shalat tepat waktu di masjid, kita akan selalu ingat dengan Allah. Ketika kita ingat dengan Allah, maka kita akan selalu ingat bahwa setiap amal kita selalu terpaut dengan aturan-Nya. Kalau orang Jawa mengatakan:

    > Sing penting iku eling (Yang penting itu ingat)

    Jika kita selalu ingat dengan Allah, maka kita nggak akan sampai melampaui batas. Apalagi di negara manapun kita tinggal, selalu ada yang namanya ideologi. Aku nggak akan menyalahkan ideologinya (juga nggak membenarkan). Yang menjadi masalah adalah _siapa_ yang memiliki kuasa atas ideologi negara tersebut. Jika yang berkuasa atas ideologi tersebut adalah orang yang taat pada Tuhan, maka dia pasti tau tuh kalau ada rambu-rambu dalam menetapkan aturan. Kalau nggak ingat sama Tuhan?

    Nggak cuma mengacu pada pemimpinnya. Tapi juga mengacu pada kehidupan sosial sehari-hari. Orang yang selalu ingat sama Tuhan, pasti tau tuh ada hak orang lain atasnya dan ada juga hak dia atas orang lain. Tentu jangan sampai di merusak hak orang lain atasnya.

    Kalau rutin shalat 5 kali sehari tepat waktu, masak sih nggak ingat sama Tuhan?

2. **Mengaji**. Mengaji selain ibadah, juga menambah wawasan keagamaan kita, terutama kalau kita seorang yang paham bahasa Arab. Nah, alangkah lebih baiknya jika kita ngaji minimal sejuz sehari:

    {% post https://dev.to/mzaini30/cara-supaya-bisa-khatam-quran-dalam-sebulan-54cb %}

    ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/8cunmnrtl6griyqxez63.png)
Laziest way to publish for both NPM and <script src="">
Tags: javascript, typescript, node, webdev
Published: 2020-02-19 10:42:51

But it is [slightly harder for TypeScript's `tsc`](https://github.com/microsoft/TypeScript/issues/13422).

Actually, the real problem here is loading other JavaScript files in Node via `require` is always **sync**, but requesting other files (including JavaScript files) in web browser is always **async**.

So, here comes a laziest way `<script type="module">`, i.e. `import` syntax.

You can see a demo here -- <https://patarapolw.github.io/any-serialize/>.

This package comes for being solved of this topic.

{% post patarapolw/what-is-a-best-simplest-way-to-serialize-deserialize-javascript-objects-3h6b %}

## For web browsers

For web browsers, module resolution is by default relative, unless you put the full `https://` url, so you cannot get `node_modules` folder.

A solution? Use [`unpkg?module`](https://unpkg.com/). I have heard about [snowpack](https://www.snowpack.dev/) and [pika.dev](https://www.pika.dev/) too. Might be another solution to use NPM / node_modules packages.

I recently ran into a problem with `unpkg?module`, though -- `Rate limit exceeded`...

## For Node with standard JavaScript

You will need either [esm](https://github.com/standard-things/esm) or Node 12+ to be able to run `import` by default. (Well, yeah. I use Node 10 + TypeScript, so I always have to `-r esm`.)

Also, you had better add `"type": "module"` to `package.json`.

## For Node with TypeScript

To run in Node, if your Node doesn't support `import`, you will have to  `-r esm`, including `ts-node` and `ts-mocha`.

To compile with `tsc` to JavaScript for web browsers, you have to add `.js` to all imports and exports. This is [a known issue](https://github.com/microsoft/TypeScript/issues/13422) in TypeScript.

```ts
glob('dist/**/*.js', (err, matches) => {
  matches.map((m) => {
    const s = fs.readFileSync(m, 'utf8').replace(
      /(?<start>^|\n)(?<pre>(?:im|ex)port .+)(?<bracket>['"])(?<name>.+?)(?<ext>\.[tj]?s)?(?:\k<bracket>)/g,
      '$<start>$<pre>$<bracket>$<name>.js$<bracket>'
    )
    fs.writeFileSync(..., s)
  })
})
```

## For Deno

Deno already use `import` by default, but my concern is using NPM packages. There has been a talk on this too. -- https://github.com/denoland/deno/issues/1397

## Bonus

I also have got one or two more bonuses.

- Code transparency + Minimal obfuscation (because you cannot hide client-side JavaScript source code, anyway.)
- No more global scope polluting. `<script type="module">` never litter global scope, unless directly you attach to `window` object
🎉 Introducing Vim Key Bindings in Daily
Tags: webdev, product, vim, opensource
Published: 2020-02-19 10:33:11

---
title: 🎉 Introducing Vim Key Bindings in Daily
published: true
description: Learn about Vim key bindings in Daily
tags: #webdev #product #vim #opensource
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/e82e8mzya3snaq9d4klk.jpg
---

Last year in November, we received this suggestion to introduce [Vim like navigation](https://github.com/dailynowco/daily/issues/122) in Daily. Considering the suggestions of the community members, we decided to give it a shot. After a few months of ideating and working, we are stocked to announce that they are now live in the Daily. 🎉

## ⌨️ Vim Key Bindings

We have introduced a subset of Vim key bindings in Daily. Below is the list of keybindings and their purpose in Vim.
 
* `h,j,k,l` — Navigate between posts (`h` - left. `j` - down, `k` - up, `l` - right). In insane (list) mode `h,l` do nothing.
* `b` - Bookmark selected post.
* `/` - Open and focus the search bar
 
When a post is focused it has the same effect as hover. 

GIF or didn't happen!

[![Vim Key Bindings in Action](https://dev-to-uploads.s3.amazonaws.com/i/9sxnmhmfssnp4n17hv95.gif)](https://r.dailynow.co/web)

Look carefully at how the focus is being shifted from one post to another and how I bookmark the third post in the first row using the keybindings and finally perform a search without using the mouse.

⚡️ Vim key bindings are available from v2.13.0 onwards. If Daily is not automatically updated, use [this guide](https://r.dailynow.co/update) to update manually. 

## 👨‍💻 Changing the Focus to Use Key Bindings

The main purpose of the key bindings is to allow the users to use Daily without using leaving their keyboard. Here's how the flow will ideally look like after these key bindings:

1. Use `ctrl+t` to open a new tab.
2. Use `tab` to shift the focus to Daily.
3. Use the key bindings to start interacting with the Daily.

## 🎖 Contributors

Daily is a completely [open-source project](https://r.dailynow.co/github). If you want, you can go ahead and start contributing. 

As mentioned earlier, this idea was also suggested by a member of the Daily community via GitHub issues. Later on, a couple of more members advocated for this feature and a contributor volunteered to build this. 🙌

We would like to thank everyone who contributed to the idea and especially [Lee Hansel Solevilla](https://twitter.com/sshanzel) for actually building this feature. ♥

## ⚡️ Wrap Up!

Daily is all about its developer community. If you have any idea/suggestion, feel free to create an issue. We would love to have you on board and help you build the feature. It's a great way to start contributing to the open-source. 

👉 For those who don't know about [Daily](http://r.dailynow.co/web). It's a browser extension that curates the best technical content for you from the web and serves in the new tab. We are helping over 40,000 devs save time every single day and become more productive.

Don't forget to follow us on [Twitter](https://r.dailynow.co/twitter) for all the updates!
Hi, I'm Sushma Gangolu
Tags: introductions
Published: 2020-02-19 10:17:54

I've been coding professionally for 5 years.

I live in Hyderabad.

I'm currently working as a Full Stack Developer.

I mostly program in PHP, React along with HTML and Responsive design. 

I also work on GCP and Digital Ocean. 

I am currently learning more about cloud computing, Native React, and more.

I plan to write about Server Installations and bug fixes. 

Hit me up on [LinkedIn](https://www.linkedin.com/in/sushma-gangolu-8417b0165/). 

Nice to meet you. :)
Can an AI system be considered an inventor?
Tags: machinelearning, news, discuss
Published: 2020-02-19 09:56:55

Interesting article by Bloomberg Technology all over LinkedIn this morning - https://www.bloomberg.com/news/articles/2020-02-18/edison-morse-watson-ai-poses-question-of-who-s-an-inventor 

The difficulty seems to be that as Fortune 100 companies increasingly have AI doing more and more autonomously, they’re not sure if they can find (a human) someone who would qualify as an inventor which is resulting in patent applications being turned down due to legislation which stipulates the inventor must be a natural person.

Is this going to slow down the advancement of AI and Machine Learning technology as companies don't want to risk losing the protecting of patents? Would love to hear your thoughts!
mobile coverage maps for O2, EE & Vodafone
Tags: data, visualisation, maps, mobile
Published: 2020-02-19 09:54:35

mobile coverage maps for O2, EE & Vodafone

![mobile coverage map](https://ik.imagekit.io/0h2y0y2rw/Screenshot_20190220-191209_xrn1vZSl7.png)
![mobile coverage map](https://ik.imagekit.io/0h2y0y2rw/Screenshot_20190220-191202_Vfi4SjFPx.png)
![mobile coverage map](https://ik.imagekit.io/0h2y0y2rw/Screenshot_20190220-191143_RCnAK23qe.png)
*AAS its just getting ridiculous now
Tags: discuss, watercooler, mktg, marketing
Published: 2020-02-19 09:42:02

just saw this DAAS ad on the tube 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/80iehw7u6167kw7twtxl.JPG)

do mktg depts just make these anacronyms up on the fly to sell more stuff ?

these are only *AAS i accept / recognise

* SAAS
* PAAS
* IAAS
* IDEAAS

maybe we need to get ISO on top of this ?
When is the last time you used `var`?
Tags: discuss, javascript
Published: 2020-02-19 09:31:27

---
title: When is the last time you used `var`?
published: true
description: I'm not ovar var
tags: discuss,javascript
---

I used `var` last week, and it made me nostalgic.

I feel kinda bad for `var`. Sometimes I get the feeling we live in a `strict`ly `let` and `const` world these days.

Tell me about the last time you declared a variable with `var`. What music were you listening to? What was the codebase like? Was it the 90s????
Kisah awal aku mengenal Dev
Tags: devstory, origin
Published: 2020-02-19 09:28:29

---
title: Kisah awal aku mengenal Dev
published: true
description: Ini adalah cuplikan kisah bagaimana aku akhirnya bertemu dengan platform blog (komunitas) keren ini
tags: devstory, origin
series: Life
---

Berawal dari Hacktoberfest 2019 yang itu adalah 2 bulan setelah pernikahanku (Yap, aku menikah akhir Agustus 2019).

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/34qt9krfzomj7o84akha.jpg)

Itu stikernya aku dapatkan di awal Februari. Perjalanan yang panjang ya, dikirim dari November 2019.

Kenudian, saat aku mulai menggunakan Dev akhir-akhir ini, aku mendapatkan badge ini di halaman profilku:

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/nmmjykkrwr82fep48b1k.png)

Jadi memang awalnya dari Hacktoberfest itulah aku mengenal Dev ini. Dan ternyata, memang keren sih. Aku suka dengan komunitasnya yang aktif. Walaupun memang ilmuku di dunia IT ini belum seberapa. Dan di sini, aku mulai berkembang.

Dan, aku suka Markdown.

> Thanks for @peter and team for building this amazing platform
Making the Imba Docs Suck Less
Tags: imba, documentation
Published: 2020-02-19 08:48:07

It's a known problem in the software development world that documentation tends to get stale. In some projects lots of things are very poorly documented. This is also true for the Imba project. There is a lot of amazing hidden features that are not obvious and invisible to you unless someone tells you about it. Few people actually sit down, read the internal implementation and learn how to use it. 

## The Current State

As of this writing, we have an outdated [imba.io](http://imba.io) website. The examples there apply to the stable v1.5.x branch. Since development is mostly happening on the unreleased 2.0.x, imba.io is not going to see any changes soon. 

The navigation link to the [docs](https://www.imba.io/docs) is actually more of an API reference. Finding stuff is hard since there is no search. You have to resort to  using a search engine. To avoid dwelling on the negative bits, let's look at some of the positive things. 

Since [imba.io](http://imba.io) is written in Imba we do have support for syntax highlighting and running snippets. Also some cool things are down with Markdown in there and the project itself is actually pretty neat with the way code is compiled and run on the client-side. Nonetheless, this was all a hassle to maintain and at times made it unnecessarily hard for new contributors to get the site running locally. 

## How to Make it Suck Less

The way we are going to tackle this issue in the Imba project is in a couple of ways.

### i) Content is King 👑

First, we have decided to focus on the content and not how it's being rendered on screen. This means that instead of spending lots of time in building a own tool for writing documentation we will be using GitBook.

[GitBook](https://www.gitbook.com/) is a web app for editing and synchronizing your docs. It works with existing GitHub repositories. We have connected it to a subdomain [docs.imba.io](https://docs.imba.io/). This again lets us focus on the user. We can spend time on the actual content you will be reading instead of the invisible bits.

### ii) Outline the Documentation

Before we start writing lots of pages. We will have sketched out groupings and main titles. This means that we will be spending much more time on thinking about better ways to present Imba to the reader.

### ii) Looking at the Competition

We will definitely be looking closer at projects like [Vue.js](https://vuejs.org/), [Svelte](https://svelte.dev/), [Preact.js](https://preactjs.com/) and many more for ideas on how to better present concepts / syntax.

---

Thank you for reading! I'm Alexander, Web Developer at [Scrimba][0] - The mind blowing way to learn how to code.

[0]: https://scrimba.com
Starting a project... 
Tags: spring, rails, question
Published: 2020-02-19 08:47:51

I am working on a prototype to workout an idea my girlfriend is having. I am proficient with Spring (and Java or Kotlin), but she only works with Python. Now I want to make it possible for her to work on it too with some help from me.

How do you cope with those projects? I am looking at using Rails, but I suspect the prototype to become a real product (or at least one we are heavily going to work on). What is your suggestion on approach?

I am not really concerned about performance, I just want to keep the code clean so do a rewrite is not that hard in the future. So a clean monolithic setup is the way to go for me. Do you know where I can find information regarding raw performance of both frameworks? 

Rails is nice because I can setup a lot of code via the CLI and get a lot of boilerplate code out of the box. Spring is useful as there is a lot of documentation and it quite an industry standard. 

In both frameworks I am going to incorporate some frontend framework (React or Vue, that is also a choice to make.. What would you choose?). 

What would you choose when starting a new project when you Spring knowledge and not that much Rails knowledge but like the Rails approach.
Create Simple & Good Looking Buttons
Tags: html, css, button, icons
Published: 2020-02-19 08:46:02

<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">

# Use Google's Material Icons and CSS to Create Good Looking Buttons

![Buttons being activated](https://i.ibb.co/0cJ9D4m/button-activate.gif)


Would you rather not read this article and go straight to the JSFiddle? [Click here](https://jsfiddle.net/howbotnik/287065rw/1/)

## Let's get started
### Creating the button
We're going to start by creating a standard button in our html document.

Unfortunately, that means that it will come with it's own *style* and appear with sharp edges, grey colour and harsh borders.  We want our button to be a bit more eye-catching than that so the first step is...

### Remove the default style in CSS:
`border: none;`<br>
`outline: none;`<br>

### Adding our own style:
I like my buttons to have a transparent background so that the text or icon contained within them stands out.  Buttons also look cool with rounded off edges and a hover effect to highlight your interactions:


`height: 35px;`<br>
`width: 35px;`<br>
`border-radius: 15px;`<br>
`background-color: transparent;`<br>
`color: white;`

Also, adding a hover effect class:

`.circle-button:hover {`<br>
&nbsp;&nbsp;&nbsp;&nbsp;`background-color: yellow;`<br>
&nbsp;&nbsp;&nbsp;&nbsp;`color: orange;`<br>
`}`

So, we now have a fully styled button that looks the business. Wouldn't it be great if there was a collection of icons that we could use to insert an appropriate image into our button instead of some boring text?

There is...

## Adding Google's Material Icons

Google have kindly made their icons available to everybody through the use of their html header link.  Here are just some of the icons available:<br><br>
![Icons](https://i.ibb.co/KDJKGjg/icons.jpg)

All you have to do is include it in your HTML document header like this:

```html
<head>
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
```
### Applying it to our button

All we have to do is include the icon inside our button in the HTML document like this:

```html
<button class="circle-button centre-text">
        <i class="material-icons" style="font-size:25px;">cloud</i>
</button> 
```

Which results in buttons like this:


![Icon buttons](https://i.ibb.co/fC1NCBv/click.jpg)

The text we place inside the *icon tag* tells the Google API which icon we want.  To explore Google's available icons [click here](https://material.io/resources/icons/?style=baseline/). 

Everything discussed in this article is available in the JSFiddle example code available here:

https://jsfiddle.net/howbotnik/287065rw/1/
Python basic to advance tutorial
Tags: python, pythonbasic
Published: 2020-02-19 08:01:59

In this post, you will learn python 3 basics series tutorials.

#What is python?

Python Programming is a powerful multi-purpose programming language. This is created by Guido van Rossum.  Python is a high-level programming language. which is used for web development (server-side), software development, mathematics, system scripting, etc.

#python 3 beginners basics tutorial

<!-- wp:group -->
<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:group -->
<div class="wp-block-group"><div class="wp-block-group__inner-container"><!-- wp:list -->
<ul><li><a href="https://www.tutsmake.com/python-programming-language-introduction/">Python Introduction</a></li><li><a href="https://www.tutsmake.com/install-python-on-windows-linux-mac/">Getting Started</a></li><li><a href="https://www.tutsmake.com/python-keywords-and-identifiers-example/">Keywords &amp; Identifiers</a></li><li><a href="https://www.tutsmake.com/python-statements-indentation-and-comments-example/">Statements &amp; Comments</a></li><li><a href="https://www.tutsmake.com/python-variable-and-type-example/">Python Variables</a></li><li><a href="https://www.tutsmake.com/python-data-types-with-example/">Python Datatypes</a></li><li><a href="https://www.tutsmake.com/typecasting-in-python-python-type-conversion/">Python Type Conversion</a></li><li><a href="https://www.tutsmake.com/python-i-o-input-output-and-import-example/">Python I/O and Import</a></li><li><a href="https://www.tutsmake.com/python-operators-logical-arithmetic-comparison-with-e-g/">Python Operators</a></li><li><a href="https://www.tutsmake.com/python-namespace-variable-scope-example/">Python Namespace</a></li></ul>
<!-- /wp:list --></div></div>