Image for post
Image for post

Background

In this and the upcoming posts, I will go deep in some CS problems with my proposed solutions. I will try to follow the simplest possible approach “that is acceptable and good enough but may not be the most optimal” to make it easy to absorb by everyone. Now, let’s start.

One of the interesting problems I checked recently is the closest binary search tree k-values problem.

Problem Statement

This is the original problem statement, given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target.

Note:

• Given target value is a floating point. …

Image for post
Image for post

I got back from ApacheCon NA 2019 presenting two talks about Apache projects (August 2019):
https://www.apachecon.com/acna19/s/#/schedule/2019-09-12

Image for post
Image for post
Flutter In Action

If you are a mobile developer that loves developing mobile apps as quickly as possible, then this session is definitely for you. This session shows you how to develop and run a mobile app in 30 minutes without needing to have any deep knowledge of native mobile application development in iOS or Android. This will be achieved by using Flutter. This session is a practical session that shows you the detailed steps needed for developing a basic Flutter app. After this session, you’ll know enough information that can allow you to start developing your first mobile app.

This session was part of the latest Droidcon NYC in 27 August 2019.
Enjoy!

Image for post
Image for post
https://www.promptcloud.com/wp-content/uploads/2019/02/machine-learning-hearing-aid-article.jpg

This article is not about mobile or web development or cloud platforms, it is about my dive into the machine learning world. Although I’m still an explorer of this field, I will blog about my observations from time to time.

Before we proceed, let’s understand the target of this article. This article presents a common machine learning problem that is already discussed and solved before. My main intention is not about solving the problem itself again but about explaining the process of machine learning classification procedure for educational purposes using Scikit-Learn Python library.

Minimum required terms

Before digging into the problem to be solved, I want to indicate some of the important terms that we need to understand. …

Image for post
Image for post

I just get back from FullStack NYC 2019. The conference organization was really excellent. I was really glad to meet wonderful front-end folks to chat and exchange experiences and ideas. In this conference I spoke about “Effective Unit tests for JavaScript Applications”:
https://skillsmatter.com/skillscasts/13303-effective-unit-tests-for-javascript-applications

Image for post
Image for post

I just get back from DevFest Chicago 2019. The conference organization was really excellent. I was really glad to meet the friendly organizers of this conference and some members of GDC Chicago (Dan Baran, Joel Vasallo, and Ben Rodriguez) and to present “Learnt lessons from Mockito 2.x Migration and Developing clean unit tests”:
https://twitter.com/ChicagoGDG

Image for post
Image for post

@01 Feb, I will be glad to have you joining my session in DevFest Chicago “Learnt lessons from Mockito 2.x Migration”:
https://windycity.devfest.io/schedule

This session will discuss the tips and tricks of migrating a project with tons of unit tests from Mockito 1.x to Mockito 2.x. It also shows important techniques and disciplines to be followed in order to get rid of all of any existing legacy PowerMock dependency and to have 100% clean unit tests with truly testable code.

See you all there, looking forward to meet you all in person!

Image for post
Image for post
https://static.javadoc.io/org.mockito/mockito-core/2.23.0/org/mockito/logo@2x.png

Mockito 2.x solves many problems that most of the Android developers were having in their unit tests in Mockito 1.x. But what if you are having today large unit tests written in Mockito 1.x and PowerMock, will it be an easy task to migrate?

Unfortunately, it is not a straightforward task since Mockito 2.x is not fully compatible with the old behaviour of Mockito 1.x. Adding to this complexity, If you are having PowerMock in your old tests, then you will have to face another dimension of complexity since most of PowerMock’s versions are having integration issues with Mockito 2.x.

This session goes through the tips and tricks that you need to consider in order to migrate to and utilize Mockito 2.x (including demos). …

Image for post
Image for post
Mockito 2.x migration — Droidcon UK 2018

Mockito 2.x solves many problems that most of the Android developers were having in their unit tests in Mockito 1.x. But what if you are having today large unit tests written in Mockito 1.x and PowerMock, will it be an easy task to migrate?

Unfortunately, it is not a straightforward task since Mockito 2.x is not fully compatible with the old behaviour of Mockito 1.x. Adding to this complexity, If you are having PowerMock in your old tests, then you will have to face another dimension of complexity since most of PowerMock’s versions are having integration issues with Mockito 2.x.

This session goes through the tips and tricks that you need to consider in order to migrate to and utilize Mockito 2.x (including demos). This session is presented in Droidcon UK 2018 (@25 October).

Slides

Attached below the slides.

About

Hazem Saleh

Open source enthusiast, Apache PMC, Sr Software Engineer in @Facebook NY, Author of 5 tech books (one of them is a best selling). All opinions are my own.

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