Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,153,727 members, 7,820,515 topics. Date: Tuesday, 07 May 2024 at 04:21 PM |
Nairaland Forum / Webapi's Profile / Webapi's Posts
(1) (2) (3) (4) (5) (6) (7) (of 7 pages)
Programming / Re: Please I Need Explanation Of This Express.js Code by webapi: 6:35am On Jul 10, 2021 |
jikins:Yes you are correct but nevertheless, the OP was not supposed to pull all the users from the database before iterating. I dont know what kind of database he's using but it's a wrong approach to pull every user from database before iterating. If there are 1million users, it wouldn't be nice to fetch all |
Programming / Re: Please I Need Explanation Of This Express.js Code by webapi: 11:03pm On Jul 09, 2021 |
jikins:For this case, Foreach wont work at all because expressjs can only send one response. If he sends any response on this condition, he will get an error message saying it had already sent the request. Filter is the only best option here. But if he must use Foreach, then he would need to use the push function to push the data into an empty array then send the array at once as the response |
Programming / Re: Please I Need Explanation Of This Express.js Code by webapi: 6:25pm On Jul 09, 2021 |
jikins:Yes sorry i wasn't advising him to use return statement. I was only guiding him about the if and else statement. He can do whatever he likes within the conditions. But the filter is still the best option to be on safe side. |
Programming / Re: Please I Need Explanation Of This Express.js Code by webapi: 4:59pm On Jul 09, 2021 |
Here is a better solution for the OP since we are concerned about the items with user.id === id. Simple use the filter function to get the objects that matches the id then you send a success response. |
Programming / Re: Please I Need Explanation Of This Express.js Code by webapi: 3:42pm On Jul 09, 2021 |
jikins:Your point is completely wrong. Foreach is an iteration and it works per item/key. So if out of 10 objects of array, only 4 is true, then it will return true 4 times and false six times. It wont stop the iteration regardless of the condition you place. So back to my point, OP is completely wrong in his code. |
Programming / Re: Please I Need Explanation Of This Express.js Code by webapi: 1:33pm On Jul 08, 2021 |
Karleb:I tire ooo |
Programming / Re: Please I Need Explanation Of This Express.js Code by webapi: 8:52pm On Jul 06, 2021 |
DDayve:Why do you need a special boolean for this? Simply add an else and return your error code.. If (user.id===id){ return success; }else { return error; } 2 Likes |
Programming / Re: We Need A Shopify App Developer by webapi: 6:39pm On Jun 03, 2021 |
Kate06:If it's still open, here is my telegram @icodesoftwares and yes i'm interested 1 Like |
Programming / Re: Contact Me For Your Mobile App and Web Development by webapi: 11:48am On May 30, 2021 |
webapi:
|
Webmasters / Contact Me For Your Mobile App and Web Development by webapi: 7:30am On May 30, 2021 |
For your web and mobile app projects, contact me on 08170077580
|
Webmasters / Re: I Need A Website For Akawo by webapi: 7:24am On May 30, 2021 |
EzeJustme:Contact me on 08170077580. This is a huge project with a unique algorithm. Let's talk about your project. |
Programming / Contact Me For Your Mobile App and Web Development by webapi: 7:22am On May 30, 2021 |
For your web and mobile app projects, contact me on 08170077580. |
Programming / Re: Database by webapi: 9:27am On May 27, 2021 |
Whatshallido:You can increase all that from php init file to contain as much data. Also your hosting plays a big role here too. You need a dedicated server to be able contain much data |
Programming / Re: Database by webapi: 11:17pm On May 26, 2021 |
Whatshallido:Mysql can store billions of data so go ahead with it |
Programming / Re: How Do You Integrate User Wallets by webapi: 10:06pm On May 26, 2021 |
Karleb:I don't know of any open source but i write mine from scratch. Including withdrawals and escrow system on the wallet. |
Programming / Re: How Do You Integrate User Wallets by webapi: 9:39pm On May 26, 2021 |
Karleb:You don't integrate a wallet. You create a wallet and if you don't know much on writing such algorithm, i will advice you don't try it on production app. It can cause alot of damages on finance. Get a professional to do it then let him explain how he did it so you learn. Financial storage is nothing to be put on test. |
Phones / Re: Nairalanders Please Help With This Issue by webapi: 8:31am On May 26, 2021 |
Quickly move your files to a PC before formatting. You can recover them after formatting. |
Webmasters / Re: Seun by webapi: 9:07pm On May 25, 2021 |
Omoniyidarasimi:Was mark zuckerberg a student of computer science at harvard?. |
Business / Re: How Can A Nigerian Collect Money From USA by webapi: 8:19pm On May 15, 2021 |
Arabiandude:Ok... https://siruexpress.com |
Business / Re: How Can A Nigerian Collect Money From USA by webapi: 7:33pm On May 15, 2021 |
Arabiandude:Not based in benin but can send my work on courier platform with the tracking system and other features. How can i connect with you? |
Webmasters / Re: What Ecommerce Platform Is Been Used By Jumia? by webapi: 1:21pm On May 07, 2021 |
ibietela2:Jumia uses php framework yii |
Programming / Re: I Need React Native Developers by webapi: 9:13am On May 05, 2021 |
smile4kenn:08170077580 whatsapp 1 Like |
Business / Re: How Can A Nigerian Collect Money From USA by webapi: 3:58pm On May 03, 2021 |
faceland:Worldremit 1 Like |
Programming / Re: Can I Get A Documentation Of All Powershell CLI Commands? by webapi: 3:21pm On Apr 13, 2021 |
Rgade:Powershell is just like every other terminal. Cli depends on the softwares installed on your machine. You can use the terminal to run docker commands, nodejs commands, composer, python and other stuffs. |
Programming / Re: If You Are Good With React Hooks And Context API by webapi: 6:48pm On Mar 28, 2021 |
techstack:Redux saga is best |
Properties / Serious Clients Only by webapi: 7:01pm On Mar 26, 2021 |
This house is for sale. It stands on 770sqm land. 5 bedrooms, 2 rooms b/q, 2 living rooms and a large kitchen. Asking price N150million. It’s a directs mandate from the owner itself Location.....VGC gan gan Call or chat 08179353237
|
Webmasters / Re: How To Integrate Flutterwave With Woocommerce by webapi: 3:13am On Mar 23, 2021 |
Manlike2good:I can fix it for u |
Webmasters / Foxtichweb Company by webapi: 10:05pm On Mar 06, 2021 |
Our services Software development Web development Mobile app development Social media management Chatbot development Graphic design UIUX design Put a call to us now!!!!
|
Business / Re: Is It Just Me Or Has Nairaland Become Really Slow In Loading? by webapi: 11:25pm On Mar 04, 2021 |
RounDVisio:Itz everyone bro... Nairaland is very slow |
Programming / Re: Web Developers You Are Needed Asap by webapi: 8:45pm On Mar 03, 2021 |
Observer20:I sent a message |
(1) (2) (3) (4) (5) (6) (7) (of 7 pages)
(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. 46 |