Natamani Kujifunza programming, naomba msaada

Natamani Kujifunza programming, naomba msaada

ANAEFAHAMU KWA LUGHA rahisi tafadhali tusaidieni

Swali lako ni sawa na kuuliza Lugha ya nchi gani rahisi hapa duniani.

Programming inategemea na kichwa chako kinaweza kumeza lugha gani, Unaweza kutumia C++/JAVA mwingine akatumia PHP au .NET lakini wote mkafanikiwa kutoa same results/Product
 
Swali lako ni sawa na kuuliza Lugha ya nchi gani rahisi hapa duniani.

Programming inategemea na kichwa chako kinaweza kumeza lugha gani, Unaweza kutumia C++/JAVA mwingine akatumia PHP au .NET lakini wote mkafanikiwa kutoa same results/Product

Statement yako inaweza kua kweli lakini haitohold kwa situations zote.. Kwenye high perfomance systems ukiweka programmers wawili experts kabisa kwenye PHP na C++, its obvious wa C++ ana low level access ataachieve higher perfomance... unadhani kwa nini wengi wanajifunza languages nyingi? zipo nyingine huwezi tumia kwenye situations flani...
 
Naona anaulizia lile swali mashuhuri la Lugha nyepesi ya kuanzia kupiga code. Sema tatizo hapa hata kiswahili cha kuombea msaada kinampiga chenga sasa mascript ya code yatapanda kweli ?

Hebu njoo na maelezo yaliyoshiba kidogo tujue pa kuanzia kukusaidia.

programming language haswa php
 
Programming: "There is a yard. For each unit of yard, determine if it is an edge unit. If it is, determine which side is the edge. Try to erect 1 unit of fence on that edge.


Or think of this simple mathematical task:

"If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000."

Now how would you let your computer figure it out for you? That's PROGRAMMING for you🙂
 
Swali lako ni sawa na kuuliza Lugha ya nchi gani rahisi hapa duniani.

Programming inategemea na kichwa chako kinaweza kumeza lugha gani, Unaweza kutumia C++/JAVA mwingine akatumia PHP au .NET lakini wote mkafanikiwa kutoa same results/Product


  • Mkuu si sahihi kusema programming ni Kumeza Lugha ya aina fulani, Kitu muhimu kwenye programming ni kuelewa kwanza algorithms (jinsi ya kufikiri kama programmer)...hizo syntax za lugha ni kuzizoea tu kadri unavyoendelea kuandika codes.
  • Kila language ina ubora wake kutokana na nini unataka kufanya kwa mfano PHP is more suitable for web applications, Huwezi niambia kwenye Mabenki watu wanatumia PHP kufanya transaction processing, au kuprogram smartcards kwa kutumia PHP au unaweza kutumia PHP kutengeneza Native Mobile App inayotumia vitu kama GPS,Microphone etc au ukatengeneza web application kwa C++ ....you need to know the right tool for the right job ndio maana watu hujifunza languages nyingi kutokana na demand tofauti na ubora tofauti katika maeneo mbali mbali:ranger:
 
Statement yako inaweza kua kweli lakini haitohold kwa situations zote.. Kwenye high perfomance systems ukiweka programmers wawili experts kabisa kwenye PHP na C++, its obvious wa C++ ana low level access ataachieve higher perfomance... unadhani kwa nini wengi wanajifunza languages nyingi? zipo nyingine huwezi tumia kwenye situations flani...

Umeshawahi kusikia kitu kinaitwa Services/API kwenye programming, kama unajua hii utabadilisha msemo wako wa higher perfomance achievements with certain language
 
  • Mkuu si sahihi kusema programming ni Kumeza Lugha ya aina fulani, Kitu muhimu kwenye programming ni kuelewa kwanza algorithms (jinsi ya kufikiri kama programmer)...hizo syntax za lugha ni kuzizoea tu kadri unavyoendelea kuandika codes.
  • Kila language ina ubora wake kutokana na nini unataka kufanya kwa mfano PHP is more suitable for web applications, Huwezi niambia kwenye Mabenki watu wanatumia PHP kufanya transaction processing, au kuprogram smartcards kwa kutumia PHP au unaweza kutumia PHP kutengeneza Native Mobile App inayotumia vitu kama GPS,Microphone etc au ukatengeneza web application kwa C++ ....you need to know the right tool for the right job ndio maana watu hujifunza languages nyingi kutokana na demand tofauti na ubora tofauti katika maeneo mbali mbali:ranger:

Mkuu mi bado nasimamia msemo wangu, kama wewe ni programmer na uhakika unajua kitu kinaitwa Services/API na ndio maana siku hizi programmer wote wakiwa wanatengeneza software they work in architectural team work, ili kila mtu anakuwa flexible kufanya kazi kwa kutumia lugha yake. They just call a service(XML) and work out on how to manipulate
 
Mkuu mi bado nasimamia msemo wangu, kama wewe ni programmer na uhakika unajua kitu kinaitwa Services/API na ndio maana siku hizi programmer wote wakiwa wanatengeneza software they work in architectural team work, ili kila mtu anakuwa flexible kufanya kazi kwa kutumia lugha yake. They just call a service(XML) and work out on how to manipulate

Mkuu ndio webservices zinasahidia kuwapa watu uhuru wa kutumia language wanayotaka pale unapofanya integration na application nyingine.

Lakini si kila sehemu itakuwa applicable hebu chukulia huu mfano...nakupa machine kama Point of Sale za kwenye supermarket au kama hizi TRA wanaita Electronic Fiscal Devices unitengenezee program itakayoweza ku-record mauzo kwenye database na mimi kama mmiliki wa Duka niweze kuona hayo mauzo kupitia simu yangu au website.

SDK za hizi devices zinakuwa ni kwa languages kama C++ au C na hazina any inbuilt support ya HTTP wala xml or JSON sasa hapo webservice call itakusaidiaje? PHP au JAVA itakusaidiaje kufanya integration na hiyo Database?

You must get down with C or C++ huko mbele kwenye web interface or mobile App utatumia tena language nyingine.

Mfano mwingine nakupa ni hii Mpesa API ndio tunaambiwa inatoka April 2015
M-PESA to Open its API in April 2015 | TechMoran

Lakini watu wengi wameshafanya integration na Mpesa na wanapokea malipo unajua ni njia gani imetumika?

There are many challenges in software development and you must acknowledge the fact that programming language moja haitoshi kufanya kila kitu.
 
Umeshawahi kusikia kitu kinaitwa Services/API kwenye programming, kama unajua hii utabadilisha msemo wako wa higher perfomance achievements with certain language

Mkuu API naona unachanganya mambo au hujaielewa vizuri... Alafu High perfomance systems nazoongelea mimi labda nikupe maelezo kidogo, industries wanazotengeneza hasa hardwares, angalia vitu kama robots, vitu kama mouse, keyboard, wanaotengeneza drivers za tools hizi au softwares za kuzirun wanatumia C/C++ siku zote ili kupata low level access na kuhandle vitu kama memory efficiently, japo bugs ni nyingi maana code inakua ndefu zaidi lakini inasaidia kuachieve higher perfomance. Na ndio maana industries zote wnaotengeneza vitu vinavohitaji very fast perfomnce hutowakuta wanatumia language nyingine..

Angalia game engines zote, unreal, unity, crysis zote at the backdoor wantumia C++, na mfao unity ambao wanatoa ruhusa mtu kucode game kwa kutumia languge nyingine, in the end wanainconvert into C++ code.. Hii yote ni kwa sababu all those graphics zinahitaji kuwa controlled to the lowest level maana ni kitu kinachotumia a lot of memory na kinahitaji high perfomance ili iwe playable na higher framerates... Kwa hiyo C/C++ kwa perfomance bado zinabaki kua standard
 
Ushauri wangu ujifunze algorithm kwanza mambo ya language yatakuja baadae

Very bad idea, kumwambia mtu aanze na algorithm unampoteza kabisa, mtu lazima aanze na programming language angalau moja ajue how to think like a machine, hapo ndo hata akili ya kutengeneza algorithm itakuja kichwani.
Lazma ajue what the computer can do, what are the limitations, na ajue ana tools gani, vitu kama datastructures, mtu anayekimbilia algorithms hana idea na hayo mengine ataishia katikati...
 
deejaywillzz you can't get same results especially performancewise when comparing interpreted languages vs compiled languages, compiled languages are always going to be faster and have better memory management. If you want to serve an API for a large web app better chose the right language otherwise you are going to have to do a lot of tweaking, just look at facebook, they had to create hiphop just to improve php's performance. Their chat service was actually written in erlang becuase php couldn't handle that many requests, twitter had to re-write the backend end code in scala because rails couldn't scale, so you can see in small projects you can get away with it but once the game changes there's no way you can have the same result.
 
Last edited by a moderator:
deejaywillzz you can't get same results especially performancewise when comparing interpreted languages vs compiled languages, compiled languages are always going to be faster and have better memory management. If you want to serve an API for a large web app better chose the right language otherwise you are going to have to do a lot of tweaking, just look at facebook, they had to create hiphop just to improve php's performance. Their chat service was actually written in erlang becuase php couldn't handle that many requests, twitter had to re-write the backend end code in scala because rails couldn't scale, so you can see in small projects you can get away with it but once the game changes there's no way you can have the same result.

I totally agree with you but I think you didnt get my point. In my explanations I meant to say that you cant be the master of all but u can specialize in one and utilize others.... I can be expert in php but i can utilize ur JAVA/C++ expert to achive my results as long as my algorithm is set right.
 
Very bad idea, kumwambia mtu aanze na algorithm unampoteza kabisa, mtu lazima aanze na programming language angalau moja ajue how to think like a machine, hapo ndo hata akili ya kutengeneza algorithm itakuja kichwani.
Lazma ajue what the computer can do, what are the limitations, na ajue ana tools gani, vitu kama datastructures, mtu anayekimbilia algorithms hana idea na hayo mengine ataishia katikati...

Naomba nitajie Shule au Chuo kimoja kinachofundisha programming language kabla ya Algorithm.... Expert wa programming pia mnaweza mkanisaidia kwa hili.

Labda kama ulisoma programming kwenye shule ya chini ya mti nitakukubalia kwa hilo.
 
Disclaimer: TL😀R if u are not interested.

Mfano mwingine nakupa ni hii Mpesa API ndio tunaambiwa inatoka April 2015
M-PESA to Open its API in April 2015 | TechMoran

Lakini watu wengi wameshafanya integration na Mpesa na wanapokea malipo unajua ni njia gani imetumika?
If you think the process from a buyer's point of view its actually not difficult to make the integration. I've done it and the only issue I can think of is what happens when the service providers change their message formats.

What basically happens is when somebody clicks pay on a website, you give them an option to pick which method they wanna use to pay, ie mpesa, tigopesa etc,then you give them instructions on how to pay, ie press *155*00# then pay to this number(your number that will receive the money).

Now once payment's done you and ur customer both will get a confirmation message that has the same receipt no.

What u do is u make sure that message u get is posted to the db as payment, just break it down into different parts using regular expression so u get receipt, amount, username, sender, balance etc.

Now all that's left is for ur client to confirm the payment by entering the receipt in the webform, when there's a matching receipt in the payments table do some validation and payment is complete.

The only thing u need is an android phone that has smssync(an android app by ushahidi from kenya) installed(this will sync your messages with ur db my making a post request to the db) very simple and it works on a Rails app i created.
 
Mkuu ndio webservices zinasahidia kuwapa watu uhuru wa kutumia language wanayotaka pale unapofanya integration na application nyingine.

Lakini si kila sehemu itakuwa applicable hebu chukulia huu mfano...nakupa machine kama Point of Sale za kwenye supermarket au kama hizi TRA wanaita Electronic Fiscal Devices unitengenezee program itakayoweza ku-record mauzo kwenye database na mimi kama mmiliki wa Duka niweze kuona hayo mauzo kupitia simu yangu au website.

SDK za hizi devices zinakuwa ni kwa languages kama C++ au C na hazina any inbuilt support ya HTTP wala xml or JSON sasa hapo webservice call itakusaidiaje? PHP au JAVA itakusaidiaje kufanya integration na hiyo Database?

You must get down with C or C++ huko mbele kwenye web interface or mobile App utatumia tena language nyingine.

Mfano mwingine nakupa ni hii Mpesa API ndio tunaambiwa inatoka April 2015
M-PESA to Open its API in April 2015 | TechMoran

Lakini watu wengi wameshafanya integration na Mpesa na wanapokea malipo unajua ni njia gani imetumika?

There are many challenges in software development and you must acknowledge the fact that programming language moja haitoshi kufanya kila kitu.

Mkuu mimi nimekuelewa kwa hilo, ila system zote si zinakuwa na Central Server/Database where all other systems manipulate data from?
 
Naomba nitajie Shule au Chuo kimoja kinachofundisha programming language kabla ya Algorithm.... Expert wa programming pia mnaweza mkanisaidia kwa hili.

Labda kama ulisoma programming kwenye shule ya chini ya mti nitakukubalia kwa hilo.

Vyuo vyote I know teach programming languages before learning algorithms and data structures. You need to know how to program before you learn algorithms and data structures.
 
Back
Top Bottom