Manipulating state in Redux

Introduction

Manipulating objects in Redux might seem a little bit overwhelming at first but in time it becomes very clear and easy to understand. You just need to remember a few things and you can’t forget the crucial rule – don’t mutate the state directly. 

The goal of this article is to demonstrate how to manipulate nested objects and arrays in Redux so I won’t focus on things like setting the React project and making Redux configuration. I will not focus on redux actions as well. For the purpose of this article, I created a simple project on Github – a page with posts, comments and likes. 

https://github.com/wojciechnowaczyk/reduxApp

What you need to know: 

  • JS basics
  • React basics
  • Redux basics

Let’s go! (więcej…)

How communication application creates an engaged community in the company?

The power of good communication

The richest man in history — John D. Rockefeller once said: ‘The ability to deal with people is as purchasable a commodity as sugar or coffee, and I will pay more for that ability than for any other under the sun.’. The author of these words was born almost 200 years ago. It does not change the fact that they are as relevant today  as they were  on the day they were spoken.

(więcej…)

Extended mind – a different way of understanding technology

Human limitations

People are limited. Quite simply, our bodies and brains have their limits. The human  world and the society are thus adapted and actively created to fit these constrains.

For example: in most societies we pay for products in amounts that we can easily count in our heads. We use a system of short, repeatable and not random (because each has its own meaning) names and surnames instead of individual numbers. We use the language based on universal grammar, although  we could create new symbols for each meaning.

However , it does not prevent us from making calculations to send objects weighing more than  3,000 tons (such as the  Saturn V rocket) to the moon. We can  analyze data on people from all over the world. We can predict the weather, discover distant history and measure time down to nanoseconds.

Yet, research shows that the human cognitive system has hardly changed since the stone age (at least 280,000 years ago) This means that our ancestors had similar abilities in terms of memory, visual-motor skills, attention, perception etc. Conclusion ? We are the same. Our minds have been changed by culture and its achievements — science, language, tools and rules.

(więcej…)

What is artificial intelligence and how does it affect our lives?

Beethoven AI Project

On September 9,  2021, the premiere of the  completed version of Beethoven’s 10th symphony took place in Bonn, Germany.  The 200-year delay in premiere, however, was not caused by the loss of materials or the concealment of the publication by the German composer. Ludwik simply did not have time to finish his work. Fortunately, almost two centuries after his death, artificial intelligence did it for him.

(więcej…)

Virtual influencers

War of the worlds

October 30, 1938, at 8 p.m.. It was almost supper time, and many New Jersey residents had their radios turned on. Usually at that time the announcer talked about the latest political, cultural and stock exchange events. That evening , however, the residents heard a completely different announcement.

(więcej…)

Made to stick – how to talk to the mind to make it want to remember

On a sunny morning two children run to an Enclave car. They are followed by their parents. Father opens the door and the boot and  mother helps to pack the things needed for the picnic. The boy takes the dog to his lap. The girl holds in her hands the bouquet of flowers gathered in the garden. When everyone is ready , the father starts the car and they go on a road trip.

In the background the woman’s voice is heard: „ The Enclave is a minivan to the max. It has a remotely controlled sliding door, sunroof, built-in navigation or even heated cup holders”. Each advantage is neatly visualized on a close-up.

(więcej…)

What is UX and why do I need it?

My name is Michał Dziedziniewicz and since March this year I have been supporting Expansio in UX Design issues with a chatbot project for learning programming: CodeAll (you can read more about the beginning of the project here). And what does that mean ? Well, that’s what I was going to tell you in a few words what this UX design is all about. (więcej…)

Innovations in education – alternative means of transferring knowledge and educational challenges in the 21st century

Ghost in the machine

Startups around the world offer innovative solutions in the field of Industry 4.0, smart cities, medicine and, among others, education( the so called  EdTech). Perhaps the education industry seems to be less popular – we still learn within the same walls – but at some startup conferences it is particularly promoted. For example, in this post, you can read about the South Summit conference in Madrit , where Expansio participated in a competition for educational startups called EnlightED.

The fruit of the work of the educational startups are proposals for new educational solutions. For example , while participating in the Kickstart accelerator in Zurich, Expansio got to know the Labster startup. Labster creates virtual laboratories that can be used with augmented reality glasses. The university no longer needs to build a specialized chemical laboratory for its students for hundreds of thousands or millions of dollars. All you need to do is to buy a Labster subscription, give students augmented reality glasses and you can choose from 200 available virtual laboratories (Interestingly, the search for application of new technologies seems to go hand in hand with the search for new methods of work organization –  Expansio is a turquoise organization and  Labster is a holacration  :)).

(więcej…)

How to build a hardware startup – CodeAll – from scratch to market implementation

Introduction

Almost 90% of  startups fail . Despite this, the number of startups is constantly growing. I also did it. It is not only about money, although it is also the motivation for many founders – the number of so called unicorns i.e. startups worth over  1 billion dollars, increased by over  350% between 2013 and  2018 . For me, it was mainly the desire to develop. I had a great need to do something that was creative and innovative, but at the same time valuable to others. This is what  makes my work meaningful.

(więcej…)

Custom theme provider in React Native

About styles in React Native

Styles in React Native application can get messy really fast if you don’t give  them at least little attention  from the very beginning. First of all,  the inline styles are not a way to go. JSX already mixes presentation and logic layers a bit so there is no need to throw in a bunch of objects with styles and confuse the future self or anyone who might need to read and edit your code. A popular approach is to use React Native built-in StyleSheet and declare your styles outside of a component. You can also find other great methods, like styled-components, but we are not going to review all of them here. Feel free to explore and find a solution that suits you best.

(więcej…)