fabiochiu/medium-articles huggingface dataset:
Fear and How to Combat It
By: Miracle Pedro
Tags: Social Media, Social Media Marketing, Pedro, Miracle, Fear

That’s the thing that a lot of people struggle with including me. The fear to go after what you want…the fear of being vulnerable…the fear of opening up and sharing how you…the fear of trying something. For me personally, I had always struggled with the fear of how people saw me. I was bullied often when I was kid and was told often by my peers of how useless, ugly, and worthless I was. Well I’m not and I never was I know that now. And if I could have told that eight year old kid that I probably would been a lot better off. However the fear of how people perceived me constantly pursued me. Even now while writing this entry I am being given every reason in the world not to write this. For instance:

“What would people think of you writing this post at 4am”

“What would they don’t like it”

“What if they think you are desperate for followers”

“What if a person from past life come on here and goes against you are saying”

BLAH. BLAH. BLAH. Yet these are some of the same fears that paralyze us and keep from pursuing anything. They keep us in our comfort zone. They keep us in an job we don’ t like…a career that was never ours…a marriage that is lifeless…a friendship that is dead…a life that is miserable. Fear kills ambition and slows down drive. But how do we conquer it. First we have find out what we are afraid of. I deal with being afraid of people. I am constantly caring about what people say or think about me. And I have found the best way to combat that fear is by doing something out in the open for everyone to see…whether it’s dancing in public, going to social events, being in front of audience, or making a post publicly on your Instagram page. In other words, I have to put myself out there. What I am doing write now is also helping combat this fear. And even if people don’t like it, it’s better to face my fears now then live the rest of my life wondering “what if I tried to…”. Another way to deal with fear is making a goal or challenge that is stronger than it. For example, I want to go into the marketing industry. That goal or dream is stronger than fear because I think about it all the time. I see myself doing it and imagine myself working in that industry, meeting people there, and becoming success. As that image becomes stronger in my head, the fear of people dwindles away. Don’t get me wrong, it’s still there. But it has lost its effect on me because I’m not looking at it anymore. I’m looking at my dream. There are different fears out there but I pray as you take my advice you will begin to find ways to overcome them effectively. Be Blessed.
Manish Mehta : Digital Marketing Entrepreneur
By: Manish Mehta
Tags: Manish Mehta, Digital Marketing Experts, Digital Marketing, Digital Marketing Agency, Social Media Marketing

I’m the man who started my career as a blogger has given myself tremendous exposure in the field of social media and public relations. With a great expertise in web, I have more than 500 clients in India as well as in the overseas.

What I Do:

1. Social Media Management:

We create and manage branded profiles and social media campaigns on carefully selected social media platforms that make the most sense for your business and your target audience.

2. Content Marketing:

Content marketing helps you increase visibility, traffic and brand awareness. We offer effective and valuable SEO-copywriting that resonates with your target audience.

3. Paid Ad Campaigns:

Our copywriters and designers can create paid ad campaigns that are sure to boost your brand awareness and influence on all major social platforms.

4. Social Media Marketing:

We help you with social media management, advertising and strategic content creation to help you grow your audience and reach new prospects.

5. Website & App Development:

We will create a functional website and app that is customized for your business and drives results.

6. Digital Marketing Strategy:

Get your own digital marketing strategy built from scratch. Contact us to schedule a consultation to get started.

Click Here to Visit Manish Mehta on Web.

Founder of Menwithquote:

In this day and age, there’s no shortage of information out there that promises your self-improvement. There is so much content available that finding something genuinely useful is really, really hard. So I created a web-page for the people who want to read as an article.

Menwithquote is a blog that shares practical tips and ideas on life, Motivation, Health, Grooming, Dating, Entrepreneurship, success, General self-improvement and much more. His Motive behind menwithquote is to “Ignite a fire in you by giving you exactly what you need to change your life in a positive direction. We do that by giving you information, motivation and accountability in bite-sized pieces you can swallow whole and implement immediately.“

“We all have a vision of just how incredible our lives could be if only we knew how to make our dreams a reality,”
How I Used Podcasting To Sell $140k+ Worth Of My Product
By: Rafael Eliassen
Tags: Small Business, Marketing, Social Media Marketing, Entrepreneurship, Online Marketing

I don’t like podcasts. For me, they are a drag. To sum up — it’s when a couple of people take an hour to say what can be said in 10-mins. Only lazy people who like to think they are being productive listen to them.

That’s how I talked a year ago. But now I have a different opinion about this audio platform. I started my podcast in March 2020. As of December, I have converted $140,000 worth of clients from it. This conversion rate is second best to my Youtube Channel. Even that took 2-years to show this kind of return.

If you aren’t good at visual marketing then podcast maybe the right fit for you.

The podcast industry is worth about $9.28 Billion and I now know I was wrong. People love to listen to their favourite personalities. Especially, when doing mechanical work like exercise, chores, or driving. With 144 Million listeners in America alone, it’s a rich pool of potential audience. But, it’s not as simple as pressing the record button and talking. You have to be strategic if you want people to listen and buy from you.

That’s the part I will cover in this story. Basic things like how to make a cover image or the recording process, I expect you to figure out on your own. A simple google search can solve that. This story is about what you can’t find on Google — my strategy.
How To Cultivate The Grit It Takes To Build A Business While Sharing Your Own Story Online.
By: Angélique Binet, Founder Of Social Media Love
Tags: Female Entrepreneurs, Storytelling For Business, Social Media Marketing, Women Leader, Nurse Practitionners

Once upon a time, in an isolated Indigenous community called Sioux Lookout, this real story happened…

Cultivating the grit it requires to build a business while marketing programs, products, or services through consistent storytelling is one of the most challenging activities you can experience in your business. And the thing is that we ALL face it until we crack the code of digital marketing with a clear process.

So why is it that so many women resist sharing their stories online?

Today on the show, I’m interviewing Lynne on her journey to entrepreneurship and her advice for other women entrepreneurs looking for motivation and inspiration to keep building their dream no matter what or where they are.

Grit is one of the ingredients of female-owned businesses, and women like Lynne can infuse in us all the things about exploring your own story as part of nurturing your online presence in order to attract new leads, repeat clients, and generate more revenue to enlarge your impact on your community and on your own family.

Today on the Real Story Behind Her Business Show:

- What was your most burning desire before starting your business and why?

- What was your biggest struggle at the time to make it happen? And how did it feel? What did you want to be able to accomplish?

- What was the big HOW TO revealed to you in the epiphany?

- What’s something you thought was true that was proven wrong?

- What BIG hurdle did you get over to create a solution?

- What was the first big payoff of all this work?

Resources Mentioned:

At Social Media Love, we have a 10-week group coaching program on how to lay the foundation of an impactful and lucrative social media presence that you don’t want to miss. For more information on this program and to receive weekly tutorials in your inbox, make sure to sign up for my email newsletter by downloading my free resources here: 5 Types of Content for Social Media CHECKLIST

Lynne’s website | Facebook | Instagram | LinkedIn | TikTok |

Love the show? Let us know!

Are you a fan of Social Media Love? If the tips and interviews we share in each episode have helped you gain the confidence and inspiration to become a better, more powerful leader and entrepreneur, head on over to Facebook Reviews, or Google My Business Reviews, or LinkedIn Reviews, or Apple Podcasts, subscribe, and leave your honest review to let us know!

What are you waiting for?

The Real Story Behind Her Business | Episode 5 | Lynne Thériault Sehgal
Legend behind Systemd vs Initd
By: Linux Bubble
Tags: Linux, Digital Marketing, SEO, Social Media, Social Media Marketing

Systemd vs Initd, the Legend behind it is started when SystemD was introduced in March 2010 while InitD is from the beginning i.e. September 1991.

I have been working in the field of Linux for past 5 years along with the variety of distributions nearly all Linux flavors like Debian, Fedora, Arch Linux etc… Working as a System Admin gives you lot of exposer to the daily requirements and needs for the system to be healthy and running and the most important need is to keep yourself update to the latest details and technology stack and their implementations.

Today we are going to discuss one of the major topic related to the core of any Linux distributions i.e. InitD vs SystemD which one is better and why it should be chosen? It has been a time now when few Linux distributions are adopting SystemD where most of the distributions like Fedora have already implemented it. This has a potential to create a huge gap between Legacy and Latest System Admin & Programmers in UNIX/LINUX Environment.

Let’s address the major questions that I will try to answer in the best way possible :

What is initD? What is SystemD? Is SystemD better than InitD? What future holds for SystemD?

Read Full Article Here
Smart Advertising Agency
By: Ali Geelle
Tags: Video Marketing, Social Media Marketing, Graphic Design, Photography

Smart Advertising Agency Is an agency employed by advertisers to plan, design, place, and supervise their advertisements or advertising campaigns. Our services include Graphic Design, Social Media Marketing, Video Production, and Photo Shooting.
Video Storytelling for Asian Audiences
By: Kishan S.
Tags: Video Marketing, Asia, Vídeo Storytelling, Social Media Marketing, Content Marketing

We’ve heard these a lot. What can you do that your rivals can’t? Are you the best option in the market? What exactly is your USP? These questions tend to motivate brands to traditionally center their ad messaging around USPs which are usually brand-focused. Is this approach truly effective in making ads relatable to their target audience or is it time for brands to explore emerging approaches which have consumers at their forefront?

While there are numerous ways to ideate and create video content, based on my personal research, I believe the inclusion of these 2 concepts in your video content will put in good stead to achieve your marketing goals in 2020 and beyond.

First, Universal Human Truths also known as UHTs are human ideals, qualities or situations that are motivational or easily recognizable. These could include emotions or common experiences that your target audiences are likely to have gone through.

Second, localization is equally important. Communicating the selected UHT in a local context like using festivals or experiences unique to that country will help strengthen the message and emotional connection with the brand.

Identifying and adapting UHTs in an apt manner are crucial steps in creating emotional connections between brands and their target audiences.
How to Use Twitter for Customer Service
By: Syed M. Hamza Tahir
Tags: Customer Service, Social Media, Social Media Marketing, Business, Life Lessons

Customer Service problems can be daunting for any company. But the last thing you want to do is pretend that they don’t exist or will never exist. The best thing to do is meet them head on, resolve issues, make the customer as happy as possible, and move on. The last thing you want to even consider is ignoring an unhappy customer or client.



Customer Service and Twitter.com were made for each other. The immediacy of Twitter, coupled with the accessibility of the customer-service “fixer” creates a terrific tool for staying in close and concerned contact with customers. And they feel the love. Below are a few tips how to make Use Twitter for Customer Service:



-Let your customers know about your presence on Twitter, at least to resolve issues. Post your Twitter “handle” throughout your own website. Send an a informative email to your customers letting them know that you will be available on Twitter if they need help, blog about it in company blogs. Make the Twitter handle that will be used for customer service visible and easily found throughout your online presence.



-Be proactive. Go looking for problems or mentions. This is not the time to be shy or keep your head in the sand! Search out your company name frequently. Create a search for your company name, brand name, product names in Tweetdeck, Hootsuite or Seesmec and save these searches. That way you will always be aware when anyone in the Twittersphere is talking about you (positively or negatively) or has problems. Tweetbeep and Monniter are two applications that will alert you when your company is mentioned.



-Take the right tone. Gather information on the problem, never point fingers, don’t be defensive. Be authentic in your attempts to solve the customer’s problem. Be sure the end result is positive — at least in feel — for the customer.



-If it can’t be resolved in 140 characters of Tweet text, or if the problem is sensitive, or if the customer is very upset, then give directions for a next step — an 800 toll-free phone number, a specific email address (spelled out) so that a final solution can be achieved in a more private setting.



-Be very timely. Twitter happens at the speed of light. Negative info travels even faster. Check Tweets frequently for any hint of problems, and jump right on them.



Twitter aside, one of the best things you can do to build and reinforce your brand is to take customer service very seriously. A problem will only get worse, and a customer will only get increasingly unhappy if the issue is not acknowledged. Companies will get far more “points” for being proactive in their efforts to resolve even horrendous problems to the best of their ability. The resolution may not be perfect in the customer’s or the public’s eye, but a true and strong effort to resolve will go far towards saving the loyalty of that person. Hopefully, they will spread the word and Tweet about the positive outcome, not the bad experience.
Android Perform Two Animations Using ObjectAnimator — kotlin
By: Akhil Gattemaneni
Tags: Android, Apps, Mobile App Development, Kotlin, Android App Development

private fun animationSet(v: View) {



val animSetXY = AnimatorSet()



val x: ObjectAnimator = ObjectAnimator.ofFloat(

v,

"alpha", 1.0f, 0.0f

)

val y: ObjectAnimator = ObjectAnimator.ofFloat(

v,

"translationX",0f, 150f

)

animSetXY.playTogether(x,y)

animSetXY.duration = 2000

animSetXY.setupStartValues()

animSetXY.start()



}

Here,

X is a animation and Y is an animation…..
Difference between kotlin vs java
By: Pure Coders
Tags: Purecoders, Java, Kotlin Vs Java, Programming, Kotlin

Kotlin is a general-purpose, statically typed, open-source, free programming language that specifically targets Jvm, android, javascript, and native, and it is officially released in 2016.

Kotlin supports object-oriented programming language features like another language such as c++, java, etc;

Kotlin was initially designed for the Java Virtual Machine(JVM) and Android. It was developed by JetBrains.which is a software development company whose tools are designed for software developers such as IntelliJ IDEA. Pycharm etc;

Kotlin language is sponsored by Google and about 3 years ago, In the year 2017 GOOGLE announced kotlin as an official language used for Android development.

What is the java programming language?

Java is an object-oriented, secured, class-based, strongly typed, concurrent, robust, and general-purpose programming language. It is a widely used language in the world. It is a powerful language and it is used to develop a mobile application, desktop application, embedded systems, Games, Web Applications, and servers. It is also used in database connectivity.

Java is a high-level programming language developed by sun microsystem and released in the year 1995.

The biggest advantage of java is that it runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.

Java is owned by oracle and currently, 3.5 million + devices using the java language this make java one of the most popular languages.

Difference between kotlin vs java programming languages?

Key Points Java programming Kotlin Programming

Syntax

Java Code fun main(args : Array<String>) { println(“Hello, World!”)}

Kotlin Codepublic class MyFirstJavaProgram {

public static void main(String []args) { System.out.println(“Hello World”); }}

Conversion

Java has support for implicit conversions.

No support for implicit widening conversions.

FAQ

Is kotlin Replacing Java?

Follow us on instagram : Click here

More articles : Click here
findViewById ➥ ViewBinding (ViewBinding nedir?)
By: Gökmen Bayram
Tags: Viewbinding, Android, Mobile App Development, Kotlin

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
Kotlin MVVM ToDo List
By: Kim Pro
Tags: To Do List, Andriod, Coroutine, Kotlin, Mvvm

The source code is on Github. Here is the link.

Thanks for reading and watching!
AndroidX ←→Bluetooth, Light Up a LED Part 1: Bonding
By: Homan Huang
Tags: Android, Coroutine, Bluetooth Low Energy, Kotlin, Mvvm

🐋2. VS Code — C programming

← ← ← Menu

To program on Arduino, I prefer VS Code+PlatformIO:

You need to install:

Arduino IDE (install this first)

VS Code + PlatformIO (It’ll look for Arduino file.)

Create a new project:

Edit src/main.cpp:

#include <Arduino.h>

#include <SoftwareSerial.h> // Uno ports to HC05

#define stPin 7

#define rxPin 2 // => HC05: rx

#define txPin 3 // => HC05: tx

// GND pin

// 5V pin

#define enPin 8 //EN pin // Bluetooth

SoftwareSerial BTserial(rxPin, txPin); char reading = ' ';

boolean BTconnected = false; void setup() {

// Open Bluetooth

pinMode(enPin, OUTPUT);

digitalWrite(enPin, HIGH);



delay(1000);



// Wait for Bluetooth

while (!BTconnected)

{

if (digitalRead(enPin) == HIGH) { BTconnected = true; };

}



// Uno COM at 9600

Serial.begin(9600);

Serial.println("Arduino to Host is ready");



// Bluetooth setup at 38400

BTserial.begin(38400);

Serial.println("BTserial started at 38400");

} void loop() {

// Bluetooth to monitor

if (BTserial.available())

{

reading = BTserial.read();

Serial.write( reading );

}



// Uno to Bluetooth

if (Serial.available())

{

reading = Serial.read();

BTserial.write( reading );

}

}

😁: BTSerial represents HC05. Serial represents Uno. Hc05 is special. You only can edit the chip at Baud Rate 38400 and communicate with 9600.

platformio.ini: monitor setting.

[env:uno]

platform = atmelavr

board = uno

framework = arduino monitor_speed = 9600

monitor_flags =

--echo

Now, you need to connect the UNO to your PC, build, upload, and read the log on the monitor.



--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time

--- More details at

--- Miniterm on COM5 9600,8,N,1 ---

--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---

Arduino to Host is ready

BTserial started at 38400

at

OK > Executing task: C:\Users\Homan\.platformio\penv\Scripts\platformio.exe device monitor http://bit.ly/pio-monitor-filters --- Miniterm on COM5 9600,8,N,1 ------ Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---Arduino to Host is readyBTserial started at 38400atOK

Great! After working for hours, I’ll congratulate you if you can see the first readable words on the screen like me. 😂

You can modify the name of the device:

at+name=HomanBle01

OK

Which is my device name.

at+pswd=4343

OK

I change the password from 1234 to 4343.

at+addr

+ADDR:98d3:32:70b1c9

OK

I record the address for later purposes.
Achieving Composition with Kotlin interfaces — a practical example
Tags: Interfaces, Android, Composition, Kotlin, Inheritance

Behaviours

I come up with this name — mainly because I didn’t found a better one — while I was thinking about on how could I reuse functionalities:

“I need to replicate in class Y this behaviour from class X”

Moving on to the example, let’s add two functions to be used when we want to perform a “safe” network call by creating a NetworkBehaviour:

Next, implement it in our ViewModel:

Simple right? But nothing much fancy is happening here 😅 so let’s make it more interesting by adding a NetworkUiBehaviour:

Let’s also update our NetworkBehaviour:

And finally the ViewModel:

Delegation

In some situations we can go one step further and use Delegation. Let’s do it for the NetworkUiBehviour, here’s how:

1 — Create a BasicNetworkUiBehaviour class that implements NetworkUiBehaviour:

2 —Update our ViewModel class:
Kotlin Synthetic: Ben giderim adım kalır, dostlar beni hatırlasın
By: Furkan Paşaoğlu
Tags: View Binding, Kotlin Synthetic, Android, Kotlin, Mvvm Databinding

Learn more. Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Make Medium yours. Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore
How I handled null values in Android Proto DataStore?
By: Ishrat Khan
Tags: Null Safety, Android, Proto3, Protobuf, Kotlin

I was very excited to know practically how this new storage solution (DataStore) works. So in the Christmas holidays, I made a sample project on Proto DataStore to learn and improve my skills.

While working with DataStore i had multiple issues, but the major and most challenging issue was supporting null values in Proto DataStore.

We can’t store null values in Proto DataStore instead we have other solutions.

I found following solutions to add Null support in proto3, you can use according to your use-case.

(I will add more solutions as soon as i will come to know)

Method 1

We have wrappers.proto to support null in protobuffers

To use above wrappers you need to import “google/protobuf/wrappers.proto”;

And to declare nullable string use StringValue,

Method 2

We can use Oneof to define a nullable type, as of my understanding the best way of using this is 👇🏼

But in this case, you have to do a lot of additional stuff, like handling null via if else in service implementation.

Method 3 (using Default Values — Recommended)

In proto3 all fields are optional by default so each field have default value

These defaults are type-specific:

For strings, the default value is the empty string.

For bytes, the default value is empty bytes.

For bools, the default value is false.

For numeric types, the default value is zero.

For enums, the default value is the first defined enum value , which must be 0.

, which must be 0. For message fields, the field is not set. Its exact value is language-dependent. See the generated code guide for details.

We have to handle these default values using conditional code like if object is null pass its default value instead.

Thank you!!

That’s all from my learnings!!

Hey!!, I am ready to add more methods , if you know something different to handle null in protocol-buffers, Please let me know. i will be very thankful to you. you can find me on LinkedIn.
Views in Swift & Kotlin
By: Eric Silverberg
Tags: Kotlin, Swift, Views, Mvvm

At the outer layer of our Clean MVVM hierarchy are Views, including Activity and UIViewController , and these are represented by the blue 🔵 parts of our Clean architecture.

We can think of the view as the class that defines what to draw on the screen and how to draw it, but not when or why. The “when” is decided by the view model, and the “why” by the logic. Below is a summary of different types in this layer:

View classes should have only platform-specific code, related to what to draw — conditional business logic does not belong here. View classes should only interact with the ViewModel, not logic or repository classes. View classes can also be expected to implement navigation if we need to start a new UIViewController / Activity per user interactions.

🚫 Delegates 🚫 Blocks; 👍 Rx

As we said in our opening, avoid using delegates or closures when interacting with your ViewModel from your View. Here is an example of how to observe state changes in your View layer using ReactiveSwift:

Here is how you might observe event changes:

Next up

Finally, we discuss thoughts on effective cross-platform testing in Swift & Kotlin.

More in the series

About the author

Eric Silverberg is the CEO and founder of Perry Street Software, publisher of two of the world’s largest LGBTQ+ dating apps on iOS and Android.
Kotlin vs Groovy: The Best for Android App Development
By: Konstant Infosolutions
Tags: Kotlin

Groovy was a successor of Java; Kotlin is a successor of Groovy. Kotlin has gradually become the official language for Android Application Development. It erases the shortcomings of Groovy but later is still very popular among programmers due to support for static and dynamic typing; concise, brief, direct syntax; relatively short learning curve, support for unit testing, native support for regular expressions, the native syntax for lists and associative arrays, native support for markup languages like XML and HTML and support for domain-specific languages. But we have Kotlin that empowers everyday applications and is 100% compatible with Java frameworks. Java programmers can easily adopt Kotlin. We intend to illustrate the major points of differences for Kotlin vs. Groovy here; let’s find out!
Merry Christmas Kotliners! 🎅
By: Joanna Wyka
Tags: Christmas, Books, Workshop, Kotlin, Discount

Effective Kotlin ebook discount

We know how developing ourselves and broadening our horizons is important, so we want to give you a special discount for the Effective Kotlin ebook 🎄

It’s a guide for Kotlin developers on how to become an excellent Kotlin developer — definitely the best gift idea for all the Kotlin lovers!

Simply click this link and order your ebook with a discount!

Effective Kotlin ebook — XMAS_discount
Handle State with Sealed classes in Android.
By: Armen Galstyan
Tags: When Expression, Enum, Sealed Class, Kotlin

Sealed class is the best solution, when we use Kotlin.

Sealed classes are used for representing restricted class hierarchies, when a value can have one of the types from a limited set, but cannot have any other type.

They are, in a sense, an extension of enum classes: the set of values for an enum type is also restricted, but each enum constant exists only as a single instance, whereas a subclass of a sealed class can have multiple instances which can contain state.

State<T>(

val data: T? = null,

val msg: String? = null

) {

class Success<T>(data: T) : State<T>(data)

class Loading<T>(data: T? = null) : State<T>(data)

class Error<T>(msg: String, data: T? = null) : State<T>(data, msg)

}

A sealed class is abstract by itself, it cannot be instantiated directly and can have abstract members.

Sealed classes are not allowed to have non-private constructors (their constructors are private by default).

The key benefit of using sealed classes comes into play when you use them in a when expression. If it's possible to verify that the statement covers all cases, you don't need to add an else clause to the statement. However, this works only if you use when as an expression (using the result) and not as a statement.
Java Vs Kotlin : What to choose as a beginner ?
By: Ahmed Yasser
Tags: Kotlin, Android App Development, Android

My opinion as a beginner :

During your process in learning android you will need to be able to read other’s code so you need to have an idea about using java in android and kotlin as well to help you develop yourself . So I think you should learn the basic of both then choose best for you to continue your development Journey .

Thanks for reading !.
Build the same app twice
By: Eric Silverberg
Tags: Kotlin, Swift, Mvvm

Build the same app twice

In our series on Clean MVVM, we have shared real-life lessons shipping a major mobile client on multiple platforms for more than a decade. Clean MVVM is an architectural approach for building consistent apps in Swift and Kotlin, to maximize architectural and code design re-use. At its best, Clean MVVM enables you to copy-and-paste Swift into Kotlin, or Kotlin into Swift, and just twiddle the syntax.

Yes, this will be on the test

Below are the key points across all articles in this series, helpfully summarized:

Architecture

The control flow is: View ➡ ViewModel ➡ Logic ➡ Repository ➡ API/Store

Use Reactive streams when communicating state changes between layers

Logic classes are stateless and can be composed

Repository classes have state and should be global singletons injected via a DI system

Models should be structs or sealed classes that use primitive types only

BehaviorSubject / LiveData / Property / @Published are your go-to primitives for data that needs to be available for the duration of a screen and changes at unpredictable intervals

/ / / are your go-to primitives for data that needs to be available for the duration of a screen and changes at unpredictable intervals PublishSubject / Observable / SignalProducer / Publisher are for events, typically as a result of user input

/ / / are for events, typically as a result of user input Single / Completable / SignalProducer<Void> / AnyPublisher are for APIs and calls to local storage

Testing

Use dependency injection for object construction in tests

Only mock outer-layer classes — primarily network APIs

Structure your tests narratively using BDD, and minimize the number of assertions per test (ideally only one)

Use TestObserver classes (or their equivalent) to evaluate asynchronous streams

One more thing…

If you’re a mobile developer who enjoys app architecture, are interested in working for a values-first app company serving the queer community, talk to us! Visit https://www.scruff.com/en/careers for info about jobs at Perry Street Software.

More in the series

About the author

Eric Silverberg is the CEO and founder of Perry Street Software, publisher of two of the world’s largest LGBTQ+ dating apps on iOS and Android. He has been shipping mobile apps since 2010 and writing code since that english class book report in Hypertalk in 1995.
Kotlin simple and complex sorting
Tags: Kotlin, Sorting

We can use Iterable<T>.sortedBy(…) for simple sorting in Kotlin. But, Actually, there is no only case that can be sorted simply in real life. We need various ways of sorting items. Even if sorting case is too complex, we can use SortedWith to sort it.

TLTR;

Simple sorting

We want to sort people by their ages. Then, we can sort them by using SortedBy . Below is the code about this case.

Complex sorting

In Upper case, they are sorted by their ages. but that would be sorted only by their ages even if new property is added to Person class. What should we do if we want to filter them by new condition? In this case, we can use Iterable<T>.sortedWith(…): List<T>.

Let’s suppose that we have to pick 2 people from the list. We would check two property to compare each other: Age, Score. They would be sorted in order of highest score and age. In this case, there are two conditions: [Descending by age], [Descending by score].And, we can deal with this case with below code.
How Faire uses Kotlin to power our small-business marketplace
By: Jeff Gulbronson
Tags: Kotlin, Engineering, Backend Development

When Faire started in 2017, we built our backend in Java. Java was what the founders had used at Square so it was easy to be productive quickly, with all the benefits of Java such as static typing and mature tooling. In early 2018 the business was really starting to take off, and we began to explore a new language. Java was still solid and reliable for us, but we wanted to make sure we were continuously exploring new technologies to see if we could benefit from them. It was important to us that any new language kept the benefits of Java, with additional ones to justify switching. Enter: Kotlin, the programming language from Jetbrains.

Kotlin had really started to take off a few years earlier, primarily as a replacement for Java when building Android apps. Not many companies were using Kotlin as a server language (at least publicly), but it checked all the boxes for what we wanted in a language. It had static typing and mature tooling like Java, while offering great Java interoperability, improving on the type system, and offering type inference.

We recently sat down with Jetbrains to talk about why we decided to switch languages, some of the challenges we ran in to, and why you might want to consider Kotlin for your next backend project, especially if you’re already familiar with Java. Check it out here.
Troubled 2020, Optimistic 2021
By: Neha Maheshwari
Tags: Work Life Harmony, Creativity, 2021 Resolutions, Time Management, Work Life Balance

Troubled 2020, Optimistic 2021

2020 was a very difficult year for all of us. We had to reset our basics, our working styles, our living styles, and. our relationship styles. We had to learn to survive in a world where it would be days before we would see anything beyond our homes, where we learnt how to live with our loved ones 24 hrs a day (ofcourse we loved it, but it was a learning exercise), and where we built and kept relationships virtually (be it professional or personal).

Many companies insisted on “work life harmony” during this time but it’s easier said than done. I mean when you are spending 24 hrs with your loved ones, what else is left to harmonize?!?! Trust me, A LOT!! For the first time, I realized the power of commute. The space and time it used to give me to flush out my mind before starting my work. At home, I just need to move from my bedroom to my home office. There is no space (albeit there is time) to flush out my mind and start afresh.

As a professional whose job is to solve problems, I understand the need for a fresh mind. I was working on the future strategy for my product and I felt that I needed to change approach but the alternative wasn’t coming to me. Thought of many things to flush my mind, sleeping, exercising, watching Netflix, nothing worked. Back in the day, I used to paint. I remembered that I had my paints and canvases somewhere in my garage. I went straight to those and started painting. My sketching was poor, my colors were wrong, but suddenly I wasn’t thinking about anything but this visual I had in mind that I wanted to replicate on canvas.

Without realizing, I spent 3 hrs the first day, and the next day when I woke up, I had many new approaches that I could consider at work. I realized that the only thing that changed between these two days was the fact that my mind was clear. Colors/Painting helped me get there. Essentially, creativity flushed out all stale thoughts and made room for new thoughts to grow. Side benefits -

Till date I have made many paintings (some samples below)

I enjoy my job more than ever before

It makes me happy as it is me time with colors

And it has encouraged my son to pick up the brush.

So if you are looking for 2021 resolutions, please make one — carve out a few hours every week into doing something you love, something that makes you forget everything else around you, something that can help you flush your mind. A room stuffed with boxes can not really be used for anything else. Similarly a mind full of stale ideas can not create innovative solutions.
The Ruthless Work Ethic of Santa Claus
By: Joe Martin
Tags: 6weekcycles, Christmas, Company Culture, Work Life Balance, Productivity

And how many times have people felt this?

You work your butt off.

Do great work.

Finish everything on time.

And your reward — more work.

In this scene, Santa couldn’t have been gone more than a full day. And already, ALREADY! Returning to his workforce, stepping in to cut celebrations short, and encouraging them to get back to work. And they do it, cheerfully, because he has taken to breeding his own staff and training them from birth like a mob of Oompa Loompas.

But you can’t do this to people!

There are so. many. things. happening in every person’s life. Especially now. The work environment needs to be more flexible, more adaptive, and more sustainable for families. My 6-Week Cycles approach helps you work this way.

The pandemic has been a giant reset button on our society, and we have the chance to rewrite “work.” As we enter into the next year, I hope you’ll join me in saying goodbye to The Industrial Revolution-style work-environment we’ve grown up in. 2021 is our chance to write a new one.
Starting a new job remotely — what it’s been like + tips
Tags: New Job Tips, Pandemic, Working From Home, Work Life Balance, Work

For me, virtual on-boarding was a smooth experience: we received IT equipment before officially starting. We also had help in setting everything up which made me feel at ease before starting my new job.

The first 2 weeks we had a thorough induction. I liked how structured these first 2 weeks felt, and that the whole graduate cohort was together. Although these were new waters for us all, it felt nice that we were all in the same boat together. Our company also has a ‘buddy’ scheme, where we get assigned a grad from last year to help us through the first few months.

As a graduate straight out of university, this support and structure was very helpful in navigating my first few weeks. I think employers should be mindful about ensuring their new employees have a good support system in place.
What Is The Purpose Of Life? And How You’re Living It Wrong!
By: Shamil Ahamed
Tags: Life, Meaning Of Life, Work Life Balance, Seize The Day, Purpose Of Life

Remember when you were little and travelling at night by car, you looked at the sky and realized that the moon followed you everywhere. It didn’t matter how fast the car was, moon always seem to follow you till the end of the journey. This is how our materialistic dreams and fantasies chase us. That’s why we hear this so often “I’ll be SO much happier if I had [fill in the blank].”⁣⁣ People are certain that they’ll be happier if they get a promotion, buy a new car, move to a bigger home and quite a bit more if they win a lottery. But even when our needs are met, after a certain point, we tend to chase things that lead to much greater happiness.

Photo by Simon Matzinger from Pexels

This is called The Hedonic Treadmill, a theory posting that we tend to chase rainbows forever in life and return to our baseline level of happiness, regardless of getting something we always wanted. We adapt. A great pleasure, repeated often enough, becomes routine, and it takes an even greater treat to give us the same enjoyment. In a study of lottery winners, after an initial spike in happiness, most people returned to their previous levels & styles of happiness within just 12 months.

We adopt a lifestyle that resembles that of lab rats; go to a job, work for a hike or promotion and it’s only in our final stage of life we realise that there were a large number of things we could’ve done that wasn’t so difficult if we would’ve thought about it a bit earlier. Like going to that country you always wanted to, attending that event you always dreamt of going, pursuing your hobbies, organising a charity event or even asking someone special out!

In this perpetual reality, people tend to forget what they live for by chasing things that end up chasing them. Like a luxury car owner couldn’t think of selling it and buying a regular car, even if a regular car is what brings him happiness.

Photo by Rahul Bhogal on Unsplash

It is so easy to live a life you love; if we stopped chasing things that we hope can make us happy and instead seize the moment, yes carpe diem! Taking a break from work to take a piano course is normal, travelling to a new country and engaging with the locals for a month will give you lessons for a lifetime which you wouldn’t learn from upgrade or skillshare. It’s ok not to have a super car and make a badminton court in your backyard with that money. More importantly, it’s all the experiences and memories you recall while dying, not the number of cars and villas you owned.

Everyone around has a car, a nice house and a professional degree. It’s not big a deal to get married, buy a new car or buy a new apartment. It’s not the purpose of life, they are things to make your life easier, not happier. Ditch those old status symbols and live for the ultimate flex: Freedom and Health! Time and location freedom, and a healthy life are the new status symbols.
Spirituality in a always connected world [Podcast]
By: Gaurav Upadhyay
Tags: Digital, Lifehacks, Work Life Balance, NLP, Spirituality

Listen to the podcast here https://anchor.fm/thuntuned/episodes/Spirituality-in-a-Always-Connected-World-eo5a5c

In this episode, Gaurav invited Modern Monk Anshul Bafna to talk about the importance of spirituality in this always connected and always-ON digital and data driven world. The conversations focuses on what does it take to practice spirituality living a modern life.

Anshul is a renowned spiritual coach, business psychologist and a mystic. A professionally qualified business psychologist from University of Wetmkinster, A charted marketer , a masters in communication & Entrepreneurship , Anshul is a TEDx Speaker and has received multiple prestigious awards such as India Icon -Zee News, Power Women Award and WEFT Leadership award , for her work in helping corporate and individuals on spirituality and soul awakening , emotional intelligence and leadership.

Anshul is also the founder of Searchlight| The Soul school that offers a range of development programmes for individuals and corporate.
For the 25+ years working in corporate, I’ve always tried to keep a very clear line between work…
By: Brian Wright
Tags: Work Life Balance, Covid 19, Working From Home

For the 25+ years working in corporate, I’ve always tried to keep a very clear line between work and home life. I would often stay to 8, 9, or even 10pm at the office to “finish” work so that I could leave the stress behind and be 100% present for my family. Working from home this year blurred that line completely. My son got to see me stressed on more than one occasion. It’s definitely been a learning experience.
How to “un”overwhelm yourself in 5 easy steps
By: Yiğit İrez
Tags: Overwhelm, Work Life Balance

So this story is a continuation of my previous post where the reader was guided to be in a completely overwhelmed, and paralysed situation. There is a way out though.

Now the ways to get out of such an existence is follows;

DELEGATE

As million others have previously said, and as millions like me scoffed at the idea, it is true. Unless you delegate, you will most certainly be crushed eventually. You can’t and shouldn’t do everything. Train and trust people.

REJECT

Learn to say NO. I mean really say it with no other words around it. Just say NO. You may emphasize your “NO” with some words as suitable to the environment. Say “NO” wait 2 seconds as the other side understands, then explain why in short sentences. Can I actually do this? “NO!” -2 seconds pause- not yet. Especially workplaces may not give you an option for a clear NO but you should still have maneuvering room to imply clearly a “NO”

CHOOSE

Choose the hill to fight on. You can’t fight on all hills, all the time. Choose your battles and stand your ground. You may really like to do all those heaps of things you are working on but either your job quality (through that your morale), your mental/social health or your physical health will deteriorate.

TURN INWARD

Look back at yourself, what are you learning, what is this job giving you? Can you create time to better yourself? There should be positive answers here. Do the upper things more if not.

FUCK YOUR EXCUSES

This is more for me actually, since I used to list commendable reasons to excuse my suffering. I have shed all of them but one.

Always remember: You are an asset and the company is not your friend. If you allow it they will crush you with unending work and never remember you again. However, your colleagues are most often your friends. You may love them very much but THEY DO NOT REPRESENT THE COMPANY and suffering through for their sake is just wrong.
Let’s manage our lives and don’t let life manage you…
By: Homika Reddy
Tags: Time Management, Work Life Balance, Life Management Skills, Prioritizing Life

“When is the first time that you have taken up a course on life management skill?”

Source — Google

Many of us must have encountered a hurdle at least one point in time while managing our lives and preserving symmetry amidst work, personal space. Also, some of us might have missed the most precious moments due to an undersupply of life management skills in our curriculum. I would say that many would be suffering silently by not knowing how to balance the time frame on an average day that a human possesses.

A friend of mine works at a Big four consultancy firm focusing more on meeting client’s expectations rather than his own health and personal life. His day starts with stressing about client meetings, submissions, and deadlines. While trying to be above the curve, he always pushed himself by working long hours. By doing this, he continuously ignores spending quality time with his family and also taking care of his mental and physical health. By the time he realizes that work isn’t everything and understanding the importance of balancing life, his bond with the family weakened and his health deteriorated, leading him to reach a point of dissatisfaction in life.

Source — Google

This audibly conveys that work is just a part of us and not everything, at least not more important than our personal life. Because time is everything and a minute we lose cannot be taken back. In that minute, we might have missed our kid’s first birthday, celebrating our parent’s anniversary, ignoring a date with our loved ones, and missed having a glass of wine with a dear friend. By the time we realize work isn’t everything, our whole life that we spent in the verge of achieving work goals ought to be regretful.

Thus, it is very much important to master the art of managing the life at the right point in time to successfully encounter the hardships in a modern lifestyle to live a better future with no major regrets.

“Great things happen out of small changes.”

Here’s the gist on how to manage your life:

· Find the purpose of your life

· Prioritize things

· Rely on chunking

· Utilize “No Extra Time”

· Learn how to communicate better

· Work on building relationships
Neer Infoways offers best services for your growing business like Android and Web development,Web…
Tags: Web Development, Website Development, Web Design, SEO, Android App Development

Neer Infoways offers best services for your growing business like Android and Web development,Web designing,CMS,SEO/SMO,hosting services with best quality of work.