Posts

Showing posts with the label java

Online coding practice Options

 Java -  https://onecompiler.com/java Python - onecompiler.com is still good. Need to find a better option. https://repl.it seems much better as a project layout Angular (2+ versions) -                 https://stackblitz.com               https://codesandbox.io               https://ng-run.com (no thoroughly tested) 

Protoype bean scope - real world usage

  Protoype scope illustration using Token Generator import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; @SpringBootApplication public class PrototypeScopeExample {   public static void main(String[] args) {     SpringApplication.run(PrototypeScopeExample.class, args);   } } @Component @Scope("prototype") class PrototypeBean {   private String message;   public String getMessage() {     return message;   }   public void setMessage(String message) {     this.message = message;   } } @Component class ClientBean {   @Autowired   private PrototypeBean prototypeBean;   public void printMessage() {     prototypeBean.setMessage("Hello, World!");     System.out.pr...

height checker better option

 Leetcode question of height checker given an array of integers, not in ascending order, find mismatch nodes count https://leetcode.com/problems/height-checker/description/ Typical solution is regular array sort and compare - O(n logn) Counting sort or use approach of buckets then scan again - O(n) counting sort approach - https://leetcode.com/problems/height-checker/solutions/299910/java-o-n-no-sort/ bucket based solution - https://leetcode.com/problems/height-checker/solutions/299910/java-o-n-no-sort/

Java, Immutable class example with one of the member variable as a List

  Country class, this class is made immutable list of states as one of the member variable First general incorrect way is explained and correct way explained at the end. https://java2blog.com/how-to-create-immutable-class-in-java/

Understanding the Glider Assessment Tests

Whether it is DevOps assessment or Java Fullstack or Python assessment tests, some of those are related to Glider assessment tests. I. Assessment Link and Instructions You get an email something like below. Import to note is "hire.glider.ai" Please take the assessment on a personal computer only. Once you are ready to take the assessment, please click on the "Start Assessment" link below. Link: https://hire.glider.ai/dataPrivacy/assignment/<Alpha numeric with a mix of upper case and lower case letters> Start Assessment   General instruction: ·  Make sure that you have a stable internet connection. We recommend using Chrome or Firefox browser. ·  We recommend you test your network, internet speed, browser, microphone, and webcam by clicking here. ·  Please close all programs that upload or download files in the background (eg. Dropbox, Google Drive, torrent, etc.) ·  To avoid any distractions, you should close all chat windows, screen-saver, etc. before sta...

[Regularly Updated] Udemy Free and Hugely discounted Courses

List of Udemy for Free/Hugely Discounted Courses Most of these are directly posted in Facebook Udemy group. Provided here for easy reference. Android 1. Android Bootcamp in Material Design  (Discounted) Angular, Java Script and related 1. HTML5 for beginners 2. Build Amazon Clone: Angular5 + Node + Stripe + Search Engine (Discounted) Databases: RDBMS, BigData and NoSQL 1. Diving into Data: SQL (Discounted) Java, J2EE 1. Getting started with Spring Boot Python, PHP, NodeJS and Web Development 1. Complete Python 3: Beginner to Advanced 2.  Django Course 3. Learn Python thru 100+ practicals 4. Mastering MongoDB with PHP Software Test Automation 1. Selenium: Easy Guide to Automated Functional Testing Dev  (Discounted)

Understanding Design Patterns in more Practical Sense

To understand Gang-of-Four Design Patterns in more practical application manner. 1. Very nice to understand the simple concept of each of the Design Patterns. https://www.codeproject.com/Articles/29036/Patterns-in-Real-Life 2. dzone based material to understand the purpose and use cases along with Java code. https://dzone.com/articles/gof-design-patterns-using-java-part-1 https://dzone.com/articles/gof-design-patterns-using-java-02

Java Factory Pattern understanding using Guice Dependency Injection

1. To understand Java Factory Design Pattern very basic with and without of Dependency Injection . 2. For understanding in more detail with a unit test and maven deployment of Guice, Factory pattern . In both of these cases Factory pattern is explained with Guice Dependency Injection model.

Java, Jersey interceptors and filters

1. JAX-RS filters and interceptors youtube lesson from javabrains 2. Filters and Interceptors explanation from makeinjava