dronedrake
JF-Expert Member
- Dec 25, 2013
- 23,901
- 58,103
you seem to know zero to none about micro controllers and embedded systemsunajua kazi ya Assembly kweli na cases zipi inatumika
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
you seem to know zero to none about micro controllers and embedded systemsunajua kazi ya Assembly kweli na cases zipi inatumika
ila ulisema Python is purely OP to the coreYah, unaweza kutumia kijiko pia kuchimbia shimo, lakini hio sio purpose ya kijiko
Kataa kwa kutoa valid reason, kukataa bila kutoa sababu yenye maana unaweza kataa kila kitu.Hapa nakataa, ah ok kumbe ni maoni yako mkuu by IT kilaza
C, haina OOP features, au micro controllers coders siyo part ya majority ya devs ? acha kukaririNitajie general purpose Programming language moja inayotumiwa na majority ya devs ambayo hai support OOP
Hakuna nilipokanusha, Python ni purely Object Oriented.ila ulisema Python is purely OP to the core
towardsdatascience.com
Kwa C nakubaliana na wewe, C ni procedural tangu kuundwa kwakeC, haina OOP features, au micro controllers coders siyo part ya majority ya devs ? acha kukariri
ulisema iko purely based on OOP to the core hapo juu, au ni kurequote tena ?Hakuna nilipokanusha, Python ni purely Object Oriented.
![]()
Is Python object-oriented?
This tutorial answers the question of whether python is objected oriented or not?towardsdatascience.com
shida yangu ni kusema OOP ni superior kuliko functional,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.
OOP ni superior kwenye scenario nyingi, pia upo sahihi kuwa FP inaweza kuwa useful zaidi kwenye some scenarioshida 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
ushabadili gear angani sasaOOP ni superior kwenye scenario nyingi, pia upo sahihi kuwa FP inaweza kuwa useful zaidi kwenye some scenario
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.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.”
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.
Nlipoona hii statement naona naongea na mtu nisiedhan kabisa, ningejua utasema hili basi nisingeingiza topic ya Oop vs Functional kwenye uzi wako.FP na OOP ni programming paradigm, ni jinsi gani develop anaamua ku organize codes zake. They have nothing to do with performance.
Hujanielewa mzee, nmesema hivyo kucrash point yako ya kusema codes zangu ntamantain mm milele, na sijasema hilo nikihusisha OOP.Hii behavior haina uhusiano wowote na FP, hata developer anayetumia OOP paradigm ku organize codes zake anapata same support
Daah hv unaelewa kweli unachoandika?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
Hii issue yaan jamaa kajijibu mwenyewe aliponiquote khs ReactJS,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)
Mtu ambae anacode UI na Login, logout plus CRUD based(create, read, update, delete) systems hawezi elewa kitu mkuu.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