python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
What can I do to make my code more efficient and not use global variables
So today I built a very simple number guessing game and the below code is what I wrote. I understand that it's incredibly inefficient and I use global too much, which is generally known as a bad pract...
Ahmedh Aaqil Rifky
Votes: 0
Answers: 2
Python: implement a "software-wide" setting that does not change often without running an if statement in every loop
I want Python to kind of ignore a statement that is unlikely to be called in a function that is often called.
I do not have a formal education in programming, so please excuse my lackluster ability to...
Steve
Votes: 0
Answers: 3
Why Global API response is showing nil in swift
I made getUser service call globally but when i call that method in required viewcontroller then data coming nil.. why?
code: created user_details API service call globally.. here UserDetailsModel is ...
Json Swift
Votes: 0
Answers: 2
Gloabal and Local scope confusion, Why is UnboundLocalError not happening?
I am working with WebSocket for a live stream of data and using 2 threads (total counting MainThread) my confusion is as follows
I have started with a dict live_data which is used to store live data ...
KUNAL CHAVDA
Votes: 0
Answers: 0