coding with ☕️
2 subscribers
262 photos
14 videos
11 files
165 links
Anwendungsentwicklung
Download Telegram
33/1 completed 2 hour lesson
1. useState nima?

useState bu Reactda foydalaniladigan xotira (yoki holat). Ya’ni:

🔄 "O'zgaruvchini saqlab turadigan va uni o'zgartirganda sahifani avtomatik yangilaydigan" maxsus funksiya.

Oddiy JavaScriptda o‘zgaruvchi shunaqa:

let sana = 5;


Reactda esa bunday qilamiz:

const [sana, setSana] = React.useState(5);

Bu degani:

sana — bu o‘zgaruvchimiz.

setSana — bu funksiyamiz, sanani yangilaydi.

useState(5) — boshlang‘ich qiymat, hozir sana = 5.
Forwarded from Front End World
ViteConf 2024 was a blast

The third edition of ViteConf was another incredible community party. ViteConf 24 showed how much the Vite Ecosystem keeps growing and evolving.

https://blog.stackblitz.com/posts/viteconf-2024-recap/?social=
int myAge = 25;
int* ptr = &myAge;

printf("Qiymat: %d\n", myAge); // 25
printf("Manzil: %p\n", &myAge); // 0x... (xotira manzili)
printf("Pointer ichidagi qiymat: %p\n", ptr); // ptr o‘zida myAge'ning manzilini saqlaydi
printf("Pointer orqali o‘qilgan qiymat: %d\n", *ptr); // 25 – ptr orqali qiymatga kiriladi
Forwarded from JavaScript
🤩 Bruno: An IDE for Exploring and Testing HTTP APIs

An open source (though a commercial version is available) Node and Electron-based desktop app for crafting and testing HTTP requests, complex and simple. Think of it as a lightweight alternative to something like Postman.

Anoop M D, Anusree P S and Contributors
Please open Telegram to view this post
VIEW IN TELEGRAM
cp materials/linters/.clang-format src/
public class Main {
public static void main(String[] args) {
System.out.printf("Hello and welcome!");

for (int i = 1; i <= 5; i++) {

System.out.println("i = " + i);
}
}
}
public class Main {
public static void main(String[] args) {
/* String ism = "Fotima";
int yosh = 20;
float baho = 4.8f;
char harf = 'F';
boolean student = true;

System.out.println(ism);
System.out.println(yosh);
System.out.println(baho);
System.out.println(harf);
System.out.println(student);*/

double price = 19.9;
double gpa = 3.9;

char garde = 'A';
char symbol = '!';
char currency = '$';

boolean isStudent = false;
boolean forSale = false;
boolean isOnline = true;

if (isStudent) {
System.out.println("You are a Student!");
}
else {
System.out.println("You are Not a Student!");

}
}
}
public class Main {
public static void main(String[] args) {

System.out.println("Hello World");

int concert = 6;

double uzs = 144000;
double usd = 12.00;

char gender = 'F';
String currency = "UZS";

boolean forSale = true;

String name = "Blackpink Concert will start!";
String on = "on";
String time = "12:00";
String week = "Tuesday";
String price = "Current price is:";

System.out.println(name + " " + on + " " + time + " " + week);
System.out.println("Concert number: " + concert);

if (forSale) {
System.out.println(price + " " + uzs + " " + currency);
} else {
System.out.println(price + " " + usd + " $");
}
}
}