teleren/devto huggingface dataset:
Considering scalability in small updates and features
Tags: codequality, productivity
Published: 2019-09-09 08:13:17


It's fairly easy to add updates to your code to solve an issue. It's easy to get a directive from a director or project leader or even a request from a teammate and simply execute it. 

The challenge comes in looking at problems from a standpoint of future proofing. No code is perfectly future proof, of course, but it's worth consideration. 

Recently I was asked to add some tracking functionality to one of our form submissions. In and of itself, it wouldn't take too long, but I started to wonder.

What if we needed to do the same to future forms? Would I always have to dive back into the code in the future? 

The cost of making this sort of functionality so specific just for the sake of speed today could very well cost additional time in the future.

Instead, I'm spending time now looking into making this sort of functionality apply to all of our forms, or at least provide the opportunity for it to do so. It might be taking me longer now, but having this capability will be truly helpful in the long term. 

**Measure the nature of your work and determine if a short term solution is truly worth it.** If you can spend more time on it now to save you more time later, that may be worth your time investment alone.
Building your first React Native app: Stopwatch tutorial in React native
Tags: reactnative
Published: 2019-09-09 08:01:39

This blog will help you install and build your very first mobile app that is a STOPWATCH having just some small understanding of Javascript and ReactJS. You are going to have the most complete beginner understanding of building real-life native apps for both iOS and Android which means LEARN ONCE, WRITE ANYWHERE.

React Native

React Native lets you build mobile apps using only JavaScript. It uses the same design as React, letting you compose a rich mobile UI using declarative components. React Native lets you build your app faster with features like Hot Reloading (no need for recompilation).

React Native uses the same fundamental UI building blocks as regular iOS and Android apps, that means you are not building Web Apps but real-life Native Apps. Instead of using Swift, Kotlin or Java, you are putting those building blocks together with just using JavaScript and React.

Also, React Native combines smoothly with components written in Swift, Java, or Objective-C. It’s also easy to build part of your app in React Native, and part of your app using native code directly – that’s how the Facebook app works.

Installing React Native

0. You first need to download and install the latest Node version into your local machine. If already installed skip this step. You may follow https://nodejs.org/en/download/

For complete details use this ref link:-https://codersera.com/blog/first-react-native-app-stopwatch/
Webhook is just a fancy way of saying 'event-driven server-to-server API calls' 🤦‍♀️ Explained in 1 min.
Tags: webdev, webhook, productivity, http
Published: 2019-09-09 07:28:41

There is nothing new here. I could've ended my post right here because the title pretty much says it all. But I do want to shamelessly plug-in my side-project below so please read on.

We are all very familiar with how **client**-to-server API calls work. Yeah, I'm talking about those `GET`, `POST`, `PUT` http requests.

*By the way, you can play with all kinds of API requests in [getd.io](https://getd.io) that I created. It's a web-based Postman without native apps. Let me know what you think ❤️*

Instead of client-to-server, webhooks are **server**-to-server API calls. Yeah, I'm talking about the same old `GET`, `POST`, `PUT` http requests, like above. But, the key difference is, since these calls are sent from a machine (server), they need to be triggered by events, aka hooks.

A common webhook example is, whenever a new commit is pushed to your Github repo, it triggers Github to make a call to your Jenkins server so it starts building the new code. Here we have a 'push-event driven Github-to-Jenkins API call'.

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

In this case Github will provide a JSON payload to Jenkins with all information about this new commit.

So next time you see some server uses webhooks, it simply means it can be triggered by some events to send some http request (API call) to another server.
Wordpress concepts: Post types, The most basic things
Tags: wordpress, tutorial, beginners, webdev
Published: 2019-09-09 06:47:20

Wordpress came out as blogging platform at the early days. It means that the most basic thing that you can do with the Wordpress is to publish posts. As you may know as a developer, these posts store in the database. They have title, content, some tags, a featured image and all of this stores in the <strong>wp_posts</strong> of the database. (However, the `wp` prefix could be something else)
If you look at this table in the database, some of the notable columns are: 
<ul>
<li><strong>ID: </strong> Which is the primary key of this table and the main thing for you to identify a post.</li>
<li><strong>post_author: </strong>Is the ID of the user that created this post(or assigned to be the author of this post) </li>
<li><strong>post_title</strong> </li>
<li><strong>post_content</strong></li>
<li><strong>post_name: </strong>This field is different with title, it's actually the slug of the title</li>
<li><strong>post_type: </strong>This is the field that define the post type and create a separate menu for each post type in the amdin. </li>
</ul>

The posts are the standard post type in Wordpress. Pages and Attachments for example, are custom post types too. You can read more about Wordpress default custom post types at <a href="https://wordpress.org/support/article/post-types/">this link</a>.

<h4>When and How? </h4>
CPT is an easy to understand concept. The more important thing is how to use it and when? Maybe it's better to tell you some cases that you can use CPT: 
<ul>
<li>You want to create some content with the same functionality as posts, but not posts: This can be portfolio, movie, receipt, testimonial, etc. 
<img src="https://thepracticaldev.s3.amazonaws.com/i/n9hej02b5gthvnpn8efa.png">
</li> 
<li>Your content is not very similar to posts, but it's not that big or individual to create another table for it.</li>
</ul> 
Well, to give you an idea to how to create a CPT, first of all, you must know when you should run your code, this is known as action filters. So as you can see in the examples of the <a href="https://developer.wordpress.org/reference/functions/register_post_type/">WordPress developer documentation</a>, you can run this code in the `init` action.
The full list of parameters are there and if you're developing a theme, you can put the code inside the functions file.
EP23: Security Begins With The Coder
Published: 2020-01-20 13:57:24

---
title: EP23: Security Begins With The Coder
published: true
tags: 
canonical_url: https://anchor.fm/code-cast-zm/episodes/EP23-Security-Begins-With-The-Coder-e58jun
---

On this episode, We have a special guest, Alinani Simuchimba joins us to discuss Security Best Practices and what this means for Coders.

We ask questions on what security mean for coders and why it should start with us. We also discussed the basic steps a coder should take in making sure what they build is secure. 

In the news, Facebook Messenger Challenge is currently ongoing so please register for a chance to win cool cash!.

Leave us a review on[iTunes](https://podcasts.apple.com/us/podcast/codecast-zambia/id1442693166?mt=2) to let us know what you think about the show.

Also, join our growing community on [Slack](https://join.slack.com/t/codecastzm/shared_invite/enQtNzA4NjczOTQ4MTkyLTE4NDVhMTQ4NTYxMGMyZTQzYTYxMDI4ZDJkZWUwYjZmNTI1NmQ2NzJiMzdkMDVlNGRhYzdiZWM5ZjgwNGMwYmE)for in depth conversations regarding community and other topics on the podcast.

**Hosts/Guests**

Mukuma - [Twitter](https://twitter.com/sour_bones)

Cynthia - [Twitter](https://twitter.com/PythonKhaleesi)

Alinani - [LinkedIn](https://www.linkedin.com/in/alinani-simuchimba-mba-gcih-cisa-cism-crisc-cobit-5-09924226/)

**Resources and Links**

--- Send in a voice message: https://anchor.fm/code-cast-zm/message
Job Board Software With Advanced Functions
Published: 2019-09-09 05:35:16

Using our <a href="https://www.logicspice.com/job-portal-script">Job Board Software</a>, Employers will be able to post jobs on the website by adding the details of the job and the skills required. Jobseekers can search for jobs on the website using various categories like location, experience etc. They can see details of the job, save them for later viewing and can apply for the job if they are qualified. Jobseeker can also add a cover letter while applying for a job using a PHP job script.

<b>Features:</b>

Post Unlimited Jobs
Multi Language/Currency
G+/FB/Linkedin login
Advance Search Filter
Responsive & SEO Friendly
Manage Candidate Database

<b>What does our Job Portal PHP Script do for you? </b>

Our job portal script enables you to get started with your own job portal website like Coroflot & Monster. It is a highly scalable, robust and user-friendly job board script.

Employers can view the list of Jobseekers that have applied for a particular job and can interview them or accept their application using this php job portal script. Once the application is accepted by the employer, he can send him an email informing the same. Jobseekers can also create their CV on the website so that their information is presented to the employers in a better way.

This is an advanced coroflot clone to run your Job portal site with advanced features and anyone can operate this application for shortlisting and hiring process in an efficient manner and with great ease for their business or organization. only basic computer skill is enough to use our ready-made recruitment software. Simply this is an extensive and powerful coroflot or monster clone script written in PHP to launch your own job portal without spending a lot. Our <a href="https://www.logicspice.com/job-portal-script">job portal script</a> has all the key features like it allows Job-seeker to search for jobs and also allows to post their resumes and allows employers to post the jobs and view the list of Job-seekers who applied for their job requirements.

<b>Recruitment software for your company only </b>

Logicspice offers recruitment software that enables you to manage your hiring process through an automated online platform. We help you in creating your own career portal like the big companies like AT&T, TCS and infosys do. Our readymade job script helps you to launch this job board software in a quick time.

<b>Used Technologies and Server Requirements </b>

Browsers — IE 9+ , Firefox 32.6+, Chrome 20.0+, Opera 30.0+, Safari 5+
Framework — CakePHP
Language — PHP 7 Supported, AJAX, jQuery
Design — HTML 5, CSS 3, JavaScript
Database — MySQL 5.5+
Server — Apache 2.4+
Tree Notation - a basic building block for a new generation of programming languages
Tags: computerscience
Published: 2019-09-09 05:24:32

Aloha dev.to!

My name is Breck and I've been programming for about 15 years now. It took me many, many years to understand how computers work from the highest level to the lowest. Now the question I ask is--does it have to be this complicated? I think the answer is no!

Below is a link to something new, that I think might make programming a whole simpler, more fun, and more powerful.

[Tree Notation](https://treenotation.org/) is a new basic building block for a novel family of programming languages called "Tree Languages".

Our website and code is still in the early stages, so any and all feedback--positive and negative--would be very helpful to us!

We are also an open source research group--Tree Notation is all public domain--and if you are a senior programmer OR brand new to the field, and want to get involved, check out the webpage for our [lab](https://lab.treenotation.org/).

Thanks and hope you like it!

-Breck

P.S. This dev.to site design rocks!
Just Joined
Tags: android, it, windows
Published: 2019-09-09 05:03:58

I am interested in learning more about IT and Microsoft Windows... I would like to work for an IT organization someday... assuming my family obligations and lifestyle allow for an 8 -5 type job.

Thanks all

Hope to hear back from some of you.

I'm also the proud developer of the Android Application called:  EZ Notes

on Google Play Store, under the developer name of:  Alexander Madani
My app logo is a Blue Birdie
We are all standing up. Does it actually work?
Tags: discuss
Published: 2019-09-09 05:02:44

The daily Stand Up has spread quickly to become a cornerstone of our programming lives. Yet, here is a simple question I don't have an answer for: 

>   Does it actually work well? 

When it fails, is it because we don't follow the Scrum processes correctly? Or did you made it better by tinkering with it? Do we exchange there the right information? Are people actually listening? Or preparing their own intervention and sometimes stressed, trying to remember what they did yesterday? Doesn't it feel often awkward? Are there alternatives worth trying out? Is it standup or stand-up or stand up? Should jokes be allowed? 

Let's discuss it after the stand up.
Code Duplication Refactoring on Conditional Conditions
Tags: refactorit, webdev, javascript, beginners
Published: 2019-09-09 03:36:20

Sometimes you come accross duplicated code blocks that the only difference is having an additional condition to check if another condition is true. An Example of the Idea is given below.
## From
```js
if ( condition1 && condition2 ) {
//doSomething1

    if ( conditionA || conditionB ) {
        //doSomething2
    }

} else if ( condition1 ) {
//doSomething1

    if ( conditionA ) {
        //doSomething2
    }

}
```
In the above example, the only difference is if `condition2 == true` then check for `conditionB`
To refactor it, we leave all execution rights to `condition2` and `conditionB`
> Assume:  
> `condition1 = true`  
> `conditionA = false`

with that, we get:
```js
if ( true && condition2 ) {
//doSomething1

    if ( false || conditionB ) {
        //doSomething2
    }

} else if ( true ) {
//doSomething1

    if ( false ) {
        //doSomething2
    }

}
```

> In the above example in the first `if` block, you will only execute `doSomething2`, if and only if `condition2` AND `conditionB` are `true`.
> So we can refactor it to the code below.

## To

```js
if ( condition1 ) {
//doSomething1

    if ( conditionA || (condition2 && conditionB) ) {
        //doSomething2
    }

}
```

Codepen Example: https://codepen.io/jhynzar/pen/QRJpob?editors=0012
A brief introduction to Redis
Tags: redis, linux
Published: 2019-09-09 03:34:08

---
title: A brief introduction to Redis
published: true
description: We look at Redis, what it is, what we can use it for and how to run different commands against a Redis instance.
tags: redis, Linux,
cover_image: https://thepracticaldev.s3.amazonaws.com/i/5zmguh41240uuburhd4n.jpg
---

{% youtube WZ9M2Zsx1mQ %}

We look at Redis, what it is, what we can use it for and how to run different commands against a Redis instance.
Is time tracking really necessary for a task management software?
Tags: discuss, productivity
Published: 2019-09-09 03:13:11

I am browsing to find a task management software for my agency to use. There are some serious task management software which offer a full ray of features, and normally, those software comes with quite a long price tag. 

According from my extended research on [Capterra](https://capterra.com) and some other sources: [here](https://www.softwaretestinghelp.com/best-task-management-software-systems/) and [here](https://www.techradar.com/news/best-data-visualization-tools), somehow time tracking feature isn't a dealbreaker anymore.

I've stumbled on some very well-known apps, like [Trello](https://trello.com), [Asana](https://asana.com), [Workflowy](https://workflowy.com) and [Wrike](https://wrike.com) and they don't have time-tracking feature in their basic plans. 

Some of other raising stars in [productivity apps](https://quire.io/compare/best-productivity-apps) like [Plan](https://getplan.co/) or [Quire](https://quire.io) don't offer time tracking feature yet. 

So what's your thought?
Stop using the mongoose's default connection
Tags: node, mongodb, mongoosejs
Published: 2019-09-09 02:29:55

Look at the below typical example of mongoose use.
```javascript
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/myapp', {useNewUrlParser: true});
var MyModel = mongoose.model('Test', new Schema({ name: String }));
// Works
MyModel.findOne(function(error, result) { /* ... */ });
```
What if we want to make another connections? Or if we want to connect to another database? We can't use `mongoose.connect()` again, mongoose won't know which one we want to interact with. And don't ever think of creating different modules where separated mongoose objects are created and used because `require()` doesn't work that way, mongoose object is cached for the first time it is imported.

The connection object is used to create and retrieve models. Models are always scoped to a single connection. Please be aware that mongoose creates a default connection when we call `mongoose.connect()`. We can access the default connection using `mongoose.connection`.

Not everybody notices that. So my suggestion is that we avoid using `mongoose.connect()`. Instead of that, we use `mongoose.createConnection()`. By this way, we can save much time for other developers who will maintain and extend the project in the future. We implicitly ask them to aware the fact of mongoose's default connection.

The above example may be re-written as the following.
```javascript
const mongoose = require('mongoose');
var connection = mongoose.createConnection('mongodb://localhost:27017/myapp',
                                           {useNewUrlParser: true});
var MyModel = connection.model('Test', new Schema({ name: String }));
// Works
MyModel.findOne(function(error, result) { /* ... */ });
```

Reference API: https://mongoosejs.com/docs/connections.html
** This post is copy from my personal blog https://rainforest01.blogspot.com/2019/08/stop-using-mongooses-default-connection.html
Songs to Work : Code & Song
Tags: offtopic, tips, music, working
Published: 2019-09-08 12:46:24

---
title: Songs to Work : Code & Song
published: true
description: playlist I set up for the moments I'm coding
tags: #offtopic #tips #music #working

---

 "Without music, life would be a mistake"
     **``Friedrich Nietzsch``**
## I decided to put together a playlist for the moments I'm programming. With this, I gathered songs that I like and that provide me well-being.

---

**``Follow playlist on Spotify :``** [Code & Song](https://open.spotify.com/playlist/4Rb8eIDGCyF3MXbVj2MjoL?si=ueDq7XxdTfenH2Y_FrGZ7A)
 
**GlueTrip**
A band Brazilian of Psychedelic Rock, your style is very calm and it has a sound that doesn't bother you.Having a mix of instruments , despite being a Brazilian band, its members sing in English. My recommendations  are **``Elbow Pain``** and **``La Edad del Futuro``** .

**Feng Suave**
This band is so ``AMAZING!``A Pop music very very relaxing  and seduction , that pleases the ears a lot. I strongly recommend **``Sink into the Floor``** and **``Noche Escura``**.

**Billie Eilish**
Singer who has been very successful recently, Billie have a music very different, mixture of pop, alternative and  electropop.To code, I recommend **``i love you``** and **``ilomilo``**.

**Still Corners**
A dream pop band , that makes you feel on a long and wonderful car trip. **``The Trip``** and **``Black Lagoon``** are my recommendations for a great code.

**Joji**
Maybe the singer with the biggest mix of musical genres I have ever liked. Joji joins lofi, R&B, folk and electronic. My favorites are **``SLOW DANCING IN THE DARK``** and **``Midsummer Madness``** .

**Dio**
Ok, it's rock and roll now! Needless to say, Dio is great, with great vocal range and unusual songs. **``Holy Diver``** and **``Rainbow in the Dark``** are my tips.

**Russian Doomer Music**
Although the term Doomer is somewhat worrying, this kind of music is very interesting and relaxing. I recommend all songs from **``Molchat Doma``** .

**Chicha Libre**
A Brooklyn band that has Latin influences, especially from Peru. Most of his songs are instrumental,because the group's intention is to take famous songs and put them in a Latin rhythm. My favorites are **``Gnossienne No.1``** and **``Sonido Amazonico``** .

# Final Tip :musical_note:
create a playlist of songs you like to listen to while you work and post in the comments :zap: :zap: :zap: .

---
React useState example by building a text-size changer
Tags: react, javascript, webdev, tutorial
Published: 2019-09-11 04:39:54

---
title: React useState example by building a text-size changer
published: true
description: In this example, we learn to use React useState hooks to change font size of a content block
tags: ['react', 'javascript', 'webdev', 'tutorial']
canonical_url: https://learnwithparam.com/videos/react-usestate-with-example/
series: Small steps on React
---

{% youtube ylbVzIBhDIM %}

In real world, font-size changers are used in Ebook reader / PDF reader applications.
HTML to JSX Compiler
Tags: beginners, html, react, jsx
Published: 2019-09-09 09:24:00

---
title: HTML to JSX Compiler
published: true
tags: beginners, html, react, jsx
cover_image: https://thepracticaldev.s3.amazonaws.com/i/07r2x1q6q68dtl3ru5f1.png
canonical_url: https://wangonya.com/blog/html-to-jsx-compiler/
---

I just came across [this](https://magic.reactjs.net/htmltojsx.htm) online HTML to JSX Compiler. If you're new (or not) to react and you're still having a little trouble with JSX, I think this tool is great for learning. Just paste in your HTML in the HTML editor on the left, and it'll be converted into valid JSX on the right.
What do you call people who don't code?
Tags: discuss
Published: 2019-09-08 23:52:53

---
title: What do you call people who don't code?
published: true
description: Help to find a suitable name.
tags: discussion
---

There are two groups of people who can create programs and those who don't. I'm about writing article about this groups and I need to name them somehow. There is no problem with the first group. It's easy. But what's about another? It's too wordy to call them "noncoding people". Also I'm not a big fan of terms with negative prefixes like "non-coders".

I'm stuck and my English vocabulary isn't so good to find such definition. Also it's hard to determine whether there are negative connotations or not to name them on my own. Any suggestions?
Seeking Frontend Dev Mentor
Published: 2019-09-08 23:36:52

---
title: Seeking Frontend Dev Mentor
published: true
description: 
tags:html, css, code, ui, learn, mentor, ux, frontend:
---

Hello all, I'm reaching out to anything that might know of any possible mentors. I saw there was a beta program but the link is not working. I have pretty general knowledge of HTML, CSS, a bit of JavaScript but of course I want to improve these skills in hopes of getting an Frontend Dev internship! 

If you or anyone you know wouldn't mind offering digital one-on-one advice, tips, etc then let me know! I'm ready to learn! :)