Programming Ideas With Jake

Jake explores ideas in Java and Python programming

  • About
  • Book Reviews
  • Hamcrest Tutorials
  • Kotlin
  • Browse Old Articles
  • Python Descriptors Book

Discussion of Kotlin’s Future Features Survey

Posted by Jacob Zimmerman on 2017-06-24
Posted in: Kotlin. Tagged: kotlin. Leave a comment

So, the survey results for Kotlin’s future features are in. Let’s talk about that. Continue Reading

Thoughts on the MVP Pattern

Posted by Jacob Zimmerman on 2017-06-17
Posted in: android, Functional Programming, General Practices. Tagged: android, architecture, clean architecture, functional programming, mvc, mvp. Leave a comment

Hello, dear readers, and welcome to my thoughts on the MVP (Model-View-Presenter) pattern, which I finally got around to learning. I had tried before, but everybody always explained it so abstractly that, even when compared to MVVM abstractly, I couldn’t tell what it was. But I recently got to see the pattern being implemented in some live-coding episodes  I don’t really have a whole lot to share; I’m focusing on one mini anti-pattern within the typical implementation that I’d like to provide alternative ideas for.

General Thoughts on MVP

First, I will give you my overall thoughts on MVP. My first thought about it is, “Is this really any different than MVC?” And truly, MVP is pretty much what I had always thought of MVC to be. The problem wasn’t MVC, in my opinion, but what so many people had come to think MVC was. Having heard what Uncle Bob has said about MVC, it’s clear that there has been severe “evolution” to the community’s understanding of MVC, but the MVC I was taught in college is almost exactly the same thing as MVP, with all the differences being negligible compared to the differences between my understanding of MVC and so many others’ understanding. Continue Reading

Using the New Python Instance Properties

Posted by Jacob Zimmerman on 2017-06-10
Posted in: Descriptors, Kotlin, Meta, Python. Tagged: composition, descriptors, kotlin, properties, python. 2 Comments

Last week, I showed you my new implementation for instance-level properties in Python. This week, we’ll take another look at it by implementing a few Delegated Properties and helpers to make using them just a hair nicer.

Recreating Kotlin’s Built-In Delegates

For inspiration of what Delegated Properties to create, we’ll start by recreating the ones built into Kotlin, starting with Lazy. Continue Reading

Another Look at Instance-Level Properties in Python

Posted by Jacob Zimmerman on 2017-06-03
Posted in: Descriptors, Kotlin, Meta, Python. Tagged: composition, descriptors, kotlin, properties, python. 3 Comments

A while back, I did a post on making instance-level properties in Python where the implementation of it required inheritance as well as messing with __getattribute__() and __setattr__(), which are a little dangerous to mess with. Then I had another idea last night (as of the time of writing this): Use normal descriptors to delegate to “Delegated Properties” (name taken from Kotlin, the original inspiration). These Delegated Properties can be designed very simply in a way that they only have to worry about the value on one instance, instead of figuring out how to store the value per instance. Continue Reading

Lots of Programming Videos!

Posted by Jacob Zimmerman on 2017-05-25
Posted in: android, Kotlin, Python. Leave a comment

Well, my Watch Later playlist on YouTube is extra full now! A bunch of videos from really big programming conferences have just dropped.

PyCon 2017: 144 Videos!

Google IO 2017: 158 Videos!

Now, obviously not all videos are going to interest everyone, but there’s something for just about any Python programmer in the PyCon list, and I only went through the Android videos for GoogleIO and I got 10 videos added.

With Google IO came a really cool announcement for Kotlin-Android developers, too: Kotlin is now getting first class support from Google for Android!

Posts navigation

← Older Entries
Newer Entries →
  • Python Descriptors Book

    View RSS Feed

  • Check Out My Book!

  • Upcoming Posts

    No upcoming events

  • Upcoming Events

    No upcoming events

  • Want to Browse Old Articles?

    You can find them here!
  • Ads

    Free Trial of Audible for a Month!

    If you already have an Audible account and want to help me a little, you can use my affiliate link to go shopping on Amazon while leaving me a tiny cut automatically :)

    Pay for My Shave

    Join the Dollar Shave Club to earn me $5 to use on their site

    I don't really like ads, so you should know that I only post these ads because I'm a very satisfied customer of their products. I don't feed my ads in from some silly service.
  • Affiliated Aggregators

    Java Code Geeks
    Web Code Geek
    Planet Python

    If you know of any other blog aggregators that might be willing to add my blog, let me know by emailing me at jacobz_20 at yahoo dot com.

Blog at WordPress.com.
Programming Ideas With Jake
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Programming Ideas With Jake
    • Join 41 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Programming Ideas With Jake
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...
 

    Design a site like this with WordPress.com
    Get started