Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,487 members, 7,808,799 topics. Date: Thursday, 25 April 2024 at 05:01 PM

Can Somebody Help Me Debug This? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Can Somebody Help Me Debug This? (739 Views)

Please Who Can Help Me Debug This Testing Code? / Someone, Please Help Debug This Code / Debug This Code At Your Spare Time. (2) (3) (4)

(1) (Reply) (Go Down)

Can Somebody Help Me Debug This? by Rolinson: 5:10pm On Sep 15, 2020
This is a program that is giving me tough time . pls can someone help me debug?

Re: Can Somebody Help Me Debug This? by Nobody: 5:12pm On Sep 15, 2020
Rolinson:
This is a program that is giving me tough time . pls can someone help me debug?
Hiaye, Use your own debugger to run it nah. Wait what exactly is the problem, like what errors are the program generating.
Re: Can Somebody Help Me Debug This? by Nobody: 5:16pm On Sep 15, 2020
pray to God almighty he is a miracle worker you don't have to stress yourself

1 Like

Re: Can Somebody Help Me Debug This? by SpacehubTech: 5:19pm On Sep 15, 2020
Rolinson:
This is a program that is giving me tough time . pls can someone help me debug?

The constant independent if's statement is the culprit

Rather Use else if to join your subsequent conditional statement.
Re: Can Somebody Help Me Debug This? by Nobody: 5:20pm On Sep 15, 2020
Righteousnesss8:
pray to God almighty he is a miracle worker you don't have to stress yourself
undecidedundecided on a common program again. Chaiyeee.
Re: Can Somebody Help Me Debug This? by Coder2Client(m): 5:27pm On Sep 15, 2020
Rolinson:
This is a program that is giving me tough time . pls can someone help me debug?
What is your logcat report? But I sense some logic inaccuracy in the second check. Where u said
If(!iskid && !IsSenior) { pay=9.25;} is somewhat confusing with the first check but let's see the logcat report. And do tell us what you want the output result to be.
Re: Can Somebody Help Me Debug This? by Coder2Client(m): 5:37pm On Sep 15, 2020
SpacehubTech:


The constant independent if's statement is the culprit

Rather Use else if to join your subsequent conditional statement.


Not in all situations else if is applicable it depends on what the developer intend to achieve . What the OP used is similar to switch statement.
Re: Can Somebody Help Me Debug This? by Nobody: 6:09pm On Sep 15, 2020
SpacehubTech:


The constant independent if's statement is the culprit

Rather Use else if to join your subsequent conditional statement.

Else if is only useful in mutually exclusive events i.e only one condition can be true at a time, but he might want to check one first then check the next after.
Re: Can Somebody Help Me Debug This? by Savagethe21st(m): 6:31pm On Sep 15, 2020
Coder2Client:


Not in all situations else if is applicable it depends on what the developer intend to achieve . What the OP used is similar to switch statement.
do u use mvvm architecture when you code
Re: Can Somebody Help Me Debug This? by Coder2Client(m): 6:47pm On Sep 15, 2020
Savagethe21st:
do u use mvvm architecture when you code
Yes. Why did you ask? In spring boot or in Android development?
Re: Can Somebody Help Me Debug This? by Kehcsc(m): 6:49pm On Sep 15, 2020
Rolinson:
This is a program that is giving me tough time . pls can someone help me debug?
I think posting the error log would help determine the issue... Personally I can't see anything wrong with the code logic.
Re: Can Somebody Help Me Debug This? by Savagethe21st(m): 11:20pm On Sep 15, 2020
Coder2Client:

Yes. Why did you ask? In spring boot or in Android development?
android dev..i asked based on i just came across lifecycle, coroutine's and data binding. Is complicated unlike how i used to build apps b4
Re: Can Somebody Help Me Debug This? by Coder2Client(m): 11:39pm On Sep 15, 2020
Savagethe21st:
android dev..i asked based on i just came across lifecycle, coroutine's and data binding. Is complicated unlike how i used to build apps b4

MVVM is used with mostly data binding. Jetpacks components generally are new to many android dev.
You are used to MVC architecture, right? So do many dev.
Just take your time to learn it. It is simple if you get good resources for it (book or video) I recommend book though.

3 Likes

Re: Can Somebody Help Me Debug This? by Savagethe21st(m): 11:52pm On Sep 15, 2020
Coder2Client:


MVVM is used with mostly data binding. Jetpacks components generally are new to many android dev.
You are used to MVC architecture, right? So does many dev.
Just take your time to learn it. It is simple if you get good resources for it (book or video) I recommend book though.
thank you so much for the advice. I'm open for remote jobs. Can u suggest best places to hunt
Re: Can Somebody Help Me Debug This? by Coder2Client(m): 12:07am On Sep 16, 2020
Savagethe21st:
thank you so much for the advice. I'm open for remote jobs. Can u suggest best places to hunt

That's a good idea. Indeed and glassdoor download the two apps and register, you will receive android dev jobs everyday but be prepared for test. Java, Kotlin and Android programming test. Just apply first.
Re: Can Somebody Help Me Debug This? by Millerules(m): 12:15am On Sep 16, 2020
Sorry to jump in.

These are actually easy to grab and very useful concepts. I want to believe you are talking Kotlin here (coroutine), so check out Android Development with Kotlin Course on Udacity. Those guys (from Google actually) explained in detail with MVVM Architecture.

Savagethe21st:
android dev..i asked based on i just came across lifecycle, coroutine's and data binding. Is complicated unlike how i used to build apps b4
Re: Can Somebody Help Me Debug This? by Savagethe21st(m): 2:52am On Sep 16, 2020
Coder2Client:


That's a good idea. Indeed and glassdoor download the two apps and register, you will receive android dev jobs everyday but be prepared for test. Java, Kotlin and Android programming test. Just apply first.
ok bro. One last thing. I've been coding for a while but I'm scared my cv looks scanty because i havent interned at any company and I'm yet to graduate so no work experience. What can i do about it
Re: Can Somebody Help Me Debug This? by sKeetz(m): 4:12am On Sep 16, 2020
Savagethe21st:
ok bro. One last thing. I've been coding for a while but I'm scared my cv looks scanty because i havent interned at any company and I'm yet to graduate so no work experience. What can i do about it

Build projects so you can have something to show off
Re: Can Somebody Help Me Debug This? by lincsnuel: 9:26am On Sep 19, 2020
Rolinson:
This is a program that is giving me tough time . pls can someone help me debug?

Use else if in the statements. It will give the required output.
Re: Can Somebody Help Me Debug This? by Jas80: 10:38am On Sep 19, 2020
Rolinson:
This is a program that is giving me tough time . pls can someone help me debug?

have u solved the problem

(1) (Reply)

How Exactly Do VPN Free Browsing Cheats Work? Anyone? / Break This Cryptic Code Before 6 PM To Win A $25 Cash Price / How Do I Stayed Focused To Actualize My Dream Of Becoming Software Developer.

(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. 25
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.