Okay, here are short Java examples illustrating each of the SOLID principles:
1. Single Responsibility Principle (SRP)
-
Bad (violates SRP):
class User { private String username; private String password;
*These questions are based on my personal experiences and based on the interview I have given | |
The questions are listed on random order, I may organise this topic wise in future.* |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCukCv0a4b3MqaALOpPW4fAG/oNZ+1sxG4jc+ed/5tTNsx4ZJPy9YPARC31FMzvjI1cSKlvsGQN6XAzYYjiQ713sudCoH43cT7oeGVUnlDPjejQ2JFTzMZhQ0OLcwaRAA37K/8yWn4Qfbo2t+7Zp0/FDclC6HobMZ5zgned8IZnaRFMBzsYViMz8LVUBplEpDZdPVGDGRNMnTWMTRa68p+rWvrTYY2TQe+LZT/xfPdezQYwSmrZ5REd6EizS8TMbNgYcvoMMFIA/z4eFfEbtJI8VUMqojogKGrKWep1JkBPhclbVatdYA3Na84bbYMK+TLkLYYeJuuyrQE1MDBVBz+0Bp2WiFqfxnqpEtEthtdmCn4ezgsOQGR7A2E51Z/9pv+EJw/PSwIf1XMkyMkcuHhvFMBk5d/2OoeT/58qGqxIDDqSrXDSVQYkI0y2ecXRZUNKb/LOoI2AlJCGGGl8wHQJsrUTq6sKD1MDHbXOueVZlbeJIH6t1fbWyb9w7qMWlp0= [email protected] |
This Gist contains list of interview question in unordered fashion |
Okay, here are short Java examples illustrating each of the SOLID principles:
1. Single Responsibility Principle (SRP)
Bad (violates SRP):
class User {
private String username;
private String password;
Q: what you need to do for https ? | |
A: you need to get a certificate from CA(let's Encrypt is a CA) | |
Q: How to get a Certificate ? | |
A: in order to get a certificate for your website's | |
domain from let's encrypt you have to demonstrate control | |
over the domain. | |
with let's encrypt you need a software that uses | |
ACME protocol which runs on your web host |
/* | |
* SCHEMATIC http://i.imgur.com/plwZbFa.png | |
* | |
* Connecting ESP8266 (ESP-12) and Nokia 5110 LCD | |
* www.KendrickTabi.com | |
* http://www.kendricktabi.com/2015/08/esp8266-and-nokia-5110-lcd.html | |
*/ | |
#include <ESP8266WiFi.h> | |
#include <ArduinoJson.h> |
as we know Oauth2 authorize(not authenticate) an end user's account(resource owner) to be used by third-party services
generally there are 2 types access_token generating scheme
this flow allow other applications to use my user's resource.
tags | |
branches | |
release | |
forn | |
timeline | |
trunk | |
clonning | |
collaboration | |
staging area(allow git to start tracking those files) | |
commit(taking a snapshot) |
npm intall command was not working to i try to open cmd as an Admin then it runs successfully |