Peterincredible's Posts
Nairaland Forum › Peterincredible's Profile › Peterincredible's Posts
1 2 3 4 5 6 7 8 ... 21 22 23 24 25 26 27 28 29 (of 31 pages)
all right thank you all for your contributions and responses my able programmers and for those who is facing this problem or who will later come across it in feature this is the solution: most database returns a flat array eg([1,2,3,4,5,6]) when you query it looking for a set of data irrespective of the database u are using eg(mongodb,mysql,mssql)so now for you to display it on the webpage base on their parent, child structure(some call it tree or nested structure) you have to find a way to convert it to a nested array eg[{name:"peter",parent:"segun" children:[...]},{name:"shabba",parent:"null",children[...]},{name:"alex",parent:null},...] so that the parent will be at the top and the the children will be a another array in the object called children so when you finally convert it from flat to nested array you can then use a recursive function to display it on the htm as for me using reactjs i used a "recursive component" that is a component that calls itself to display it on the view so in summery for you to be able to solve this problem their are to major challange you have to face 1.converting flat array to nested array 2.displaying it on the front page using recursion function or recursive component and you are done i hope i have save someone the headach i passed through anyway thanks once again and if you still need to c some code about it google it on stackoverflow you will see some code about it straight up bye |
ogunsinamayowa:yep thanks boss i have to do some stackoverflowing and it finally did it thanks for your reply it helped me alot |
Ejiod:may i ask as for the sql is it mysql,mssql, postgresql or oracle you use i will like to know cause now am learning mysql coming from pre knowledge of mongodb |
Ejiod:where you working then when self training yourself and how many hours do you spend a day after work practicing |
IamTeen:hmmm not sure sha but i think i have seen some little tutorial about it in youtube using django and doing the threaded/nested commenting system maybe you need to go check it out but as for nodejs i havent seen any relevant tutorial about that |
hi fellow programmers i am working on a blog using reactjs and nodejs as the server and using mongoose (mongodb) as the database but am having a serious challenge am stuck at the creating the comment system i dont want to create this normal comment system just like the one nairaland is using i want to make it a nested/threaded comment system in which it will look like a tree or hirarchy in which the parent comment will be on top and the child comment will be under the parent and it will go down the three like that but the problem now is that i have researched for it on stackoverflow and mongodb website but it is just not clicking into my head and i am just confuse on how to go about it the problem am facing is 1. how to insert/reply a comment of a comment in the database and store it under the parent comment accordingly 2. how to get the comments both the nested ones 3. how to display it on the front end after getting all comments and the nested ones pls am really confuse if any programmer here have faced this challenge using mongoose(mongodb) i will need your help or pls just point me to the right direction or link thanks |
pls how or wherr can i get a no expiration demo account for practicing |
guru01:i have sent my cv to you i hope to hear from you |
drexel39:which website mikkyangel dey buy this laptops from self ? |
mikkyangel: |
mikkyangel: |
mikkyangel:i sent u a message on watsapp but u didnt reply so if u can help me get a better one with good specs and cheaper i will be greatfull because i need it for my programming job |
mikkyangel:baba i need you to help me purchase this laptop from ebay and get it down to lagos i need the price and this is the link https://www.ebay.com/p/Dell-Latitude-E5520-Laptop-Windows-10-Win-DVD-Intel-I5-2-5ghz-8gb-500gb-HD-HDMI/26030527310?iid=311013725076&rt=nc |
baba pls help me purchase this laptop i need the price for you to get it down to lagos this is the link https://www.ebay.com/p/Dell-Latitude-E5520-Laptop-Windows-10-Win-DVD-Intel-I5-2-5ghz-8gb-500gb-HD-HDMI/26030527310?iid=311013725076&rt=nc hoping to get a reply pls |
pls i need a laptop quick i need ure price for this laptop including shipping to lagos here is the link to it https://www.ebay.com/p/Dell-Latitude-E5520-Laptop-Windows-10-Win-DVD-Intel-I5-2-5ghz-8gb-500gb-HD-HDMI/26030527310?iid=311013725076&rt=nc |
asco15:are the questions oral or base on algorithm questions is it only jobberman u used ?thanks for ure response |
pls nairalanders am just a young guy that just finish his nysc recently and i need a job as a programmer i dont want to be working all round submiting cv of what i majored on in the univeraity i want to work as a programmer although i havent worked in any big project but i am currently working on one right now in which i update it regularly on my github page even i can work comfortably with html,css,boostrap,nodejs and mongodb(using mongoose) help me dont want to stay idle at home i want use my skills thanks |
godofspeed:honestly i have not worked on a serious project i can code in html,css,javascripy,nodejs,mongodb this is my watsapp no(09031282657) |
been pretty good with html,css3 and javascript at least i can say for now i am familiar with almost most javascript code i see on the internet so i learnt boostrap as at 2017 and used it twice and neva used it again till now am working on a self project and i started using it again but the true fact about it is that i just open the boostrap documentation and do copy and past then i modify it to my own taste but i feel less of a programmer and javascript especially when using nodejs has alot of library how do u experience programmers keep up with all this liberaries or framework and type the code off head or do u also do my thing of copying and pasting as well? will lyk to know your thought about this ure response is highly appreciated thanks. |
KingstonDome:pls my guy am in the same shoe as u have u rectified yours if yes how did u do it? all those customer care at the bank cant help me infact they dont even understand what am saying |
learn about torrent and how to use utorrent and when u learn dat go to freetutorials.us and download a good ccna video course there for free all u need is to subscribe for data bcause some courses are up to 7gb in size good luck on ure journey |
any one going from sagamu to anambra state |
dennisworld1:pls my sister dont have a birth certificate can we use age declaration instead ? |
Liliyann:yea dis is d mind set of a complete loser and a well establish failure keep it up babe u are one in a million |
pls i need help i have started doing the post utme registration for my little sister, i have gotten the payment reference no but when i went to bank to pay they said that their e-transact is not connecting pls can i pay online bcause am just scared to pay online bcause of nigerian university and their un seriousness towards their e portal pls is it safe to pay online and has any body tried it ure response will be highly needed pls |
Gozbrown:yea korrect guy make we hope how tins go turn up |
Gozbrown:guy xup u name don show fot dean of student affairs board |
1 2 3 4 5 6 7 8 ... 21 22 23 24 25 26 27 28 29 (of 31 pages)
. Scatter the SQL queries and an data quality project. We both came in to defend our analysis. I was the only dude using Python to do magic. Had to go deep on the analysis even using machine learning to predict. Gave suggestions and during the interview the I had to demonstrate and explain all analysis. It was great though.