Laravel Livewire: For Laravel Devs

Laravel Livewire: For Laravel Devs

Hapa nakataa, ah ok kumbe ni maoni yako mkuu by IT kilaza
Kataa kwa kutoa valid reason, kukataa bila kutoa sababu yenye maana unaweza kataa kila kitu.

Mfano unakataa kuwa dev anayetumia Framework ni 5 times productive zaidi yako given the same project

Au unakataa Framework codebases na Open source libraries ni more secure kuliko codes zako wewe mwenyewe?

Wapi unapokataa?
 
Nitajie general purpose Programming language moja inayotumiwa na majority ya devs ambayo hai support OOP
C, haina OOP features, au micro controllers coders siyo part ya majority ya devs ? acha kukariri
 
C, haina OOP features, au micro controllers coders siyo part ya majority ya devs ? acha kukariri
Kwa C nakubaliana na wewe, C ni procedural tangu kuundwa kwake
Thus why C++ ikaja...

So still 90% au zaidi ya programming languages zina support OOP with few exceptions kama C na nyingine chache zitalazo kuwepo

So generally, OOP ni must have feature kwa majority ya programming languages.
 
Kwa C nakubaliana na wewe, C ni procedural tangu kuundwa kwake
Thus why C++ ikaja...

So still 90% au zaidi ya programming languages zina support OOP with few exceptions kama C na nyingine chache zitalazo kuwepo

So generally, OOP ni must have feature kwa majority ya programming languages.
shida yangu ni kusema OOP ni superior kuliko functional,
hujui embedded systems na micro controllers, huko OOP is way far ahead from being worthless

na kusema OOP ni must have feature ni kituko cha karne
 
shida yangu ni kusema OOP ni superior kuliko functional,
hujui embedded systems na micro controllers, huko OOP is far ahead from being worthless

na kusema OOP ni must have feature ni kituko cha karne
OOP ni superior kwenye scenario nyingi, pia upo sahihi kuwa FP inaweza kuwa useful zaidi kwenye some scenario

Generally OOP ni superior

OOP ni must have feature kwa most of general purpose languages, nimetoa na sababu why

Nilipokuuliza utaje language isiyo support OOP, ukaishia kutaja moja, still ina prove point yangu.

Kama 90% ya Programming languages zina support basi generally OOP ni feature ya lazima

Maneno kama "acha kukariri" , "kituko cha karne" huwa hayajibu hoja kwenye mijadala kama hii, mimi mwenyewe ninayo mengi Kama hayo.

Toa valid reasons.
 
ushabadili gear angani sasa
Wapi gear imebadilika...
OOP ni superior kuliko FP, wapi nilipo badilisha?

Niliposema FP, inaweza kuwa useful zaidi kwenye some scenario

Soma basi kwa ufahamu.
 
Na hii


“Many people who have no idea how a computer works find the idea of object-oriented programming quite natural. In contrast, many people who have experience with computers initially think there is something strange about object oriented systems.”
Sure. Kuna kitabu cha "Computer systems, A programmer's perspective" kimeelezea nje ndani jinsi codes zetu zinavyofanya kazi na structure ya computer systems, kama ni mtu unaefanya coding kwa passion na unataka kuelewa deep zaidi basi hicho kitabu ni muhimu kukisoma, coz ukitoka hapo utakua umepanua sana akili yako na utaanza kuwaza tofauti.
 
Kweli kuna extra learning curve but it is worthy it


Unaweza kuweka benchmark?
In many cases this is not true as with caching the performance is always the same or even better.

In extreme cases the difference is insignificant.
Kama unaweza kuja na benchmark ambayo ni testable then itakuwa poa!

This is false. Classes are merely organizing your function adding few more things. Having trained people on OOP since 2014, am yet to find a confused student.

As with everything, learning should be fun. If it is confusing probably you have wrong teacher.
And machine? How does it get confused?

On top of all these, framework code have been scrutinized sometimes by thousands and tested on hundred if thousands projects, big and small. So it tends to be secure, robust and battle tested than your one man reviewed code.

Some parts of framework like security tends to get written by or audited by security experts. That adds to the confidence than one man code.

All in all, I would avoid writing something in my own, when there is battle tested one. And if I don't like something on it, I'll start with battle tested code and move from there.

----->SECURITY.
Sawa, ila mie ni developer ambae nlianza kwenye pentesting na bado nipo huko, Kuhusu security umeongelea theory coz nadhan ww umebase sana kwenye teaching but let me tell u practical parts of stuffs.

Kwa pentester side of view ni rahisi sana kudeal na app ambayo iko built on framework kwa sababu hz kuu:-
1)Asilimia kubwa ya devs wakishatengeneza app hawajali kuupdate framework version, suppose vulnerabilities zimetokea na zikawekwa hadharan, wachache sana huenda kuupdate project zao

2)Ili kumziba hacker siku zote inabidi asione script zako kwanza, ukishindwa hapo ndo ufanye strategy nyngne. lkn hizi opensource kila mtu anaona script na anajua logic behind. Hata automated tool itanipa scan nzr tu kuendelea na hacking yangu.

Khs security kuna faida na hasara na inategemea scale ya project. Ila kwa asilimia kubwa kuhack project kubwa ambayo ni custom made(achana na viweb uchwara vya wanachuo au IT wababaishaji) ni ngumu kuliko kuhack hizi ambazo zimebase kwenye frameworks coz kwa custom made hizi automated scan tool ni ngumu ku-crawl humo.


----->SORRY BUT AM NOT CONVINCED WITH YOU OOP KNOWLEDGE & EXPERIENCE.
Hii ni kwa sababu umesema

""
This is false. Classes are merely organizing your function adding few more things. Having trained people on OOP since 2014, am yet to find a confused student.
""
Mkuu OOP inatengeneza Abstraction over data tuuu, ila Functional programming inaleta abstraction over both data and behaviour, unless tunaongelea kwenye perspective tofauti coz hata sita inaweza kuwa tisa kutegemeana na mwangaliaji. Ila Refer hii article. Functional Programming vs OOP | Top 8 Useful Differences To Know Umeongelea kiurahisi sana khs classes na ndo maana labda wanafunzi wako hawawi confused.


----->KUHUSU MACHINE KUWA CONFUSED:
Umeuliza ila sitokujibu kwa sababu ya upana wa hilo somo sitoeleweka hapa
 
FP na OOP ni programming paradigm, ni jinsi gani develop anaamua ku organize codes zake. They have nothing to do with performance.
Nlipoona hii statement naona naongea na mtu nisiedhan kabisa, ningejua utasema hili basi nisingeingiza topic ya Oop vs Functional kwenye uzi wako.

Hivi unajua big data systems zenye accuracy kubwa zinatumia tu functional based programming languages kama LISP, na ushajiuliza kwa nn iko hvyo? Na kama OOP ni paradigm tu ushajiuliza kwa nn huwezi fanya OOP kwenye Lisp ila languages kama js unaweza fanya yote OOP na FP?

Bro nashauri edit comment yako oop na fn sawa ni paradigm lkn zina effect kubwa sana kwenye performance na accuracy. Sitoongea zaidi.
 
Hii behavior haina uhusiano wowote na FP, hata developer anayetumia OOP paradigm ku organize codes zake anapata same support
Hujanielewa mzee, nmesema hivyo kucrash point yako ya kusema codes zangu ntamantain mm milele, na sijasema hilo nikihusisha OOP.
 
For clarification, Reactjs wana recommend kutumia functional components dhidi ya Class based components sio FP over OOP

Na hii ni simply for app performance kulingana na nature ya Reactjs yenyewe.

Reactjs ina re render component along with all children components kila state ya hio component inapo change, hata kama individual states za children components hazitokua na mabadiliko yoyote.

Hio ni computationally expensive kama unatumia class based components ila ni less expensive kwa Function based componen
Daah hv unaelewa kweli unachoandika?

Hayo yote yanatokana kwa sababu ya kutumia OBJECTS, Objects are expensive.

Yaan unajipinga ww mwenyewe af unakataa, then unaelezea unavyokataa kupingwa, daa shida tupu..
 
naintroduce OOP kukiwa na ulazima wa kufanya hivyo na pindi nnapo deal na machine yenye RAM kubwa, OOP ina bloats kwenye RAM, overheads na kama Kali alivyodai, huo wote ni mzigo kwa machine husika (less efficient)
Hii issue yaan jamaa kajijibu mwenyewe aliponiquote khs ReactJS,


Objects are expensive
Objects are expensive
X 100
 
shida yangu ni kusema OOP ni superior kuliko functional,
hujui embedded systems na micro controllers, huko OOP is way far ahead from being worthless

na kusema OOP ni must have feature ni kituko cha karne
Mtu ambae anacode UI na Login, logout plus CRUD based(create, read, update, delete) systems hawezi elewa kitu mkuu.

Mie natengeneza web systems, nafanya chiptuning ya control unit za magari, natengeneza fintech systems na uchafu mwingi sana ndo maana naona huyu jamaa kakaririshwa OOP, kumuelewesha ni kutwanga maji kwenye kinu.

Sema bado nna shida ya kupata universal Eeprom reader kama kpnd kile sijui unaweza nipa direction?
 
Back
Top Bottom