Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,563 members, 7,816,368 topics. Date: Friday, 03 May 2024 at 10:17 AM

Islamics's Posts

Nairaland Forum / Islamics's Profile / Islamics's Posts

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

Programming / Re: The Myth Of Saturation With Regards To Web Development. by islamics(m): 9:49am On Nov 22, 2021
airsaylongcome:


So yes I think the number of comparisons should reduce. After the initial check of num1>=num2 I don't think there should have been a check for that again in the elif. I'm rusty in my programming so I don't have a ready solution for that. But I believe after the first check there was no need to check it again because we would already know if num1 was greater or not after that check
After checking num1>=num2, there is a need to compare using num2 in case num2 will be the largest in the elif. The approach is the basic logic.
If you consider the first number as largest and then compare with others, your number of comparison will always be n-1 which is small improvement grin
But I believe after the first check there was no need to check it again because we would already know if num1 was greater or not after that check
We would know but we wouldn't know for certain if num2 or num3 is greater.
You can open your terminal, run different variation of the code and see the results.
Programming / Re: The Myth Of Saturation With Regards To Web Development. by islamics(m): 10:12pm On Nov 21, 2021
airsaylongcome:
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
num3 = float(input("Enter third number: "))
if (num1 >= num2) and (num1 >= num3):
.....largest = num1
elif (num2 >= num1) and (num2 >= num3):
..... largest = num2
else:
.....largest = num3
print("The largest number is", largest)

Saw this code somewhere on Nairaland and while it's mostly correct, I think it is suboptimal. To spark a conversation, how would you guys go about optimising it?

How about after getting the three numbers, then we say:
int largest = number1
If number2 > largest
largest = number2
If number3 > largest
largest = number3

In this case, I think the number of comparison is reduced.

airsaylongcome:


Good points. I'm also thinking was there any need to do the elif num2>=num1?

Based on the person code logic, I think it was needed.
Sports / Re: If Your Money Is Returned Everytime u Lost A Bet, Would You Use The Betting App? by islamics(m): 10:33am On Nov 13, 2021
Lindner:

.
Saw a startup that does this advertising on Twitter and was wondering how feasible it is in terms of profit.
Op, please I will reach out to you for some clarification.
Programming / Re: Game Called Life Wins Best Game In The Oloko Store by islamics(m): 9:05pm On Nov 06, 2021
airsaylongcome:


The screens where made in Nigeria? Battery made in Nigeria? Resistors, capacitors, diodes and transistors where also made in Nigeria? I'm interested.

What is the use case? Why would I have a device with no connectivity? For security? Privacy? Or anonymity? Might as well just have a paper notebook. Or a tecno device in a Faraday bag. Still trying to get my head around the product offering as I have a lot of interest in anonymity and privacy

grin grin grin
Programming / Re: Hi Guys, Please Help With This Assignment by islamics(m): 11:42pm On Nov 05, 2021
airsaylongcome:


Yeah. For the clerk's name, I tried to cover a scenario where someone enters a first and last name separated by space. If you use just cin in that scenario only takes the first string is registered as input.

For Qty input, I assume a string input of numeric characters which stringstream "converts" to an integer
Thanks for the explanation.
Programming / Re: Hi Guys, Please Help With This Assignment by islamics(m): 9:12pm On Nov 05, 2021
Oga don solve everything finish for you. Just complete am.
airsaylongcome
Any reason why you didn't use cin directly? Instead of using getline.
Food / Re: Cook In Your Kitchen, Take Pictures And Post It Here. SIMPLE! by islamics(m): 5:22pm On Nov 03, 2021
grin grin grin grin
Nlanalyst:

Forget grammar my darling sister, can you blend and eat your placenta?

2 Likes

Programming / Re: The Myth Of Saturation With Regards To Web Development. by islamics(m): 10:01am On Nov 03, 2021
airsaylongcome:
Sad sad Tuesday for me. Power surge fried two laptops, one server, all mobile phone chargers, fibre Optic modem, one Inverter.
Hard luck Sir for the incident. Na phcn light destroy stuff like this?
Properties / Re: Collapsed 21-Storey Building Got Approval - Lagos Government Backtracks by islamics(m): 9:10pm On Nov 02, 2021
airsaylongcome:

Someone with a broken neck or spine could be dragged like a small generator and bundled into the back seat of a car in the name of rescue
This got me laughing real hard
Programming / Re: The Myth Of Saturation With Regards To Web Development. by islamics(m): 9:10pm On Nov 02, 2021
airsaylongcome:


Anyway me I'm off to sharpen my WP skills o. Hopefully Automaticc is still looking for TSEs in January
Baba, even you too don enter web?

1 Like

Programming / Re: I by islamics(m): 5:04pm On Oct 31, 2021
Chigstar:

C++droid and Jvdroid. Just search for them on playstore
Thanks. I already search play store and came across the c++droid. Thanks
Food / Re: Cook In Your Kitchen, Take Pictures And Post It Here. SIMPLE! by islamics(m): 10:43am On Oct 30, 2021
Let's eat

32 Likes

Food / Re: Cook In Your Kitchen, Take Pictures And Post It Here. SIMPLE! by islamics(m): 7:47am On Oct 28, 2021
ahnie:

How do you guys detect food pics lifted from the net?
Right click/Long press on the image and you will see option to search with Google lens. Once a picture has been posted in the internet before, google lens will provide the links to where it was posted before.

6 Likes

Programming / Re: I by islamics(m): 10:30am On Oct 27, 2021
Chigstar:
Ah, I'm also in the same shoes as you. I tried even quitting software development. But i found out you can create programs for c++, python and java on your android phone. It's what I'm making do with for now. I've built websites, apps and webscraping bots all on my phone. My latest project I'm working on is a crypto trading bot that automates my trading for me. So if i were you, while still looking for a laptop try practicing code and build real world projects so that people can see. Maybe with it you can convince them to donate you a laptop.
Oh i use Python by the way. If you need a website or webscraper, hit me up�

Please would you mind sharing the name of the mobile app you use for c++ and Java development.
Food / Re: Cook In Your Kitchen, Take Pictures And Post It Here. SIMPLE! by islamics(m): 8:23am On Oct 27, 2021
Cinema4d:

Is that pancake or egg?
Na egg oo. Bought egg and few broke inside cry cry
So I had to just fry the egg on top the rice and sauce.

1 Like

Food / Re: Cook In Your Kitchen, Take Pictures And Post It Here. SIMPLE! by islamics(m): 6:56pm On Oct 26, 2021
Dinner

26 Likes

Programming / Re: Android Mobile App Programming, Which Should I Start With? by islamics(m): 1:00pm On Oct 19, 2021
airsaylongcome:
Do you have a background in Development?

I'd say you start with Android Dev. I'm a bit left of center and would say start with Java (or Kotlin). But I don't know the current trends in mobile app development
Google is moving the default language from Java to Kotlin. It is advise for pple just starting Android development to go for Kotlin. It is just that as usual, Java will have more resources/tutorials available than Kotlin but the Google codelab sample will get you covered to a level.
Some android opening do state that Kotlin is preferred though they do accept Java.
Programming / Re: Do We Have Female Devs On Nairaland? by islamics(m): 6:02pm On Oct 16, 2021
airsaylongcome:


I will never get it. The time they fritter away learning HTML can be better spent on R or Python en route a career in Data Science. Time is of essence
I remember when I started with Android development and a guy was like, I need to learn JS, me was like I am doing native Android why do I need JS. He said I will need it in anything. Stubborn me still never learn JS sha.
So I feel, some go the route of HTML/CSS cos of the less computing resources required. It is why even me con enter web as my system con dey frustrate me with Gradle building and I never get the resources to upgrade.
Programming / Re: Do We Have Female Devs On Nairaland? by islamics(m): 5:14pm On Oct 16, 2021
airsaylongcome:


I will never understand our society. We LOVE wahala too much. Maybe for bragging rights. If not why on earth will someone who wants to delve into Data Science be wasting their time learning HTML and CSS? What does a Data Scientist need all that "nonsense" for?

Perhaps the guy wan use HTML/css chop before jumping to data science.
Programming / Re: This Is What A Recruiter Told Me About Software Developers From Nigeria by islamics(m): 6:40am On Oct 14, 2021
qtguru:


join.slack.com/t/koding-school/shared_invite/zt-x7wxcatg-_iU4vvtdTJ7mNvsBlvajxg

Here is the link for anyone who wants to join, I can't manage the group anymore, so I leave it to the community, I will just post videos and help those who are interested ? All the best bro
All the best too Boss.
I guess the other Oga here can reignite the workspace.
Oga Lindner and Oga Airsay, what's your say?
Education / Re: Transfer From One University To Another by islamics(m): 10:00pm On Oct 12, 2021
Gentlerespect76:


Universities usually sell transfer admission forms each year, just like JAMB forms are sold for each session. Go to the Establishment Division (Registry, Exams and Records) of your prospective university and make enquiries. The requirements are usually institution-specific.
Thanks for the response. Would check it out tomorrow.
Education / Transfer From One University To Another by islamics(m): 4:53pm On Oct 12, 2021
Greetings
Please who has ever undergone the process of transferring from one university to another university? What is the process like?
Thanks in anticipation of your response.
Programming / Re: This Is What A Recruiter Told Me About Software Developers From Nigeria by islamics(m): 2:11pm On Oct 12, 2021
BRATISLAVA:


Such a community exists? This has to be one of the best threads in a while.
Yes it does.
Na make Oga qtguru con make the link available and make he coordinate with the other Boss to move it forward.
Programming / Re: This Is What A Recruiter Told Me About Software Developers From Nigeria by islamics(m): 7:13pm On Oct 11, 2021
airsaylongcome:
@Lindner and other more experienced remote workers, can we create a community to provide advice to potential Nairalanders looking for advice on how to navigate the murky waters of IT Remote employment? I'm thinking of a Slack (or Mattermost) group where only invited folks can join. Using Slack/Mattermost (as opposed to having a thread here or creating a WhatsApp or Telegram group) will provide a way of restricting those who can join while allowing prospective remote workers get accustomed with Slack which is a major Collaboration/Communication software for remote work. The community can serve as a means of "giving back" while empowering prospects with info of where to source for remote work, how to go about applying and all other contributions we can give. This is an honest no-ulterior-motives suggestion

There is a slack community opened by qtguru though it has not really been active. Why not make leverage/build it up from there. Some peeps here are part of the slack. He opened it with this same goal of remote stuff but Oga don busy now dey juggle two job. grin

5 Likes 1 Share

Properties / Re: . by islamics(m): 9:17am On Oct 10, 2021
.
Programming / Re: Has Any Nigerian Developed App Like Whatapp, Facebook & Instagram by islamics(m): 9:34am On Oct 09, 2021
Ajibade123:

mark wrote Facebook code alone but it wasn't huge like this
the thing is starting small and expand later
How about Quora founder Adam D'Angelo who worked for Facebook and was their CTO?
Programming / Re: How Can I Get A Remote Back End Job by islamics(m): 7:33am On Sep 26, 2021
airsaylongcome:
.
The thing is nothing wrong in learning c++ or any stuff but what tensa emphasize on is the fact that if you are learning anyone then make sure you already have one paying you already then you can pick any.
For instance, You are already earning and want to pick c++ to increase earning. Tensa ma dey earn before he added salesforce. So, the first goal is to get one paying first and stuff like c++ might take time before the pay begin come Kuma we know all know the first goal is to start earning asap.
Programming / Re: Generative Adversarial Networks ---- Training A Neural Network To Paint Art. by islamics(m): 12:58pm On Sep 16, 2021
Nice effort op.
It was a nice read indeed.
Education / Re: Did JAMB Really Jam Me? Can I Still Get Admission This Year? Please Help! by islamics(m): 10:06pm On Sep 15, 2021
Goldenboy333:






If change of institution is still on I advised you to change to ATBU Abubakar Tafawa balewa university bauchi you'll be given admission ASAP computer and communication engineering
Please do you have an idea of what is the cutoff mark for ATBU?
Food / Re: Cook In Your Kitchen, Take Pictures And Post It Here. SIMPLE! by islamics(m): 1:40pm On Aug 31, 2021
Akposy:


You should try again and allow the yeast to bubble before using, else discard
I will. Thanks

1 Like

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 22 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. 54
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.