https://stackoverflow.com/questions/41788166/create-an-observable-from-an-edit-text We can use RxBinding. This example could help you. https://github.com/JakeWharton/RxBinding //Validate username field Observable<Boolean> usernameObservable = RxTextView.textChanges(usernameEditText) .map(username -> StringUtils.isNotBlank(username) && Validators.validateUsername(username.toString())).skip(1); //Validate password field Observable<CharSequence> passwordObservable = RxTextView.textChanges(passwordEditText).skip(1); //Validate confirm password field Observable<CharSequence> confirmPasswordObservable = RxTextView.textChanges(confirmPasswordEditText) .skip(1); //Validate password READ MORE
Category: Kotlin
Espresso cheat sheet
Espresso cheat sheet The Espresso Cheat Sheet is a quick reference you can use during development. This cheat sheet contains most available instances of Matcher, ViewAction, and ViewAssertion. An offline version is also available in PDF format: espresso-cheat-sheet-2.1.0.pdf.
Webapp Deploy to Aws
Deploy with War, web app archive Local java MySQL DB Tomcat server jsp-page Public AWS Elastic Beanstalk Tomcat VM Option -DJDBC_CONNECTION_STRING=jdbc:mysql://database -DJDBC_USER=user -DJDBC_PASSWORD=password then configure jdbc connection String DB_url=System.getProperty(“JDBC_CONNECTION_STRING”); String DB_user=System.getProperty(“JDBC_USER”); String DB_password=System.getProperty(“JDBC_PASSWORD”); Connection conn = null; READ MORE
Android Jetpack
Android Jetpack Jetpack is a set of libraries, tools and architectural guidance to help make it quick and easy to build great Android apps. It provides common infrastructure code so you can focus on what makes your app unique. READ MORE
What is Code Coverage???
What is Code Coverage??? Code Coverage is a measurement of how many lines/blocks/arcs of your code are executed while the automated tests are running. Code coverage is collected by using a specialized tool to instrument the binaries to add tracing READ MORE
By lazy in Kotlin
lazy Initialization by lazy may be very useful when implementing read-only properties that perform lazy-initialization in Kotlin. by lazy { … } performs its initializer where the defined property is first used, not its declaration. How ‘by lazy’ works Now let’s revisit the code READ MORE
Compare Protocol in Swift vs Interface in Java
Essentially protocols are very similar to Java interfaces except for: Swift protocols can also specify properties that must be implemented (i.e. fields) Swift protocols need to deal with value/reference through the use of the mutating keyword (because protocols can be implemented by READ MORE
Swift is like Kotlin
http://nilhcem.com/swift-is-like-kotlin/ Swift is like Kotlin BASICS Hello World Swift print(“Hello, world!”) Kotlin println(“Hello, world!”) Variables And Constants Swift var myVariable = 42 myVariable = 50 let myConstant = 42 Kotlin var myVariable = 42 myVariable = 50 val myConstant = READ MORE
Swift VS Kotlin. Design patters
https://medium.com/@nvashanin/swift-vs-kotlin-design-patters-d82d50e34741 https://codeburst.io/kotlin-and-swift-is-it-a-new-mobile-development-era-b4c5e81feb08 Swift VS Kotlin. Design patters The area of mobile development is young. The average age of iOS developers is 29 years. The age of developers in other languages is on average higher and is already 42 years! Since the release of READ MORE
Companion Object Kotlin
https://stackoverflow.com/questions/38381748/why-do-we-use-companion-object-as-a-kind-of-replacement-for-java-static-fields What is the intended meaning of “companion object”? Why is it called “companion”? First, Kotlin doesn’t use the Java concept of static members because Kotlin has its own concept of objects for describing properties and functions connected with singleton state, and Java static part of a READ MORE