Image for post
Image for post
Photo by Bethany Legg on Unsplash

As a “senior” mobile developer I get asked all the time what my single “best piece of advice” is for junior level developers looking for their first or second gigs. This is it:

Work for a small startup or agency.

There are several reasons why I give this advice. Working for a small, early stage startup or agency provides these amazing benefits:

  • Fast, real world learning
  • Emphasis on practical skills over theoretical knowledge
  • Autonomy and responsibility

Fast, real world learning

Generally speaking, small startups have very finite financial resources. Which means they cannot afford to invest a ton of time in getting you onboarded and formally training you early on (if they had more resources, they probably wouldn’t hire a junior!). They tend to hire you and throw you right into an existing or new project, hoping you learn as you build. …

Image for post
Image for post

Creating a semi-transparent background color in an Android app was definitely not straightforward for me when starting out as an Android dev. I figured other aspiring Android devs would have similar confusion so I decided to just document the easiest way to do it here. I hope it helps!

The example below is a black background (hex value of #000000) that is 50% transparent.

<View android:background="#80000000" />

The value provided above combines an “opacity code” 80 with the hex value code 000000. The opacity codes aren't immediately clear, so I have provided the more popular ones below for your use.

100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
75% — BF
70% — B3
65% — A6
60% — 99
55% — 8C
50% — 80
45% — 73
40% — 66
35% — 59
30% — 4D
25% — 40
20% — 33
15% — 26
10% — 1A
5% — 0D
0% —…

Image for post
Image for post

Define a custom getter

Kotlin has the convenience of custom computed properties in the form of custom getters. Here’s an example computed property from a real app I built which takes properties from a custom Location class and returns a short description of that location.

Define a custom setter

A custom setter will be called every time a property’s value is set. In my app I need to sometimes save a search result and its type to a Realm database, but I cannot save enum values — only primitive types. So in this case when the enum value of resultType is set, I also set a restultTypeString property for if/when I need to save it in Realm.

To learn more about Kotlin getters and setters, visit the official docs.


Ricky C Padilla

Maker of mobile apps. #swift #kotlin #reactnative

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