Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,412 members, 7,819,477 topics. Date: Monday, 06 May 2024 at 04:59 PM

The Hardest Topic You Encountered While Learning Any Programming Language? - Programming (4) - Nairaland

Nairaland Forum / Science/Technology / Programming / The Hardest Topic You Encountered While Learning Any Programming Language? (14877 Views)

Request For Any Programming Courses Let Me Provide Them For Yu / What Was The Hardest Language You've Learnt / Learn Any Programming Language At Your Convenient Time- Beginner To Advance (2) (3) (4)

(1) (2) (3) (4) (5) (Reply) (Go Down)

Re: The Hardest Topic You Encountered While Learning Any Programming Language? by Etinosa1234: 4:10am On Nov 28, 2020
cixak95211:
99.99% of the comments so far are barely scratching the surface of programming. like 10% of programming

Nobody mentioned skull-cracking algos and (data structures) like
dijktra's algorithm, lee's algorithm, shortest path in a maze,
BFS and DFS, kruskal and kadane etc . . lol

3 Likes

Re: The Hardest Topic You Encountered While Learning Any Programming Language? by COdeGenesis: 4:45am On Nov 28, 2020
cixak95211:
99.99% of the comments so far are barely scratching the surface of programming. like 10% of programming

Nobody mentioned skull-cracking algos and (data structures) like
dijktra's algorithm, lee's algorithm, shortest path in a maze,
BFS and DFS, kruskal and kadane etc . . lol

What the fk are these ones? Probably advanced ones and barely 10% of people use them
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by COdeGenesis: 4:47am On Nov 28, 2020
XXLDICK:

My advice is to learn a better programming language. PHP is dying
How is PHP dying biko? Almost 9 in 10 websites are built on PHP

So the above was my initial comment but from the look of things people are going Javascript now i.e Nodejs
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by mayorkent(m): 4:55am On Nov 28, 2020
Mine is OOP in Python ,
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by Excallibur(m): 4:58am On Nov 28, 2020
Hamman1:
what are these ones saying?.. Lol
grin
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by perrydolla(f): 5:25am On Nov 28, 2020
Let's learn!!
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by cixak95211: 5:52am On Nov 28, 2020
COdeGenesis:


What the fk are these ones? Probably advanced ones and barely 10% of people use them

LOL . . . hahaha, thats what you feel , right?
Remember we have O Level, then Bachelors, then PhD and , , , u know d rest
There are levels to this.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by Brunicekid(m): 5:54am On Nov 28, 2020
Programming Language...Who go teach me programming language?!
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by Hinokami: 7:10am On Nov 28, 2020
Corlahworleh:
Any programmer in kano that can be mentor for me

Not a programmer here but into Data Analysis..If you are interested.

1 Like

Re: The Hardest Topic You Encountered While Learning Any Programming Language? by Karleb(m): 7:32am On Nov 28, 2020
XXLDICK:
My advice is to learn a better programming language. PHP is dying

gringringrin
Oga, where did you hear that rumour?
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by Karleb(m): 7:36am On Nov 28, 2020
COdeGenesis:


What the fk are these ones? Probably advanced ones and barely 10% of people use them

All those things he mentioned are simple things with big big names.

Bellman-ford's algorithm, Binary Search Tree, Traveling Salesman Problem, Minimum Spanning Tree, Big-O, Heaps, Hash etc, etc, etc. grin

1 Like

Re: The Hardest Topic You Encountered While Learning Any Programming Language? by Karleb(m): 7:39am On Nov 28, 2020
cixak95211:


LOL . . . hahaha, thats what you feel , right?
Remember we have O Level, then Bachelors, then PhD and , , , u know d rest
There are levels to this.

Bros no lie, when was the last time you wrote your own binary search algorithm for a client?
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by dometome: 8:02am On Nov 28, 2020
peacettw:
Good topic..
Mine is global and local variable. Still confusing till date.

Not also feeling the numpy, matplotlib etc syntax... I just feel it is just too complicated for no just cause.

And why so many programming languages? It is so confusing. Almost like having different English languages... I don't just get it. Why not stick to one language that can address all needs?
local and global variable aka variable scope, is like toilet, the one in your house is only accessible by you, not your neighbors, so also the toilets in their various houses, but the public toilet in the street or town is accessible to all of you. So the local variables are the toilets in your house, while the global variable is like the public toilet. You cannot just run into your neighbor's house and use his toilet, do you? But you can use the public toilet whenever you want, not so?
So any variable inside a function is accessible to only that function, not the neighboring function. But the global variable is accessible to all functions in the script. What language are you learning please? It is JavaScript I am learning.

3 Likes

Re: The Hardest Topic You Encountered While Learning Any Programming Language? by pman06(m): 8:42am On Nov 28, 2020
mayorkent:
Mine is OOP in Python ,

If you ever got the concept of decorators in python at first try, then you are a genius.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by frankfab(m): 9:20am On Nov 28, 2020
Mertedesigns:
These are the exact challenges I'm facing. Have you mastered them now?

I'm still struggling with some of them. I would have master them if don't lack of consistency.

2 Likes

Re: The Hardest Topic You Encountered While Learning Any Programming Language? by peacettw: 9:34am On Nov 28, 2020
dometome:
local and global variable aka variable scope, is like toilet, the one in your house is only accessible by you, not your neighbors, so also the toilets in their various houses, but the public toilet in the street or town is accessible to all of you. So the local variables are the toilets in your house, while the global variable is like the public toilet. You cannot just run into your neighbor's house and use his toilet, do you? But you can use the public toilet whenever you want, not so?
So any variable inside a function is accessible to only that function, not the neighboring function. But the global variable is accessible to all functions in the script. What language are you learning please? It is JavaScript I am learning.

Thanks a lot. That part of the explanation has been quite clear to me. But then you see some questions, and when you try to answer it with the same logic, the answer turns out to be wrong. Will post some of those questions here.

I am learning python. I have my sights on being a data scientist. So learning both python and R


Found some questions. Kindly explain the outputs

#Programming language is python

a = 1

def f():

print(a)



def g():

a = 2

print(a)



def h():

global a

a = 3

print(a)



print('global : ',a)
f()

print('global : ',a)
g()

print('global : ',a)
h()

print('global : ',a)
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by peacettw: 9:41am On Nov 28, 2020
cixak95211:
99.99% of the comments so far are barely scratching the surface of programming. like 10% of programming

Nobody mentioned skull-cracking algos and (data structures) like
dijktra's algorithm, lee's algorithm, shortest path in a maze,
BFS and DFS, kruskal and kadane etc . . lol

And whilst you bask on your self-assigned throne, be humble enough to remember that you started out on the same path as the newbies.

1 Like

Re: The Hardest Topic You Encountered While Learning Any Programming Language? by NarnieAceTech: 12:06pm On Nov 28, 2020
XXLDICK:


you have enough time to waste sha. you are learning dying technologies. who still uses jquery? PHP?

Please, fill me in. What am I missing out on?
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by dometome: 1:51pm On Nov 28, 2020
peacettw:


Thanks a lot. That part of the explanation has been quite clear to me. But then you see some questions, and when you try to answer it with the same logic, the answer turns out to be wrong. Will post some of those questions here.

I am learning python. I have my sights on being a data scientist. So learning both python and R


Found some questions. Kindly explain the outputs

#Programming language is python

a = 1

def f():

print(a)



def g():

a = 2

print(a)



def h():

global a

a = 3

print(a)



print('global : ',a)
f()

print('global : ',a)
g()

print('global : ',a)
h()

print('global : ',a)
I am just trying to let you visualize the situation using real life objects.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by peacettw: 2:23pm On Nov 28, 2020
dometome:
I am just trying to let you visualize the situation using real life objects.

I know. But the questions I see with their output don't strictly follow your analogy. Hence my confusion
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by themaestro08(m): 2:56pm On Nov 28, 2020
sanmtiago:
My question is how lucrative is programming as a career in Nigeria lucrative
Co ask.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by Najdorf: 4:20pm On Nov 28, 2020
sammysmiles:
We that deal with further maths and physics,,,, I don't think computer programming is as difficult as those...
You're not wrong.

I think one of the greatest appeals of programming and why we have so many people wanting to enter the field is how easy it is to get into/learn compared to many other fields.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by cixak95211: 4:20pm On Nov 28, 2020
Karleb:


Bros no lie, when was the last time you wrote your own binary search algorithm for a client?


your question is akin to asking "when last did you see somebody drive a McLaren . . . "
while the most expensive car in your neck of woods might be a Mercedes Benz,
in some areas, that would be the cheapest car you'd spot
You get the idea.
I used BFS and DFS a couple of months ago for a mobile e-commerce app.
You're free to ask me why.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by dometome: 4:32pm On Nov 28, 2020
peacettw:


I know. But the questions I see with their output don't strictly follow your analogy. Hence my confusion
in JavaScript, if you declare a variable outside a function, every function in that script have access to that variable, but do not have any access to variables that are declared inside another function. But if a function is declared in that same function, it still has access to variables declared in that function. It is very simple. I think you should switch over to JavaScript, the language is simpler than python. After you learn python. If you do that, learning python will become to you, a breeze. The only downside is you must learn HTML, (one week) CSS(one month) JavaScript (3 months). If you can, please do It, but if you can't, then focus hard on it. You will overcome. I switched programming language, and I don't regret it. They are all the same thing, just tiny differences here and there.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by Corlahworleh(m): 4:38pm On Nov 28, 2020
I am. How can I get in touch with you?
Hinokami:


Not a programmer here but into Data Analysis..If you are interested.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by peacettw: 4:41pm On Nov 28, 2020
dometome:
in JavaScript, if you declare a variable outside a function, every function in that script have access to that variable, but do not have any access to variables that are declared inside another function. But if a function is declared in that same function, it still has access to variables declared in that function. It is very simple. I think you should switch over to JavaScript, the language is simpler than python. After you learn python. If you do that, learning python will become to you, a breeze. The only downside is you must learn HTML, (one week) CSS(one month) JavaScript (3 months). If you can, please do It, but if you can't, then focus hard on it. You will overcome. I switched programming language, and I don't regret it. They are all the same thing, just tiny differences here and there.

Dabbled in html/css/javascript years back... Kinda quit when learning javascript. Not interested in web development. Want to be a data scientist hence my interest in python/R programming
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by dometome: 4:48pm On Nov 28, 2020
peacettw:


Dabbled in html/css/javascript years back... Kinda quit when learning javascript. Not interested in web development. Want to be a data scientist hence my interest in python/R programming
it is not about being a web developer, it about learning programming. The same skills you have in JavaScript is what you will need even in C++. That is the angle I am coming from
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by peacettw: 4:51pm On Nov 28, 2020
dometome:
it is not about being a web developer, it about learning programming. The same skills you have in JavaScript is what you will need even in C++. That is the angle I am coming from

Oh. Online, an overwhelming majority of sites believe that python is the easiest programming language to learn for beginners

1 Like

Re: The Hardest Topic You Encountered While Learning Any Programming Language? by dometome: 5:15pm On Nov 28, 2020
peacettw:


Oh. Online, an overwhelming majority of sites believe that python is the easiest programming language to learn for beginners
haha. Yeah to an extent, but sometimes it becomes too difficult, and some people just give up, so instead of doing so, just switch languages. That is all I am saying.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by SonyaSpence: 5:15pm On Nov 28, 2020
Regex:


It took me few hours to wrap my head around that THIS keyword in Javascript. I don't know how it happened, but I did it.

The hardest topic for me which I'm still trying to wrap my head around is OOP in python, and regex.

Trust me, when you get the jinx of OOP in python, you'll see how easy it is.

First, ensure you understand the basics of the OOP concept very well. Then you can move to considering OOP examples in syntax. Then Practice! - 2X

OOP, I mastered it when I switched to GUI python programming with Kivy.
Re: The Hardest Topic You Encountered While Learning Any Programming Language? by dometome: 5:17pm On Nov 28, 2020
COdeGenesis:

How is PHP dying biko? Almost 9 in 10 websites are built on PHP

So the above was my initial comment but from the look of things people are going Javascript now i.e Nodejs
i dont know where they get that from. PHP is actually easy to learn

1 Like

Re: The Hardest Topic You Encountered While Learning Any Programming Language? by sanmtiago(m): 5:50pm On Nov 28, 2020
themaestro08:

Co ask.
I’m asking

(1) (2) (3) (4) (5) (Reply)

Where Is The Best Place To Learn Programming Or Artificial Intelligence? / How To Build And Design A Mobile Application Like 2go, Whatsapp, Mixit / Can A Nigeria Programmer Afford A Range Rover Sport?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 42
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.