Похожие чаты

I work with js, And i want to learn OOP

and write reusable codes, What should i do?

17 ответов

4 просмотра

reusable and OOP doesn't really go hand in hand

Mohtasham- Автор вопроса
Mohtasham
Do you have good OOP resource?

yes. And it all foreshadows one thing: Don't do OOP. Unless you do Java, then you have no other choice. https://www.youtube.com/watch?v=wfMtDGfHWpA

Misan
:O wow

It has these weird first-class functions

Mohtasham- Автор вопроса
Misan
yes. And it all foreshadows one thing: Don't do OO...

I should learn TypeScript for OOP programming :/

Mohtasham
I should learn TypeScript for OOP programming :/

OOP and typescript are two separate things. TS can aid and help, but it "is" not OOP

Mohtasham- Автор вопроса
Thomas
Learn TypeScript for FP programming

what? I love js, What can i do for oop programming?

Mohtasham
what? I love js, What can i do for oop programming...

Ok. Lets assume this is an XY problem. Why do you need OOP?

Mohtasham- Автор вопроса
Mohtasham- Автор вопроса
Thomas
Well you don't need OOP in JS

Can i use interfaces and so on in ts?

Похожие вопросы

Обсуждают сегодня

Ясн. Но я всеравно к кедам отношусь с опасением. Чисто субьективное кедосозерцание. Что касаемо "восторга изяшности кед" так и не вкурил, хотя много слышал, пока не поставил с...
Артем Записной
30
Такой вопросец - есть функция function MySuperDuperConcat(const a: array of AnsiString): AnsiString; Как мне в её теле сделать вот так? Result:=Concat(a); А не грустный вариан...
notme
15
Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
48
type TObj = object procedure Init; virtual; end; TObj1 = object(TObj) procedure Init; override; end; procedure TObj1.Init; begin inherited; end; procedur...
Alexander 👋
29
They keep hyping $FUN but where's the progress? 🙄
Noah Noure
23
Btw guys very stupid question but i haven't researchd so js asking you pros . Can ltc be traced too? Literally point to pint to the user? And getting the banks blocked ? Exch...
20
А чем вам питонисты не угодили?😂
.
79
Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
How can a minority hashrate chain defend from a fork-hopping ASIC miner? The problem: 1. A miner comes into your network, and mines at 60-70% hashrate. 2. After some time, th...
Kishniev
13
yeap, thanks guys for response, but I really like to understand does a pool created on curve.fi has the option or api or I can call a function of a smart contract to set excha...
Oleg Karoza
11
Карта сайта