Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,547,288 members, 5,864,906 topics. Date: Saturday, 19 September 2020 at 06:14 AM

Can Somebody Help Me Debug This? - Programming - Nairaland

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

Debug This Code At Your Spare Time. / Timbu Web App: DEBUG / I Need Help To Debug Android Studio Errors Connecting To Bluestack (2) (3) (4)

(1) (Reply) (Go Down)

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

Re: Can Somebody Help Me Debug This? by SegFault: 5:12pm On Sep 15
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 Righteousnesss8: 5:16pm On Sep 15
pray to God almighty he is a miracle worker you don't have to stress yourself
Re: Can Somebody Help Me Debug This? by SpacehubTech: 5:19pm On Sep 15
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 SegFault: 5:20pm On Sep 15
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
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
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 SegFault: 6:09pm On Sep 15
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(f): 6:31pm On Sep 15
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
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
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(f): 11:20pm On Sep 15
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
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.

2 Likes

Re: Can Somebody Help Me Debug This? by Savagethe21st(f): 11:52pm On Sep 15
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
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
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(f): 2:52am On Sep 16
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
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

(1) (Reply)

Please Who Knows How To Make A Wikipedia Article Like This / Help Help Help / Looking For A Trust Worthy Developer To Work With

(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 - 2020 Oluwaseun Osewa. All rights reserved. See How To Advertise. 62
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.