Skip to content

Commit

Permalink
latest updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir roy authored and shishir roy committed May 16, 2023
1 parent 0b2781d commit 29adc29
Show file tree
Hide file tree
Showing 13 changed files with 612 additions and 12 deletions.
403 changes: 403 additions & 0 deletions HTML/IQ

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions JS/10_call_apply_bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,6 @@ boundSayHello(); // Output: Hello, my name is John
// In this example, we have an object person with a sayHello method. When we assign the sayHello method to a new variable sayHello and invoke it, the this value becomes undefined, resulting in an error. However, when we use bind to create a new function boundSayHello with the person object as its context, invoking boundSayHello correctly outputs the expected result.

// Overall, the bind method is useful for controlling the execution context of a function, creating partially applied functions, and ensuring the correct this value is maintained when using methods as callbacks.


// https://betterprogramming.pub/how-and-why-to-use-call-apply-and-bind-in-javascript-17d50d5a1eb0
67 changes: 67 additions & 0 deletions JS/86_Singlethreaded.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions JS/98_TypeConversion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// https://www.scaler.com/topics/javascript/type-conversion-in-javascript/
5 changes: 5 additions & 0 deletions MAUI/Topic
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ Converters
Layout
Compile time errors in xaml
Convert to update view model objects


IMP
https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core?view=aspnetcore-8.0
https://dotnet.microsoft.com/en-us/learn/dotnet/architecture-guides
69 changes: 68 additions & 1 deletion REST/Points
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,71 @@ Clearly communicate deprecation, provide migration guides, and offer alternative
Log API requests, errors, and performance metrics. Set up monitoring tools for proactive detection of issues.

[22.] Follow RESTful URI conventions -
Use hierarchical URIs like /users/{id}/orders to represent resource relationships.
Use hierarchical URIs like /users/{id}/orders to represent resource relationships.


Stateful vs stateless
Explain http methods
Explain http status code
explain URI - uniform resource identifiers identify every resource in the REST architecture
What are the best practices in making the URI for RESTful web services
REST vs SOAP
REST vs ajax
What are some tools used to develop and test REST APIs-> Postman
example of REST API->
Advantage
1. Easy to learn
2. Wide range of data transfer
3. Statelessness
4, Scalability

Disadvantage:
1. Lack of built-in security
2. Need to be versioned for backwards compatibility
3. Consistency in URI difficult to maintain for complex projects

<protocol>://<service>/<ResourceType>/<ResourceId>

Get, Head, options are safe and idempotent methods where as Put and delete methods are only idempotent. Post and patch methods are neither safe nor idempotent

https://www.linkedin.com/feed/update/urn:li:activity:7064106120977502208/


Principle:
1. Client-server decoupling
2. Uniform interface
3. Stateless
4. Layered System
5. Cacheable

API vs web service


Idempotent methods: Methods that return the same outcome irrespective of how many times the same request has been made

HTTP response status
1xx -> (information response) the request was received, continuing process
2xx -> (successful) the request was successfully received, understood and accepted
3xx -> (redirection) further action need to be taken to complete the request
4xx -> (client side error) the request contains bad syntax or cannot be fulfilled
5xx -> (server error) the server failed to fulfill a valid request

Authentication mechanism -> oAuth, Basic Authentication (base64 encoding), 2F Authentication

How to secure REST api
1. Authentication and authorization
2. Validation
3. Encryption
4. Rate-limiting
5. No sensitive information in URI






https://www.youtube.com/@CodeDecode/playlists

https://dotnet.microsoft.com/en-us/apps/aspnet/apis
https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?WT.mc_id=dotnet-35129-website&view=aspnetcore-7.0&tabs=visual-studio

4 changes: 4 additions & 0 deletions React/Topic/66_Question.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// Native modules
// Component life cycle
// typescript
// how javascript is single thread compare to other language, which is faster
// how many threads are used in reactjs

// what will happen if child component has heavy operation and its called from parent functional in react and how to avoid UI block and if parent render then child should render only once

Expand Down Expand Up @@ -66,3 +68,5 @@
// https://www.udemy.com/course/swiftui-masterclass-course-ios-development-with-swift/
// https://www.udemy.com/course/ios-13-app-development-bootcamp/
// https://www.udemy.com/course/deep-dive-ios-16-swiftui-programming/

// https://www.geeksforgeeks.org/android-tutorial/
4 changes: 4 additions & 0 deletions React/Topic/67_Redux.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@

// UseDispatch is the alternative to mapDispatchToProps; We can use useDispatch and then put the result into the dispatch variable. The dispatch variable can work with all Actions imported from the actions folder.

// Redux Thunk is middleware that allows you to return functions, rather than just actions, within Redux. This allows for delayed actions, including working with promises.

// One of the main use cases for this middleware is for handling actions that might not be synchronous, for example, using axios to send a GET request. Redux Thunk allows us to dispatch those actions asynchronously and resolve each promise that gets returned.

// https://www.interviewbit.com/redux-interview-questions/
// https://mindmajix.com/redux-interview-questions
// https://www.knowledgehut.com/interview-questions/redux-interview-questions
Expand Down
17 changes: 17 additions & 0 deletions React/Topic/70_RN_architecture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// https://reactnative.dev/architecture/overview
// https://reactnative.dev/docs/0.68/performance
// https://reactnative.dev/docs/0.68/javascript-environment
// https://reactnative.dev/docs/0.68/native-modules-intro
// https://reactnative.dev/docs/0.68/native-components-android
// https://reactnative.dev/docs/0.68/native-components-ios
// https://reactnative.dev/docs/0.68/direct-manipulation
// https://reactnative.dev/docs/0.68/new-architecture-intro
// https://reactnative.dev/docs/0.68/headless-js-android
// https://reactnative.dev/docs/0.68/communication-android
// https://reactnative.dev/docs/0.68/communication-ios
// https://reactnative.dev/docs/0.68/app-extensions
// https://reactnative.dev/docs/0.68/platform-specific-code
// https://reactnative.dev/docs/0.68/fast-refresh
// https://reactnative.dev/docs/0.68/debugging
// https://reactnative.dev/docs/0.68/symbolication

Loading

0 comments on commit 29adc29

Please sign in to comment.