₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,112 members, 8,448,739 topics. Date: Monday, 20 July 2026 at 06:30 PM

Toggle theme

Devdevdev's Posts

Nairaland ForumDevdevdev's ProfileDevdevdev's Posts

1 2 3 4 5 6 7 8 9 (of 9 pages)

ProgrammingRe: Please I Need Help With This Reactjs Issue - Context Api & RTK (pictures) by Devdevdev(op): 8:47pm On Jan 18, 2023
Karleb:
Have you tried to return the eachCart variable?
I already did within the reducer function
ProgrammingRe: Please I Need Help With This Reactjs Issue - Context Api & RTK (pictures) by Devdevdev(op): 8:42pm On Jan 18, 2023
qtguru:
Why not use the debugger to enter the call stack and see if it hits the reducer, it's hard to debug at face value, is it online ?
I switched to redux tool kit and I am still having the same issue. The clearCart and removeItem functionality are working just fine. It's just the addOne that isn't. I think the issue is with the 'amount' variable and how it's state is getting altered. I am seriously confused.

ProgrammingRe: Please I Need Help With This Reactjs Issue - Context Api & RTK (pictures) by Devdevdev(op): 4:45pm On Jan 18, 2023
So no one can help me? I've seen reactjs, truthcoder and qtguru view this thread.
ProgrammingRe: Please I Need Help With This Reactjs Issue - Context Api & RTK (pictures) by Devdevdev(op): 3:21pm On Jan 18, 2023
Please someone should help me sort this out, I am having headache already, and I don't tend to stop until I've figured shit out.
ProgrammingPlease I Need Help With This Reactjs Issue - Context Api & RTK (pictures) by Devdevdev(op):
Guys I am creating this ecommerce store app using context api and useReducer for state management. I am trying to increase the quantity of each item using the "amount" variable, but for some reason it is not working. I have examined and re-examined the logic in the reducer function and it seems okay, but yet when i click on the button in my shop page, nothing happens. It doesn't event return an error. I'm really confused. Can someone look through the code and tell me where the bug is?? Thanks.

edit: I refractored the code using redux tool kit and I am still having the same issue. Omo!

ProgrammingRe: How To Be A Software Engineer In 2023. by Devdevdev(f): 7:44am On Jan 13, 2023
LittleBigDick:
Lol . You've been brainwashed by the media

Go to Anambra , you'll see Carpenters dat earn 120k within 5 days 120k * a month is how much
You def check am


I get guys way do plumbing work , they're very experienced at it and they charge not less 800k depending on the job


Dem just day use earn in dollars day deceive you


Just get a physical work then put coding as support
Lol. The average salary of a starting remote software Dev is a minimum of 500k - 1 million naira a month. And that's a gaurantee. There are lots of devs that earn 2 million a month on this nairaland. Just stop talking rubbish please.
ProgrammingRe: How To Be A Software Engineer In 2023. by Devdevdev(f): 5:45am On Jan 13, 2023
LittleBigDick:
Plumbing

Welding

Carpentry

They pay more than coding if you're very good at it
Lol. No they don't.
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 3:35am On Jan 13, 2023
Banned like the clown that he is. Spamming this thread with his slow, brute force solutions. Thanks anti-spam bot.
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 10:04pm On Jan 11, 2023
qtguru:
Please no need for insults we are all learning, else the purpose of this thread will be defeated. cry
The person I "insulted" denigrated me when I asked a simple question two months ago when I was still in the beginning stages of my learning. But now I have improved beyond my expectations and can build complex apps from scratch on my own using vanilla Js and reactJs. I've also been practicing DSAs like a mad woman.

He called me a failure because I had trouble fetching data from an API, but here he is two months later, unable to solve a simple algorithm question. How the tables have turned. He deserves all the insults.
ProgrammingRe: Ayinke93, What Did U Learn In Ur React Internship That U Couldn't On Your Own? by Devdevdev(op): 9:59pm On Jan 11, 2023
jesmond3945:
learn with problems unless you want to continue in the tutorial hell, an unending loop. Go to any freelance website look at the kind of problems they post, try and solve them with the tools you learnt. Use those solutions as your portfolio. Then you are ready to apply for jobs

look at examples I saw on a freelance site

Hi Developers
I am looking to develop a modern website to manage tickets and files with certain workflow.
Complete website including database, web services and front-end needs to be developed
I am flexible on technology selection as long as website is scalable and can handle good amount of transactions.

i have 50 screens in Figma need to convert to react.js. If u have node.js skills also will be advantage

A Website hosted on AWS cloud to Display an Employee History in an Organization.

ReadOnly:

User should be able to search for Employee Work History Through the UI portal

The details should include:

Name:

Photo:

Role:

Unique Employee Id:

email:

hire data:

total tenure:

Job type:

Current Institution:

Separate tab to show complete Work History:

Admin:

Admin should be able to add the Employee data to the database through UI

Employee:

Only search the data
Thanks for taking your time to post this. Some of the problems look interesting.

I can convert any Figma design to code using reactjs. The search filter task seems like something I would enjoy doing.

I don't know Nodejs or AWS/azure/cloud technology for now.
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 9:49pm On Jan 11, 2023
GREATIGBOMAN:
Ok.

But based on the question asked does that render my solution wrong or inefficient?
No interviewer will pass your solution, olodo. It is slow, inefficient and plain lazy for someone claiming to be an experienced programmer.

Imagine implementing your solution on a large data set. It will take your app hours to load. Mine will take milli seconds. If you can't see the difference then you are irredeemably daft.
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 8:54pm On Jan 11, 2023
GREATIGBOMAN:
By your own logic if I was to provide a solution faster than yours that would render your current solution useless?

You should note that replying you is very stressful for me... You always sound like a loud entitled Karen or a 50 year old angry lady who's now trying to make something out of her failed life.
You still don't want to accept that your solution is slow and will give you a FAIL in an interview.

Ordinary this simple algorithm question and you can't provide an efficient solution. How will you now solve harder questions efficiently?

Set awon Nairaland troll. Maybe if you invest all the time you use in trolling and insulting people into practicing DSA questions, you'll get better. You are still at level zero. Providing brute force solution to ordinary Two Sum question.

It's clear that all my hard work is paying off. The more knowledgeable I become the more I realize just how much of a quack people like you are. Continue trolling Nairaland from morning till night while I invest my time improving my coding skills.
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 8:48pm On Jan 11, 2023
qtguru:
"Premature optimization is the root of evil", the difference in speed is not that much to worry about,
The difference in speed will be much if the length of the array increases exponentially.
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 7:47pm On Jan 11, 2023
GREATIGBOMAN:
I didn't doubt you.

They're both correct.... Python is generally faster than JavaScript.

Not like yours will run exactly same time with array length of a million.
This isn't about whether python is faster than Javascript. The crux of the matter is that my solution is faster than yours. It is not about the language but about the solution. You could apply a better solution in Javascript that would compile in a faster time, that is if you swallow your ego, sit down and think of how to do that.

If you present your solution in an interview you will fail that interview woefully.

Java is way faster than python but if I implemented your solution in java it will still be slower than the implementation of my solution in python.

DSA questions don't test correctness, they test speed, memory management, efficiency and scalability. For someone who spends a lot of time insulting people that "cannot code", I thought this is something you should know by now.
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 7:39pm On Jan 11, 2023
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 7:20pm On Jan 11, 2023
I don't think it is wise to even use Javascript to solve DSAs. Javascript usually only allows you to arrive at brute force solutions, that is if you even arrive at the solution to begin with. This is because Javascript doesn't have support for a lot of data structures.

I hate python. Most of my learning time is spent heavily on Javascript, typescript and react. But I had to learn python just because of these annoying DSA questions.
ProgrammingRe: Ayinke93, What Did U Learn In Ur React Internship That U Couldn't On Your Own? by Devdevdev(op): 7:16pm On Jan 11, 2023
jesmond3945:
internship will expose you to problems that are prevalent in the real world and the techniques to solve them. Nobody will sit you down as intern and be teaching you like a schoolkid, they would give you tasks, is your job to find how to tackle them and bring results. These technologies are there to solve problems. Building personal projects you are not actually solving real world problems for today's business, you are solving your own problems. Thats why freelancing is very good. Are you freelancing or volunteering?
Give me examples of these sorts of "real world" problems.

I wrote my first "Hello world" in September. I am still learning. I have not reached the level to freelance or apply for a job. Plus I am a ruthless self critic and will only consider myself ready when I can build or replicate any application I can think of using the technologies I have learned. That is why I am asking this question so I can know other areas to channel my learning.
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 7:00pm On Jan 11, 2023
GREATIGBOMAN:
Post it somewhere where u can share your answer
I tried to copy the link to my solution but I didn't find it. It is my first time using the site. So I took a screenshot of my solution. As you can see, mine compiled in 1.006 seconds, while yours compiled in 1.77 secs. This was just an array of length 4. If it was an array of 1 million numbers, it would literally take hours for yours to compile because you are iterating over the numbers linearly and comparing them one by one, whereas my solution will take seconds.

If you doubt me, try increasing the array length and compare both our solutions.

ProgrammingRe: How To Be A Software Engineer In 2023. by Devdevdev(f): 2:26pm On Jan 11, 2023
Godfullsam:
It looks like brain don't want to carry this programming stuff.

May be because I am self learning, or wrong approach or I have not been able to lay hands on the right material.
What language are you learning and what area are you having problems? Maybe I can help.
ProgrammingRe: I Want To Work At Google: Journey Of A Software Developer by Devdevdev(f): 2:22pm On Jan 11, 2023
AlchemyOfCodes:
Read another book on react...didn't finish it. The best book on react out there is the "The road to react"... Already finished it twice..but I still know nothing. Hopefully when I start building projects things will fall in place.

Still not finished the head first java. I had to stop when I gut to the GUI aspect. I guess I already know enough write some codes on DSA.
Any book on react that wasn't written at the end of last year would be very outdated by now. Reading books on frameworks is dumb in my opinion. You'd be stuck investing time in tools and methods that's are already deprecated. Just read the react documentation. It gets updated everyday and has everything you need.
ProgrammingRe: Algorithm And Data Structure Study Section by Devdevdev(f): 2:08pm On Jan 11, 2023
GREATIGBOMAN:
checkout my solution:

https://www.jdoodle.com/ia/BZ8
Your solution is a brute Force O of n squared solution that has you iterating over every element in the array. What if you have 1 million numbers in the array? This will take hours to compute.

The faster solution would be something like this:

I'm using python here.

Create a function. I'll call it findTwoSum
say the array of numbers is defined as myNumbers
And our Target value is defined as target

def find_Two_Sum() {

Create an empty dictionary and give it a name,

myDict = {}

for index, number in enumerate(myNumbers):
difference = target - number
if difference in myDict:
return [myDict[difference], index]
return myDict[number] = index
}
ProgrammingAyinke93, What Did U Learn In Ur React Internship That U Couldn't On Your Own? by Devdevdev(op): 1:46pm On Jan 11, 2023
This thread was created as a direct question to Ayinke93, but anyone else who wants to contribute can.

What inspired this question is the quote below, especially the bolded:

Ayinke93:
This is a very solid thread and the op couldn't have written it better. To add, I'll recommend searching for internships once you are a bit proficient with html, CSS and JavaScript. Internships will open your eyes to what you'll see in a real work environment, something you really can't get straight out of an Udemy course. I left my full time job to intern around July this year as a python dev, wrote my first line of html around August, and my knowledge of React now is a way above beginner level at this stage and I'm considering starting to apply to real dev jobs by January. That's barely 5 months into my web development journey. That's the level of speed and growth internships will afford you. I know it's not easy to get internships, but just keep searching.
Also, practice everyday. code everyday like a mad person. Trust me it'll pay off. And side note, if you are learning react, checkout net ninja on Udemy. I think that's easily the best react course on the internet and trust me, I've tried quite a good number.
Good luck everyone.
Personally, I've also reached a level of proficiency in html, css, JavaScript, typescript and react. I've also learned complex state management with Redux(RTK), and I'm currently focused on building projects to add to my portfolio. I'm currently in my 4th month of learning. Everyday I make sure to add more knowledge to my reservoir as well as to better my skills. I devote a minimum of 12 hours daily learning to code.

During this period of learning, I've consumed courses, read documentation, practiced along on complex projects and studied other people's codes.

My question is, what exactly do the internships teach that I won't learn on my own, besides the experience of working with people?

Are the codes in companies different from all the codes I've seen? Is the logic behind the functionality of their apps more advanced than anything I've seen? Are they using a different typescript, react or redux different from the ones I've been learning. This is a serious question and I would appreciate answers.

I understand an internship can get your foot in the door and give you working experience but that's different from the question in asking.
ProgrammingFlexbox Is Underrated. Here's The Skeleton Of An Image Gallery I Created. by Devdevdev(op):
FlexBox is so underrated. I used to underrate it initially and only use it in styling my navbar, until I understood how useful it can be.

I used to be a grid fangirl but now I have ported to FlexBox. It does literally everything grid does and it does it better and easier.

This is a skeleton of an image gallery I'm working on and I used only flexbox
ProgrammingRe: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(op): 8:58pm On Nov 16, 2022
qtguru, I just started reading the book. I'll spend the night reading it amd I'll continue tomorrow. Thanks for the recommendation.

ProgrammingRe: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(op): 6:25am On Nov 16, 2022
qtguru:
You're jumping too fast, you don't even know the basics of JS before jumping into Redux. JavaScript is not just syntax, but a lot of other API like DOM, and stuff.

Use a good book.

Not all Front-end jobs are about consuming API, you will be told to create UI Custom Components or debug some frameworks, these are things not taught on freecodecamp and the like.

There's a lot to know, Browser Paint Cycle, Prototype Inheritance,etc

Use a book o, I've worked with various companies and the only saving grace for me has been the Core JS foundation, every framework magic still resolves around JS, even React.

JSX is not supposed to be possible, but something parses it and constructs it into DOM via JavaScript.

JavaScript is massive, other than the syntax, there are a ton of APIs like WebGL, Audio, Video, Canvas, WebWorkers, Storage, Network, and HID the list is long and gets longer.

I work with Svelte for a Gas company in the US, and the code here is insane, we've built a lot of custom UI components draggable widgets, Canvas that renders Shape from an exported C++ Desktop app for Gas Diagrams.

Don't learn Redux, focus on JS first.

I usually don't tell people to read JS first because I know people want quick cash, but if you want to be a seasoned dev, learn JS well. There are 24 Chapters in this book.

Nothing stops you from reading a chapter a day or for 2 days.

I am writing a Shopify Theme and it's pure JavaScript with customElements, that is another API sef I didn't mention, you see how crazy JS is, it keeps expanding.
Thank you, I will read the book.
ProgrammingRe: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(op): 9:11pm On Nov 15, 2022
Hannania:
For just this API render, this will do. When you learn Redux(using the reduxToolkit library ), try and make use of Axios. It's way neater.
Also, try and use Eslint and style linters In your development environment. It will keep you In check for best practices.

Management with Redux will make your CV stand out amongst applicants.
Thanks. I already planned to start learning Redux this week..
ProgrammingRe: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(op): 6:24pm On Nov 15, 2022
GREATIGBOMAN:
He's right and u are wrong Mrs dumbSkull.

imagine calling ur fellow dummies to tell him he's wrong

grin
This returned a warning error though. There should have been a return before the div that contains the key.
ProgrammingRe: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(op): 6:23pm On Nov 15, 2022
qtguru:
people harsh for this section shocked,
niel63:
I swear. Me sef dey thread with plenty carefulness these days. Omo, blood dey hot wella.
I'll rather get insulted in the course of getting knowledge then remain quiet and stay ignorant.

I actually don't care if I'm insulted. I'll keep asking questions.
ProgrammingRe: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(op): 4:38pm On Nov 15, 2022
GREATIGBOMAN:
He's right and u are wrong Mrs dumbSkull.

imagine calling ur fellow dummies to tell him he's wrong

grin
Okay, I was wrong. I apologise to ChukwuEbuka65 and to you. I've learned something today. Thanks for the screenshot
ProgrammingRe: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(op): 3:47pm On Nov 15, 2022
chukwuebuka65:
Ok but the lady in question is not ready to learn. She didn’t even try what I suggested to her. She just rush to come and insult me. The journey of programming is a long one. I wonder how she will get far with this attitude.
Can you code what you suggested using the API link in the screenshot?

If you use what you suggested and it works then I owe you 5k.
ProgrammingRe: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(op): 3:40pm On Nov 15, 2022
GREATIGBOMAN:
grin grin grin


I can't believe u don't like it when someone does detective work on u. wink
Detective lol. You aren't half as smart as you think you are. Rest abeg.
ProgrammingRe: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(op): 3:37pm On Nov 15, 2022
GREATIGBOMAN:
No Mr transgendered.


ur code and the answer here looks same.

https://stackoverflow.com/questions/66507362/react-async-and-await-not-working-with-fetch


Also... there's nothing wrong with using google as a Dev
It's obvious you are a fool. How does any answer in that link resemble mine? You aren't just a fool you are clearly one with an eye defect.

What about the loading state? How did I learn to include a loading state in fetch if I didn't know fetch already?

Why are you so pained that I rewrote my code using something you said I couldn't use? Lol.

Abeg shift make I see road.

1 2 3 4 5 6 7 8 9 (of 9 pages)