How to focus and have self-discipline

The Pilsum Lighthouse, on Germany’s North Sea coast.

If we get rewarded only for results and not for processes, we will become pretty miserable.


It’s not a promotion. It’s a role change.

Archetypical Story

The Trident Model of Career Development

Individual Contributor

  • 70–80% time spent on “Executing, doing”.
  • Designing. Testing. Coding.

Management

  • 70–80% time spent on “Managing the system”.
  • Planning. Organizing. Supporting. Budgeting.

Technical Leader

  • 70–80% time spent on “Leading Technical Topics & Teams”.
  • Aligning Team. Technical Vision. Growing Tech Knowledge.
    Tech Risk & Tech Debt Management.

What is a Tech Lead


The uncomfortable truth about human nature

An example of one Asch experiment slide.

The psychologist Solomon Asch


The power of contributing to OSS ⌨️

What is Open-Source Software (OSS)? 🤔

  • PHPUnit is an example of OSS which is free.
  • Spryker is an example of OSS which is not free.

OSS is basically software that is public, open to the world.

Benefits — for a company 🛕

  • Adoption: the easier the access, the easier the adoption.
    Training and tutorials help the system to grow.
  • Tech: often on the cutting edge of technology.
    Tech moves fast. They will get obsolete if they don’t.
  • Community: the people around…


Why choosing when you can have both?

Pull Requests

A Pull Request is the moment where you ask your peers to review and check out your code changes.

  1. For discussions about code style.
  2. To spot potential bugs.
  3. For architectural or design discussions once the solution is done.

Pull Requests aren’t the best tool for everything


Who moved my cheese?🧀


The new functional language. Fully interoperability with PHP 🚀

https://phel-lang.org/
https://phel-lang.org/

The Phel Language

Features

  • Built on PHP’s ecosystem
  • Good error reporting
  • Different Datastructures (Arrays, Tables, and Tuples)
  • Macros
  • Recursive functions
  • Powerful but simple Syntax
  • REPL

Why Phel?

  • A LISP-inspired
  • Functional Programming language
  • That runs on cheap hosting providers
  • And is easy to write and debug


How to escape the mocking hell

What happens when you mock something?

In a unit test, mock objects can simulate the behavior of complex, real objects and are therefore useful when it is impractical or impossible to incorporate a real object into a unit test.


Another way of sharing quick suggestions with your team

Imagine this situation

What possibilities are there apart from just comments in a PR?


The spread operator to the rescue.

Flattening a one-level array

$lists = [
[1, 2],
[3, 4],
[5, 6],
];
$merged = [];foreach($lists as $list) {
$merged = array_merge($merged, $list);
}
// $merged === [1, 2, 3, 4, 5, 6];
$lists = [
[1, 2],
[3, 4],
[5, 6],
];
$merged = array_merge(...$lists);
// === [1, 2, 3, 4, 5, 6];

Unpacking an assoc-array

$lists = […

Jose Maria Valera Reales

Aka: Chema. I love writing about stuff that I find interesting and bring some value to my life, so I can share them with you. https://chemaclass.es

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store