teleren/devto huggingface dataset:
Switching to Kotlin. Short overview.
Tags: kotlin, java
Published: 2020-08-19 09:21:56

---
title: Switching to Kotlin. Short overview.
published: true
description: how we moved our services to Kotlin
tags: kotlin, java
//cover_image: https://direct_url_to_image.jpg
---

Here I am not going to talk about any Kotlin-specific features or my favorite ones, but instead, it will be a high-level overview of the switching process, the first results, and how it influences my team.

About a year ago we decided to move our project(about 50 microservices that were written in Java (preferably), Scala, Groovy, NodeJs) to Kotlin.


1. Maintainability
What at first seemed like just "syntactic sugar" has improved the readability, expressiveness, and, as a result, maintainability of the code.
It is clear that this is not only about the language, but it is great when a language promotes such aspects.

2. Immutability
The language strongly motivates to write immutable code and offers a wide range of functionality for this.
As a result: we have moved away from storing the state in services and now we have several instances of each service. Consequently, we can scale horizontally under an increasing load and we could not use it before.

3. Interoperability
Kotlin has great interoperability with Java. You can call Kotlin written functions from Java and vice versa.
In fact, you do not have to rewrite the whole service in one shot, which creates a gups in delivering value. It is painful for the business and often just impossible.
We carried out our transition gradually, step by step.
Rewriting component by component, without breaking or destroying anything, and at every moment of time, our code remained functional, delivered new features to clients, and continued to make money.

4. Satisfaction
The pleasure, the ease of working with the codebase has increased, and I believe this is important. When the team is happy, everyone wins.
Now it is clear that the initial investment of time and effort was justified.

-1. Weakness
An obvious drawback was and remains the speed of compilation, type inference, and hints in the IDE.
It's really annoying, and especially when switching from Java, where everything is good with these things.

But we have good news [here](https://blog.jetbrains.com/kotlin/2020/08/kotlin-1-4-released-with-a-focus-on-quality-and-performance/)!
It seems that the guys from JetBrains perfectly understand what they are doing! ;)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/6ftjjddsy5pza56u3fg5.png)
What The Heck Is Front-End & Back End Developement?
Published: 2020-08-19 09:15:58

Web development is divided into many phases based on skills and languages, but today this article gives you a brief introduction to 2 main phases Front-end & Back-end web development.

Front End Web development or design is all about what we see on a website. While Back-End Web development is for handling server-side functionality.  They play a crucial role in the development of a high end functioning web application. Front-end and Back-end are the two sides of the same coin.

<h3><b>Role of a Front-end developer<b></h3>

<p>Front-end is all about the visual aspects of the website that a user can see and experience. The Role of a Front-end developer is to make things ready to use and make it user-friendly on client-side for easy access by everyone on every device with a beautiful User Interface.</p>

<h3><b>Role of a Back-end developer</b></h3>
<p>Everything that happens in the background or server-side can be attributed to the back-end web development. The Back-end Web developer can handle all the requests coming from the user side or client-side and respond back to the result according to the given request.<p>
<br>
<p>Now, it cleared the difference between a front end and back end of web development. Its time to explore what are the essential things required or how to become a front-end or back-end web developer?</p>

<h3><b>Essentials of Front-end Web Development</b></h3>
<p>
In order to learn front-end Web development you need to learn Following Languages HTML, CSS, Javascript, here are <a href="https://designlibb.com/blog/the-most-useful-resources-to-learn-web-development/">the best website to getting started learning web development</a>. Front-end is all about developing & designing headers, menus, footers, sidebars, body sections and lot more, this also include animations, scrolling effects, click happens, responsiveness, building beautiful UI designers and lot more things that help engage user to spend more time on our website.
</p>

<h3><b>Essentials of Back-end Web Development</b></h3>
<p>
The back-end, also called the server-side, consists of the server which provides data on request, the application which channels it, and the database which organizes the information. The core concern of back-end developers is creating applications that can find and deliver data to the front end.

There are a wide variety of frameworks and languages used to code the application. Some of them are Ruby on Rails, Java, C++/C/C#, Python, PHP, Laravel, Django, Codeigniter, and many others.
</p>
<br>

<p>Read the Full Post at <br>
<a href="https://designlibb.com/blog/what-the-heck-is-front-end-back-end-developement/" target="_blank">
What The Heck Is Front-End & Back End Developement?
</a>
</p>
React and Time-Blocking
Tags: devjournal, womenintech, productivity, codenewbie
Published: 2020-08-19 08:56:53

_This post was originally published on August 19, 2020 on [my blog] (https://alexlsalt.github.io/blog)._

Good morning! Middle of the week feelings over here - meaning I'm feeling good and things are swimming along nicely.

I've been spending this week experimenting with a new way of working - time-blocking!

I recognize this pattern in myself where I start off working well and not trying to do all the things all the time (which isn't sustainable) to then sneakily trying to actually do all the things... all the time lol.

It's such a sneaky little phenomenon, too. Because all of a sudden I'll feel super stressed and then I'll look at my to-do list and I'll see that I'm piling two or three extra things that can wait. Not great!

(Also lol at me acting as if it's not just me doing this to myself)

But back to time-blocking! I have my morning block from 9am to noon that's usually been reserved for Ladies Code Collective/business-building stuff (slow and steady and one thing everyday instead of all the things, all the time).

And then after lunch, I have my afternoon block which is around 2 to 5pm, where I'll focus on studying and coding (currently working my way through a great book on React and building the test projects within said book).

I'm such a proponent of testing out different systems of working and doubling down on what works well.

And something that works well for me may not work well for others, so that's what's great about trial and error, testing out what works for us, and then keeping track of that.

----------


P.S. Did you know I have a podcast with new episodes each Wednesday? Go listen [right over here >>] (https://www.ladiescodecollective.com/podcast)

P.P.S. I'm hosting a webinar on Friday, August 21 at 12pm (noon) EST: 5 Steps to Starting and Following All the Way Through on Your Side Projects! 

[Sign up here >>] (https://ladies-code-collective.ck.page/120a48ebc7)
How To Submit Form In Select Option?
Tags: php, codeigniter, html
Published: 2020-08-19 08:48:07

In this tutorial, We will learn How to submit form on change of dropdown list? You can use other elements e.g. checkbox, radio, select, etc. using Client-side script. we learn submit form on select change.

When we select a value, as soon as we select it is submitted, we will learn it in this tutorial. today learn how to submit dropdowns in two ways, which are both very easy, we will see below.

https://www.phpcodingstuff.com/blog/how-to-submit-form-in-select-option.html
JavaScript RegEx Exercises 01
Tags: javascript, regex
Published: 2020-08-19 08:41:45

---
title: JavaScript RegEx Exercises 01
published: true
description: In this tutorial you'll get the chance to have a go at some JavaScript RegEx Exercises to improve both your JavaScript and RegEx knowledge!
tags: javascript, regex
---

Get the exercises here: https://gist.github.com/codebubb/bb19d7ae24cd41695cb3c5ec3b1155d5

01:06 Exercise 1 (Final Answer 05:22)
05:49 Exercise 2 (Final Answer 06:42)
07:00 Exercise 3 (Final Answer 08:33)
09:13 Exercise 4 (Final Answer 10:57)
11:15 Exercise 5 (Final Answer 12:42)

— Follow Me —
Twitter: https://www.twitter.com/codebubb
Facebook: https://www.facebook.com/juniordevelopercentral/
Blog: https://www.juniordevelopercentral.com/
— Thanks! —

In these JavaScript RegEx tutorials you'll get the chance to learn a bit about RegEx in JavaScript and how you might use it to process or extract data in strings.

There are a number of instances when you might want to match a pattern in a string within your JavaScript code and these 5 exercises will show you some examples of when you might want to do this and also how you would go about doing with a JavaScript Regular Expression.

Although Regular Expressions aren't exclusive to JavaScript there are some specific JavaScript functions like the JavaScript match and JavaScript replace functions which allow you to use a Regular Expression to match a pattern within the string the function is used with.

The examples in the exercises are a bit contrived but they've been designed so you get a bit of exposure to some of the basic operations that can be done with RegEx patterns.

If you enjoy this tutorial, check out some of the other Junior Developer Central JavaScript practice exercises in the series: https://www.youtube.com/watch?v=N65RvNkZFGE&list=PLpc_YvcwbxaSn6jn0VaTcG8A0Grgs1GSB
Wednesday Links - Edition 2020-08-19
Tags: java, kotlin, microservices, bash
Published: 2020-08-19 08:34:24

Functional transformation of immutable objects in Java ( 12 min read ) 💧
https://github.com/openjdk/amber-docs/blob/master/eg-drafts/reconstruction-records-and-classes.md

On the Performance of User-Mode Threads and Coroutines ( 8 min read ) 🧵
https://inside.java/2020/08/07/loom-performance

Kotlin 1.4 Released with a Focus on Quality and Performance 🎉
https://blog.jetbrains.com/kotlin/2020/08/kotlin-1-4-released-with-a-focus-on-quality-and-performance

Support for Kotlin SAM in release 1.4 ( 12 min read ) 🔼
https://jorgecastillo.dev/kotlin-sam-conversions

Implementing Rate Limiting with Resilience4j ( 11 min read ) 🚪
https://reflectoring.io/rate-limiting-with-resilience4j

Leader and Followers ( 9 min read ) 🤺
https://martinfowler.com/articles/patterns-of-distributed-systems/leader-follower.html

Introduction Into Spring Data Elasticsearch ( 18 min read )🔍
https://spinscale.de/posts/2020-08-06-introduction-into-spring-data-elasticsearch.html

Bash Redirection Fun With Descriptors ( 6 min read ) 🚬
https://medium.com/@copyconstruct/bash-redirection-fun-with-descriptors-e799ec5a3c16
Meiosis in action
Tags: meiosis, javascript, mithril
Published: 2020-08-19 08:23:00

Another post on Meiosis pattern. If you want some details, feel free to comment.

```js
/* @jsx m */

import m from "mithril";
import stream from "mithril-stream";
import merge from "mergerino";
import Actions from "../src/actions";
import View from "../src/view";

const InitialState = {
  counter: 0,
  angle: 0
};

const update = stream();
const states = stream.scan(merge, InitialState, update);
const actions = Actions(update);

const app = document.getElementById("app");

states.map(() => m.render(app, <h1>{View(states, actions)}</h1>));

/* Test */
setInterval(actions.testit, 0);
```
Fork it and spread it :-) <a href="https://codesandbox.io/s/codebarre-z5gm5?fontsize=14&hidenavigation=1&theme=dark">
  <img alt="Edit codebarre" src="https://codesandbox.io/static/img/play-codesandbox.svg">
</a>


{% codesandbox z5gm5 %}
The Best AR Apps To Experience Augmented Reality
Tags: augmentedreality, ar, arapps, queppelin
Published: 2020-08-19 08:22:43

There are several possibilities with augmented reality programs. For example, you can search for rental-free apartments in the immediate area for rental or determine exact locations of restaurants in the vicinity or retrieve background stories for a picture shown in a gallery. Learn More from our Blog: https://www.queppelin.com/The-Best-AR-Apps-To-Experience-Augmented-Reality
Java Streams filter, distinct and map
Tags: java, java8
Published: 2020-08-19 08:07:16

 Simple example to illustrate using Java stream with filter,distinct and map.

```Java
 public static void main(String[] args) {
        Person lokesh = new Person(1, "Lokesh", "Gupta");
        Person brian = new Person(2, "Brian", "Clooney");
        Person alex = new Person(3, "Alex", "Kolen");
        Person ram = new Person(1, "Ram", "Mani");
        Person rahim = new Person(2, "Rahim", "sab");
        Person jhon = new Person(3, "Jhon", "son");

        List<String> personList = Arrays.asList("Lokesh", "Alex", "Peter");


        Collection<Person> list = Arrays.asList(lokesh, brian, alex, lokesh, brian, lokesh, ram, rahim, jhon);
        // Filter out fnames and then get distinct lastNames
        List<String> listWithLastName = list.stream()
                .filter(person -> !personList.contains(person.getFname()))
                .distinct()
                .map(person -> person.getLname())
                .collect(Collectors.toList());

        // Out put - [Clooney, Mani, sab, son]
        System.out.println(listWithLastName);
    }
```
After running above program you will see output like below
[Clooney, Mani, sab, son]

--
create pojo person class with the fields mentioned above

*The example above is referred from https://howtodoinjava.com/java8/java-stream-distinct-examples/ and modified to explain filter,distinct and collect.*
bootstrap tab-content not Displaying on iPhone
Published: 2020-08-19 07:56:51

I am trying to populate data in to bootstrap tab-content with ajax.I have used the following code which works properly on every device except iPhone. with iPhone its only showing the last tab. But not showing data in the first two tab-contents.

Is it the problem with CSS or in if conditions?

Or is it problem with nav-tabs?

jsfiddle.net/g5u6eb4y/3
4 Salesforce implementation mistakes to avoid: -
Tags: salesforce, salesforceimplementation
Published: 2020-08-19 07:56:49

Salesforce software has been around since 1999 and has proven to be one of the best [CRM software](https://www.cloudanalogy.com/) out there. The software helps you easily build meaningful and lasting relationships with your clients. For you to reap the benefits of the program, you must implement it correctly. Studies show that most people make mistakes when implementing the program, preventing them from getting the results they should. The most common mistakes are:

**Thinking that you can implement it yourself: -**

It is a fact that [Salesforce](https://www.cloudanalogy.com/) is an easy CRM to implement, but even if you have a lot of experience with it, it is almost impossible to implement it with the right speed, precision, and consideration. To get the best results, you need the support of other members of the company. Most importantly, you must work closely with top management. Interview the CFO, COO, and CEO and find out how the system will benefit you.

**System customization failed: -**

Salesforce comes with many great features that make it ideal for use in different businesses, but you can agree with me that no two businesses are the same. This means that you cannot use the same software version and expect consistent results across all companies. For best results, customize the system to meet business needs.

**Implement all of this at once: -**

As mentioned, the software comes with a lot of cool features and therefore has a wide range of capabilities. If you are experienced in using it, you may find the system easy and feel like people will quickly understand it. Most people make the mistake of implementing the program all at once.

The truth is that this will result in a collapse of the organization and, as a result, you will not achieve your goals. Sure, you should implement the software in stages. Schedule training sessions with employees and move them slowly from one stage of the program to the next. As with building a house, pay particular attention to the (basic) foundation of the program. Before moving on to the advanced levels, make sure everyone has a complete understanding of the program.

**Choosing the wrong implementing partner: -**

You can choose from hundreds of Salesforce partners to help you implement the program. In order for you to successfully implement the program, you must work with the right partner. The partner you are working with must have a lot of experience. Before choosing a partner, take the time to research it. Browse the portfolio and partner reviews. Remember to also make an appointment with your partner to learn more about her.

For more information about the Salesforce implementation do visit cloud analogy a [salesforce development company.](https://www.cloudanalogy.com/)
Vite - Vue, React & Preact setup
Tags: vue, react, javascript, vite
Published: 2020-08-19 07:46:43

*    Hey developers, I created this video to give some introduction about vite - a no bundle setup for vuejs, react and preact.

> Basically bundling process will happen at both development and production environment for vuejs, react, preact, angular and many frameworks! 

* But vite makes no bundle setup at development environment for vue, react and preact.

* Watch the video for more information!

* Thank you!
FoodLab - A Food App Using Flutter & Firebase
Tags: dart, flutter, flutterapp, fluttermobileapp
Published: 2020-08-19 07:46:24

Are you a foodie? Or like to cook? 🥘 Or just like me who always wants to see the delicious pictures of food on various apps and then starts craving for all of them!🤤

> *And if you're a food lover than start craving because 
       FoodLab comes here!*


_FoodLab is a [Flutter](https://flutter.dev/)💕 App made for Food Blogs with real-time [Firebase](https://firebase.google.com/)🔥 Database and Provider package._



### About app & how it works?
* FoodLab let you post and view food images along with written recipes if you want.
* Login or SignUp using any account(We keep your credentials safe) and you'll walk to the feed page.
* Feed page will show you all the blogs posted by various food lovers 🍔 and you can also check the detail view if you want to know more about any recipe.
* Don't worry about the updates! Real-time database always shows you the latest post.
* **The best and delicious thing** - Post your amazing mouthwatering food pictures and if you can than make sure you right detail recipe steps because I and others are always ready to crave 😍!


####Mockups
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/saihfx2e30r4sc26vbid.png) ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/8lvqmhwz0f5h668okxku.png) ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/8c3k4pu1g7pykuycw45w.png) ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/vmivhxdddc6nbbp2jyw0.png) ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/de2acrvrdvpj4xqq1yrl.png) ![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/u2crmj136npepipqprte.png)

####Final Project Link
```
Check the GitHub link for working demo of the app and more details! 
```
🔗 GitHub Repo link - https://github.com/Singh-Shivani/Food_Lab
If you liked it then please star the Repository. ❤️

_**Think. Click. Pick**_ 
_Happy Fooding!_ 🥘
Magento 1 vs Magento 2-The biggest differences to look for in 2020
Published: 2020-08-19 07:46:16

Magento recently announced it would no longer be supporting its first version of Magento 1 as of June 2020. After this news, ecommerce store owners got stunned and started thinking about upgrading to Magento 2.	
Currently there are a total of 420,000 + eCommerce stores operating on Magento 1 after the release of Magento 2, The reasons why he did not migrate to Magento 2 might be procrastination and uncertainty.

If you're someone still considering Migration from Magento 1 to Magento 2. Don't worry, here is a Magento 1 vs Magento 2 comparison.

Migrating from Magento 1 to Magento 2

Magento 1 to Magento 2 migration will give you the latest versions of PHP that come with enhanced security features that directly affect your eCommerce store's speed. There's an option for Advance browser caching for static content.
Reportedly, the Magento will cease its support of Magento 1 by June 2020. So, it is high time to consider migrating to Magento 2. 
Migrating from Magento 1 to Magento 2 will provide you with the much-needed support, sleek dashboard, fast-loading, better user interface and overall upgraded platform to improve your eCommerce store.
Some people are hesitating to upgrade to Magento 2, even after so many benefits. Let us see what are the reasons why migration is avoided.
Wrapping Up

No matter whether or not you wish to migrate. Migrating from Magento 1 to Magento 2 is essential to help make your eCommerce store technologically advanced and faster. You can also opt for Magento 2 Migration Services to make the migration process easier while initiating the migration process.
We hope this article helps you make your decision to upgrade to Magento 2 as your eCommerce store platform. If you have any suggestions or feedback, please let us know in the comments.

Want to More Information:- https://rocktechnolabs.com/magento2-migration-services/