Skip to main content

Cristian Duarte – Blog

git-am featured image

How to share changes with patches and git-am across branches or pull requests

November 8, 2018 Cristian Leave a comment

Have you ever needed to share code between different branches? More specifically across Pull Requests? And what if those Pull Requests were started or aimed at different branches? (maybe master and.. releaseXX, making it difficult if those branches are a bit diverging at the moment) One option would be, if changes are simple, copy changes […]

Read More

Android, Retrofit2, OkHTTP3 and an easy cache implementation

July 6, 2016July 7, 2016 Cristian Leave a comment

In a recent development, a simple Android App which should get data from a REST API, one of the requirements was: Cache API requests for 1 hour. I chose retrofit as my REST Client, and I knew it provided cache mechanisms out of the box (by OkHTTP3). Following this useful tip, it looked like a long hanging fruit (having a […]

Read More

4 ways the Android Platform changed that can teach us how to be better Engineers

April 5, 2016April 9, 2019 Cristian Leave a comment

  Android changed a lot since its first release, for both users and developers. Some changes were about user interface, others about software architecture and design, but all have a something in common, we can learn a lot about the decisions Google engineers and executives made. Google Play Services There was a rumor about a […]

Read More

Thinking dp as centimeters (or inches)

March 18, 2016July 7, 2016 Cristian Leave a comment

The title may be a little misleading, because in fact dp can’t be thought as a unit of (real world) measurement, it is a unit of measurement! Following the definition of dp (other for designers): Density-independent pixel (dp) A virtual pixel unit that you should use when defining UI layout, to express layout dimensions or position […]

Read More

A Bugs Life I

February 20, 2016July 7, 2016 Cristian Leave a comment

Bugs, errors, bad practices, all of them happen in real life. Here we have some pics of the ones I could see and catch..        

Read More

Java snippet for literal arrays

November 20, 2015July 7, 2016 Cristian Leave a comment

In need of lots of hardcoded literal arrays? Even if not considered a good practice, maybe you are unit testing array receiving methods so, is there a direct way without having to do the classic new Type[]{… thing? View the code on Gist. If needed in more places, just make those methods static (and in […]

Read More

About

Cristian is a Systems Engineer, Software Developer, doer and thinker.

On the web:

– @Toptal

– @LinkedIn

– @stack overflow

– @GitHub

★ Engage with your Android App!

✉ Contact me

Recent Posts

  • How to share changes with patches and git-am across branches or pull requests
  • Android, Retrofit2, OkHTTP3 and an easy cache implementation
  • 4 ways the Android Platform changed that can teach us how to be better Engineers
  • Thinking dp as centimeters (or inches)
  • A Bugs Life I

Categories

  • A Bugs Life
  • Development

Archives

  • November 2018
  • July 2016
  • April 2016
  • March 2016
  • February 2016
  • November 2015
sparkling Theme by Colorlib Powered by WordPress