Coder Social home page Coder Social logo

headfirstandroid3rded's Introduction

Hello ๐Ÿ‘‹

I've been writing software since I was about 12 years old, but to be frank, some of the code from those early days wasn't very good, and you've probably never used it.

Since then, I have gone through puberty. That was quite traumatic, so I'll draw a veil over the details. Then came university and a variety of jobs that mostly involved typing.

I've written a few books, including ones on Android development and React web development.

I also give courses on the O'Reilly Media learning platform, and I present a video course called Business Writing Essentials that will show you in 90 minutes how to go from no ideas, and a blank page, to a fully finished piece of writing.

Watch the trailer

Aside from that, I'm the founder of a company that produces a cloud-based version of the old clocking-in and clocking-out machines, and provides development consultancy for Android and front-end web development.

I'm reasonably approachable unless it's before I've had coffee.

Training Things

Books

Social Media

Linkedin YouTube BlueSky

headfirstandroid3rded's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

headfirstandroid3rded's Issues

Companion object for bundle keys

In the stopwach example shouldn't you use a companion object for the bundle keys (so they are static) instead of making them instance variables?

class MainActivity : AppCompatActivity() {
    companion object {
        val RUNNING_KEY = "RUNNING"
        val OFFSET_KEY = "OFFSET"
        val BASE_KEY = "BASE"
    }

    lateinit var stopwatch: Chronometer
    var running = false
    var offset: Long = 0L

    override fun onSaveInstanceState(outState: Bundle) {
        outState.putBoolean(RUNNING_KEY, running)
        outState.putLong(OFFSET_KEY, offset)
        outState.putLong(BASE_KEY, stopwatch.base)
        super.onSaveInstanceState(outState)
    }
   ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.