Skip to content

Instantly share code, notes, and snippets.

View OmarBakry-eg's full-sized avatar
🎯
Focusing

Omar Bakry OmarBakry-eg

🎯
Focusing
View GitHub Profile
//Composition Design Pattern
class Draggable {
void drag() {
print('Dragging');
}
}
class Resizable {
void resize() {
@OmarBakry-eg
OmarBakry-eg / main.dart
Created January 10, 2024 19:24
Focus Example
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com