@degreat
the greatest
Nothing here yet.
Nothing here yet.
No blogs yet.
In java you cannot pass functions as parameters to other functions. But objects. Had it been java accepts functions as arguments it would have been like this: button.setOnClickListener(playMusic); // where playMusic is a function But in java's architecture, that's not accepted in this present day, so you pass in an object instead, which is an OnClickListener object. So the code you wrote above is the same as; View.OnClickListener playMusic = new View.OnClickListener() { @Override public void onClick (View view) { media.startPlaying(); } } // and then pass playMusic to button onclick button.setOnClickListener(playMusic); // where playMusic is now an object
if you want speed in the app itself, try Node/Express or Spring (Java) if you want speed in development process: use Django (python) Those are just backend frameworks. For the frontend: ReactJS is way cool... in my opinion. And I advise you decouple backend code from front-end code. That is, making your backend return json/xml responses instead of html (except for some cases). Then you consume those responses from your front-end app.
Simply: Yes As in any craft, it requires intelligence in that field. Intelligence grows from the seed of practice and persistence. You cannot just wake up, one morning and decide to be a footballer while becoming a pro that moment. You need to practice and practice hard. Coding in itself is simple. But what comes before it is hard. The planning, decomposing, architecture, algorithms, etc. Without breaking those barriers, how do you find coding to be that simple.