₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,964 members, 8,447,985 topics. Date: Sunday, 19 July 2026 at 12:59 PM

Toggle theme

Fourpockets's Posts

Nairaland ForumFourpockets's ProfileFourpockets's Posts

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

ProgrammingRe: How Can I Only Select One Component To Use A Function On It (react) with picture by Fourpockets(op): 7:12pm On Aug 18, 2022
Rgade:
This is from frontend mentor right.
I’ve done the project myself and yeah, it wasn’t easy.
I ran into a similar challenge and what I did to solve it was to create a Reply component.
And to display the replies for a particular comment, I would map the array containing it’s replies returning that Reply component for each reply, while passing each individual reply(object) into the Reply component as it’s prop.
This way all the local states for each reply would be unique to it (like the state that controls if the reply input is showing or not in this case).
Because the problem here is that you have one state controlling all your reply inputs.

This method should also be the same for the comments. A Comment component that all comments in the comments array will be passed into.
Yeah, it's from frontend mentor cool and I've fixed it already
Thanks for the input
ProgrammingRe: How Can I Only Select One Component To Use A Function On It (react) with picture by Fourpockets(op): 7:10pm On Aug 18, 2022
Fourpockets:
when i click on the reply button, it affects all the components instead of just one. how can i achieve it to only affect the component i clicked instead of all similar components

note: what im trying to achieve is an interactive comment section
I fixed it, the problem was that I tapped all my components in a usecontext hook and the variable I stored it in was in that hook
ProgrammingRe: So Hard To Female Software Programmers by Fourpockets: 6:49pm On Aug 18, 2022
InfinityFabric:
I already presumed you're a male simping for females duh!


No, everywhere they go things get water down to their level or thinking. And for some reason you think Med is the hardest haha.
Med is for average people tho.


I presumed you're male duh! Females are in family, celebrity gossip section etc.

Please who's stopping females in 1993 to code ? Who ?


Female in tech is like a male teacher in Kindergarten or Nursing. We only hear cries when it doesn't benefit female.
This is what happens when u make women your mental point of origin.

I've also tried training men and women, they're not as resilient as men. More men tried, more failed. Few women tried almost all failed.
That's the angle you're NOT looking at.

Science & Tech is historically a male-space, women should come and see if they fit in NOT we advertising them to come in, because they're not needed.
They'll just mess up the space like everything else.

Again in 2022, what's stopping the? With all these gynocentric nonsense: Girl code, Girls this Girl That that doesn't do more than Python anyways.
When will you root for boys who are the majority of willing participant tho ?
Calling women "females" all the time sound uncomfortable in my ears
ProgrammingRe: How Can I Only Select One Component To Use A Function On It (react) with picture by Fourpockets(op): 8:00pm On Aug 17, 2022
Phantaminum1:
First give all the comments an id, then change the changeCommet to a ternary expression. Like
changeCommet(() => {
return (id === comment.id ? event.target.value : " " )
})
Would I have to manually give them IDs, since it's supposed to be a comment section and dynamic

Isn't there a react hook I can use for it
ProgrammingRe: So Hard To Female Software Programmers by Fourpockets: 7:37pm On Aug 17, 2022
airsaylongcome:
Military doesn't lower standards for women. They set different standards because the male and the female bodies are different in size. Put medicine on the table. Or engineering. Are female surgeons less competent than their male counterparts? Do female surgeons get tested differently from their male colleagues?
Probably not, but he was kind of making a point either way
ProgrammingRe: So Hard To Female Software Programmers by Fourpockets: 7:20pm On Aug 17, 2022
airsaylongcome:
I have some screenshots from those threads and I have purposely left out the monikers so it doesn't seem like I am throwing them under the bus
There are a lot of fields that reduces the standard for women so more can get in eg military even I Nigeria. So I can't say whether he's wrong or correct cos I don't have any experience in tech, but this isn't really a new thing.
ProgrammingRe: So Hard To Female Software Programmers by Fourpockets: 7:15pm On Aug 17, 2022
qtguru:
in Andela we had quite alot, and I worked with one, stubborn child but very smart. In Interswitch we had like 6 or so and those devs na all Java ladies and one C.

Ladies dey but needs more numbers.
I disagree boss, we need more qualified people (men or women, young or old) who know what they're doing.
Having more "women in tech" won't make the Nigeria tech community as competitive as those in India, but having more qualified people that can think logically will

Just my opinion
ProgrammingRe: Is It Possible To Have This Much Experience Before Age 17 by Fourpockets: 7:12pm On Aug 17, 2022
airsaylongcome:
Why should he know how to do it without googling it? 99% of Development is about knowing how to Google the information needed
If anyone can't build a simple image slider without Google, I think you should evaluate your career in tech and ask yourself if it is for you
BusinessRe: Upwork Thread (Questions/Help/Advice) by Fourpockets: 4:42pm On Aug 17, 2022
ahmedsaniadamu:
CMS like WordPress has more job opportunities than coding from scratch
Yeah, I registered yesterday and decided to see how things are, Omo wordpress Devs make money on Upwork o

I just want to finish learning react and start learning wordpress themes in at least 2 weeks time...
I've already downloaded bitnami for local installation and setup
ProgrammingRe: How Can I Only Select One Component To Use A Function On It (react) with picture by Fourpockets(op): 4:39pm On Aug 17, 2022
.
ProgrammingRe: Is It Possible To Have This Much Experience Before Age 17 by Fourpockets: 4:35pm On Aug 17, 2022
Tunechi5:
I saw this on Twitter
Saw it too, it's not possible
Ask him to make something custom like an image slider without googling it and that's how you know real one.

why would someone be learning more than two languages at that age, master one, you don't need to learn all
ProgrammingRe: 17 Year Old aspiring Frontend Developer / Product Designer by Fourpockets: 4:21pm On Aug 17, 2022
dxsu:
Him b boss na grin
And him go dey frustrate person with him posts, help person dem nor go help, giveaway dem nor go do...LIFE
i even run racing games on my laptop sometimes(asphalt cool and i dont have any performance issues with it
ProgrammingHow Can I Only Select One Component To Use A Function On It (react) with picture by Fourpockets(op): 4:16pm On Aug 17, 2022
when i click on the reply button, it affects all the components instead of just one. how can i achieve it to only affect the component i clicked instead of all similar components

note: what im trying to achieve is an interactive comment section

ProgrammingRe: So Hard To Female Software Programmers by Fourpockets: 2:53pm On Aug 17, 2022
airsaylongcome:
So a lot of people seem agitated about my use of the word "misogyny". The below outlines my use of the word.

I have seen to many threads were makes whine that ladies in tech (in Nigeria at least) got their roles because they are females and not necessarily because they were competent. I have read loads of comments here were people moan about female-focused boot camps and the so-called advantages females get as regards empowering them.

Bratislava, please do you remember the thread(s) that were "trending" on this programming section were prominent monikers were suggesting that females in tech get preferential treatment because they were female
Please stop misleading people, there are a lot of Nigerian female tech influencers I follow on Twitter, I don't know where you got your source from

And as for female only bootcamps
I think that's stupid cos isn't that discrimination first of all
ProgrammingRe: 17 Year Old aspiring Frontend Developer / Product Designer by Fourpockets: 2:50pm On Aug 17, 2022
tensazangetsu20:
Don't waste your money. Even with Linux installed the laptop is useless.
Why are you misleading people, I'm using a hp 4gb laptop with windows installed and nothing is wrong with it
ProgrammingRe: Why Is Everyone Rushing Into Programming? by Fourpockets: 12:38pm On Aug 17, 2022
chukwuebuka65:
Can u believe that about 60k students registered for ALX SE program for the august cohort. And during the onboarding yesterday, a student of the program was invited to talk to us. Could you believe that the guy was a BANKER currently at a job. A banker wants to leave banking for programming! I even heard some medical students also enrolled in the program. These guys think programming is beans. Anyways, let’s see how it goes.
That's how I saw one 17 year old Dev here today, he mentioned all these stacks and I'm like why would anyone learn more than one programming language, I checked his portfolio on GitHub and it was too mediocre for someone who can learn all those technologies...
BusinessRe: Upwork Thread (Questions/Help/Advice) by Fourpockets: 11:50am On Aug 17, 2022
ahmedsaniadamu:
me too. becouse nowadays platform development is more than coding from scratch
What do you mean by that
ProgrammingRe: So Hard To Female Software Programmers by Fourpockets: 11:29am On Aug 17, 2022
GREATIGBOMAN:
Hmmm... wonder the planet you're in.

I've never seen a Tech sis discrimated against.

People usually praise them for their efforts no matter how little...

At second part...


You're really in another planet bro lol...


Female devs disguising as males?

As how ? and for where lol ?
I was shocked, there are a lot of female tech influencers on twitter, where did he get that idea from ?
ProgrammingRe: So Hard To Female Software Programmers by Fourpockets: 11:27am On Aug 17, 2022
airsaylongcome:
It's not hard. There are loads of them. And very competent. But the misogyny in the field has compelled them to camouflage. Loads of them on online forums disguise as male so they don't get discriminated against
Misogyny ? Really undecided
ProgrammingRe: My Journey Into Shopify Development ( Theme ) by Fourpockets: 3:21pm On Aug 15, 2022
qtguru:
Are you are a programmer ?

https://www.youtube.com/watch?v=dhiMRbmQg7o
Yes, and I'm currently learning react
ProgrammingRe: My Journey Into Shopify Development ( Theme ) by Fourpockets: 1:44pm On Aug 15, 2022
qtguru:
WIP

I migrated to Manifest Version 3 and updated some code. it's still not working.

Why ?

Has to do with chrome.runtime failing, so someone at SO mentioned injecting the script into the dom. it's all confusing because naturally a ContentScript has access to the DOM, and chrome.runtime.*, it failing makes no sense. cry
Good afternoon, I was thinking of learning wordpress for freelancing on Upwork (frontend), do you know where I can get good source about wordpress
ProgrammingRe: Let’s Discuss Git/Github Functionalities And Issues Here. by Fourpockets: 1:40pm On Aug 15, 2022
Mich45:
I think irreversible or very critical operations in git should have a prompt that explains what the user is about to do, the implications, and a confirmation if they would like to continue or not.

I recently did 'git reset --hard' because I was having problems pushing my work to Github. Comrades, that's how I lost my hard-written technical articles. Articles that took days and nights. I can't cry because the tears aren't even coming.

I have tried using recovery softwares to get back the files but I can't afford those for now. My advice so you don't end up like me? NEVER USE A GIT COMMAND YOU DO NOT FULLY UNDERSTAND WHAT IT DOES.
I hate commands, I'd rather use GUI
That's why I don't use git, I just drag and drop my project/files in the GitHub website
Nairaland GeneralRe: Add 20 more character by Fourpockets: 9:13am On Aug 15, 2022
nairastatesdot:
Hello Frontend programmers and designers in the house, this is for anyone who would like to be involved with the development of a Nigerian social media platform.

https://nairastates.com Under development

The Front-end will be HTML, CSS, Bootstrap, javaScript, jQuery, jQuery AJAX.

If you are interested and would like to be invited to the GitHub Repo, please send an email to nairastatesdotcom@gmail.com
Your whole website reeks of bootstrap
ProgrammingRe: What Was The Hardest Language You've Learnt by Fourpockets: 9:00pm On Aug 14, 2022
iFlare:
Mine is: css

I started with python and believe me it was the easiest. After python I switched to Java. Now I've made up my mind to be full stack dev. I'm done with html, I got comfortable with all the tags in a week. Done JavaScript though I was learning css before I went to js. Css has been a pain in my ass, the worst are flex and grid. I can't get it right. They said js is harder than css, but it was smooth, tho verbose. I've started react and I feel more comfortable learning it. Css dey gimme fear aswear.

What about you?
When I started learning computer science from Harvard cs50, we started with scratch which was easy to C.
C is the hardest language ever(low language not assembly)
ProgrammingRe: Npm Run Build Problem (react) by Fourpockets(op): 2:42pm On Aug 14, 2022
Rgade:
You still can’t read it? As in you don’t understand it’s content? Well you shouldn’t be able to. You shouldn’t be concerned about your [b] bundle.js [/b]file as long as your app’s working fine.
Nah you can’t just upload the file for hosting, you need the entire build folder for that.
Just to be clear,
By bundle.js do you mean these Js files

ProgrammingRe: Npm Run Build Problem (react) by Fourpockets(op): 12:36pm On Aug 14, 2022
Qtrpst4:
If you have already started then npm start
But if you are yet to start
(a) "npx create-react-app <the name of your project>
(b) cd <your project name>
(c) npm start
I've done those already and finished building the react app. It's remaining for me to deploy it or upload it to GitHub
ProgrammingRe: Npm Run Build Problem (react) by Fourpockets(op): 11:45am On Aug 14, 2022
Rgade:
After building your react app you won’t find your compiled Js in the index.html file as this would always be empty. Your compiled react app IS the bundle.js file.
If you’re trying to see what your react app looks like after it’s been compiled, don’t bother; it’s not a bunch of html tags and JS, it’s a gigantic unreadable file.
Oh, I saw the file and opened it in my browser but it still can't read it, what if I want to host the file?, Is that the only file I'd have to upload ?
BusinessRe: Upwork Thread (Questions/Help/Advice) by Fourpockets: 11:57pm On Aug 13, 2022
I'm thinking of learning wordpress website development for Upwork
ProgrammingRe: Npm Run Build Problem (react) by Fourpockets(op): 11:41pm On Aug 13, 2022
Qtrpst4:
What do you want to do?
Have you done react before or this is your first
I want to compile my react app
ProgrammingNpm Run Build Problem (react) by Fourpockets(op): 10:20pm On Aug 13, 2022
I want to compile my react(jsx) into html that the browser can read, but even after running the "npm run build" command, the index.html file in the build folder is still empty after I open it in my browser

Please how can I compile my react app undecided cry





Also is it just me or does nairaland look different
EventsRe: My Ugly Experience At A Friend's Party by Fourpockets: 11:03am On Aug 08, 2022
Chloraseptic:
People saying inferiority complex really don't understand what it feels like to be broke.

There's no way you won't feel inferior wearing less quality clothes and no money in the pocket to a gathering of extravaganza lifestyle people.

Most of these people saying inferiority complex wouldn't even attend the party in the first place.

The fact that OP could attend the party shows how confident he could be.

When you are really really broke no amount of faked confidence you have in you, you would still feel inferior one way or another
You hit the nail, 100% solid point
There's nothing like inferiority complex it's just basic human nature
ProgrammingRe: Devs, How True Is This Funny Comment I Heard About CSS And React by Fourpockets: 11:41pm On Aug 07, 2022
TastyFriedPussy:
I was watching a video on YouTube about react JS and along the line, the guy was like.

now, we can all agree to hate CSS, but react will make you hate it even more, when you try to style something on your own grin

How true is this? grin
I disagree, CSS is actually perfect with react. If you've built a page with almost 1000 lines of CSS code, you'd understand

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