TV/Movies › Re: What Series Are You Watching Now? Part 2 by Brukx(m): 3:30am On Jul 05, 2020 |
I'm out of live shows to watch... Suggestions |
TV/Movies › Re: What Series Are You Watching Now? Part 2 by Brukx(m): 3:29am On Jul 05, 2020 |
SperoQuest: Season 7 of the 100 has been a solid 8/10 so far.
But i miss Belamy though, it's like he left the show because i don't understand how you kill off a main cast in a senseless way.
As strong as Bellamy, if the writers wanted to kill him off, he deserves a better death like a very strong war/fight scene. I didn't even know he died in that scene until they mentioned it. I like it when a show kills a major character. It gives the show more realistic values. But Bellamy deserved a better death |
TV/Movies › Re: The Boys [TV SHOW] by Brukx(m): 10:22am On Jul 04, 2020 |
This show portrayed super heroes for how they would really behave in reality. Not our regular Superman and Captain America that are driven my conscience. |
TV/Movies › Re: The Boys [TV SHOW] by Brukx(m): 10:19am On Jul 04, 2020 |
Minemrys: Still surprised no one's created a thread on this amazon superhero Tv series. So guys, let's talk; the season 1 produced s0me stellar stuff and it's up to seas0n 2 to c0me up with stuffs to top that... SMUAG, Thekingishere, pu7pl3, bankygee, philfearon, tonyspike, raasalghul, No series has a tread on nairaland except GOT and power |
Programming › Re: The Future Of Programming Language by Brukx(m): 8:58am On Jul 04, 2020 |
Sulele04: create an application in python and try to constantly mantain it then you will understand the disadvantage of whitespace *Python is like the most readable programming language. * Python's syntax is the closest to normal English language. *You don't have to use semicolons in python *Python is dynamically typed. This makes coding very quick How is it hard to maintain? I do agree that it is slow though |
Programming › Re: HTML5 A Programming Language Or Not by Brukx(m): 7:32am On Jul 03, 2020 |
Tim1212: Launching my own version of android OS in 2021. You mean you created an os? |
TV/Movies › Re: What Series Are You Watching Now? Part 2 by Brukx(m): 4:37pm On Jul 02, 2020 |
Gangs of London should be renamed "Terrorists of London". |
Programming › Re: Python Legends Please I Don't Understand This Error by Brukx(m): 9:18pm On Jul 01, 2020 |
olamidedivotee: crownedrookie brukx
def main():
# Prompt the user to enter a hex number
hex = input("Enter a hex number: " .strip()
decimal = hexToDecimal(hex.upper())
if decimal == None:
print("Incorrect hex number"
else:
print("The decimal value for hex number",
hex, "is", decimal)
def hexToDecimal(hex):
decimalValue = 0
for i in range(len(hex)):
ch = hex[i]
if 'A' <= ch <= 'F' or '0' <= ch <= '9':
decimalValue = decimalValue * 16 + \
hexCharToDecimal(ch)
else:
return None
return decimalValue
def hexToDecimal(ch):
if 'A' <= ch <= 'F':
return 10 + ord(ch) - ord('A')
else:
return ord(ch) - ord(ch)
main() # Call the main function Ord only accepts one character. Hmm  |
Programming › Re: How Can I Design And Develop A Game by Brukx(m): 12:42am On Jun 30, 2020 |
Plaouse: Hello, I have had an idea of a game to create for a while now - a life simulation game to be precise. I' ve created no games before, and for this I' m just beginning to acknowledge some programming languages I need to learn admist the many other things I should learn also.
What steps do you suggest I take as a total beginner in game designing and programming in order to bring my idea of a game to reality? Thank you. Learn Java or Kotlin Learn the programming language and be used to it before you study gaming |
Programming › Re: Python Gurus Please Help Me With This Code. by Brukx(m): 8:17pm On Jun 29, 2020 |
olamidedivotee: Grandlord brukx
Python gurus where are you, help me with this
This code have been giving me sleepless night.
class Loan: def __init__(self, annualInterestRate = 2.5, numberOfYears = 1, loanAmount = 1000, borrower = " " : self.__annualInterestRate = annualInterestRate self.__numberOfYears = numberOfYears self.__loanAmount = loanAmount self.__borrower = borrower def getAnnualInterestRate(self): return self.__annualInterestRate def getNumberOfYears(self): return self.__numberOfYears def getLoanAmount(self): return self.__loanAmount def getBorrower(self): return self.__borrower def setAnnualInterestRate(self, annualInterestRate): self.__annualInterestRate = annualInterestRate def setNumberOfYears(self, numberOfYears): self.__numberOfYears = numberOfYears def setLoanAmount(self, loanAmount): self.__loanAmount = loanAmount def setBorrower(self, borrower): self.__borrower = borrower def getMonthlyPayment(self): monthlyInterestRate = self.__annualInterestRate / 1200 monthlyPayment = \ self.__loanAmount * monthlyInterestRate / (1 - (1 / (1 + monthlyInterestRate) ** (self.__numberOfYears * 12))) return monthlyPayment def getTotalPayment(self): totalPayment = self.getMonthlyPayment() * \ self.__numberOfYears * 12 return totalPayment
As you can see, only your first and last function are properly indented. That's the issue |
Programming › Re: Can You As A Programmer Hack Or Be A Hacker?? by Brukx(m): 8:09pm On Jun 29, 2020 |
Binikingdowm: so an average expert in Java or python can't hack or bypass passwords?? No, it doesnt work that way. Although to be successful in hacking you need some knowledge of programming. But being a programmer doesn't mean you know how to hack |
Programming › Re: Funny Programming Memes. Just For Laughs by Brukx(m): 12:08pm On Jun 29, 2020 |
|
Programming › Re: Python Gurus Please Help Me With This Code. by Brukx(m): 12:04pm On Jun 29, 2020 |
gbolly1151: [Code] [/code]
Change C to c
Example
class hello: pass
Thanks |
Programming › Re: Python Gurus Please Help Me With This Code. by Brukx(m): 11:57am On Jun 29, 2020 |
Grandlord: Big boy, use the nairaland code tags around your code so we can see where the indentation error occurred. Or better still take a shot of it on your PC. Show us how |
Programming › Re: Python Gurus Please Help Me With This Code. by Brukx(m): 9:26am On Jun 29, 2020 |
olamidedivotee: Grandlord brukx
Python gurus where are you, help me with this
This code have been giving me sleepless night.
class Loan: def __init__(self, annualInterestRate = 2.5, numberOfYears = 1, loanAmount = 1000, borrower = " " : self.__annualInterestRate = annualInterestRate self.__numberOfYears = numberOfYears self.__loanAmount = loanAmount self.__borrower = borrower def getAnnualInterestRate(self): return self.__annualInterestRate def getNumberOfYears(self): return self.__numberOfYears def getLoanAmount(self): return self.__loanAmount def getBorrower(self): return self.__borrower def setAnnualInterestRate(self, annualInterestRate): self.__annualInterestRate = annualInterestRate def setNumberOfYears(self, numberOfYears): self.__numberOfYears = numberOfYears def setLoanAmount(self, loanAmount): self.__loanAmount = loanAmount def setBorrower(self, borrower): self.__borrower = borrower def getMonthlyPayment(self): monthlyInterestRate = self.__annualInterestRate / 1200 monthlyPayment = \ self.__loanAmount * monthlyInterestRate / (1 - (1 / (1 + monthlyInterestRate) ** (self.__numberOfYears * 12))) return monthlyPayment def getTotalPayment(self): totalPayment = self.getMonthlyPayment() * \ self.__numberOfYears * 12 return totalPayment There's error in indentation |
TV/Movies › Re: What Series Are You Watching Now? Part 2 by Brukx(m): 9:18pm On Jun 28, 2020 |
Papadoh: Penny Dreadful is a severely underrated show which is a shame because it's a freaking masterpiece. Season 3 wasn't really good though. Oh, and how underrated is Eva Green? Eva Green I first saw her in 300, she was sexy as hell. It seems they like using her for rough sex scenes But she didn't win any award as Venessa Ives |
Programming › Re: Learning Python Kivy by Brukx(op): 5:02pm On Jun 28, 2020 |
Today is the 6th week after creating this thread. I can say my knowledge of Kivy has improved alot. Thanks to this WhatsApp group I joined where we learnt the concept together |
TV/Movies › Re: What Series Are You Watching Now? Part 2 by Brukx(m): 3:09pm On Jun 26, 2020 |
Peakyblinder: Please can someone give me telegram pages for downloading series. The ones I have are no longer working. I want to download revolution. Pages please Hope you know Revolution was canceled after season 3 |
Programming › Re: Fastest Programming Languages by Brukx(op): 1:14pm On Jun 26, 2020 |
10. C# It is a general-purpose, multi-paradigm programming language which extends the Caml dialect of ML with object-oriented The core syntax of C# language is similar to that of other C-style languages such as C, C++ and Java. In particular. It was designed and developed by Microsoft
|
Programming › Re: Fastest Programming Languages by Brukx(op): 1:09pm On Jun 26, 2020 |
9. OCaml is a general-purpose, multi-paradigm programming language which extends the Caml dialect of ML with object-oriented features. It is an interpreted language. The web version of Facebook messenger was built with this language
|
Programming › Re: Fastest Programming Languages by Brukx(op): 1:04pm On Jun 26, 2020 |
8. Pascal Pascal is an imperative and procedural programming language. It is an efficient language intended to encourage good programming practices using structured programming and data structuring |
Programming › Re: Fastest Programming Languages by Brukx(op): 12:54pm On Jun 26, 2020 |
7. Go Go is a statically typed, compiled programming language designed at Google.Go is syntactically similar to C, but with memory safety, garbage collection and structural typing. Netflix, Google, Etherium use Go for some of their projects. It is a compiled language
|
Programming › Re: Fastest Programming Languages by Brukx(op): 12:47pm On Jun 26, 2020 |
6. Chapel Chapel, the Cascade High Productivity Language, is a parallel programming language. It was influenced by Java and Ada.
|
Programming › Re: Fastest Programming Languages by Brukx(op): 12:41pm On Jun 26, 2020 |
5. Java Programs written in Java have a reputation for being slower and requiring more memory than those written in C++. However, Java programs' execution speed improved significantly with the introduction of just-in-time compilation in 1997/1998 for Java 1.1
|
Programming › Re: Fastest Programming Languages by Brukx(op): 12:37pm On Jun 26, 2020*. Modified: 1:15pm On Jun 26, 2020 |
4. Ada Ada is a structured, statically typed, imperative, and object-oriented high-level programming language, extended from Pascal and other languages. It is a compiled language. It's garbage collection makes it efficient when it comes to speed
|
Programming › Re: Fastest Programming Languages by Brukx(op): 12:30pm On Jun 26, 2020 |
Arg0n: The closer a programming language is to the computer language, the faster it is. Very true. Compiled languages are faster too |
Programming › Re: Fastest Programming Languages by Brukx(op): 12:29pm On Jun 26, 2020 |
3. C++ C++ is a general-purpose programming language created as an extension of the C programming language, or "C with Classes". The language has expanded significantly over time, and modern C++ now has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation. It is almost always implemented as a compiled language
|
Programming › Re: Fastest Programming Languages by Brukx(op): 12:25pm On Jun 26, 2020 |
Ausrichie: As for me it's.
1.Assembly (if you can do it well it will run like lightning) 2. C 3. C++ 4. Go 5. Rust Etc Sharp... You even beat me to comment |
Programming › Re: Fastest Programming Languages by Brukx(op): 12:23pm On Jun 26, 2020 |
2. Rust Rust is blazingly fast and memory-efficient: with no runtime or garbage collector, it can power performance-critical services, run on embedded devices, and easily integrate with other languages. It has been used to build operating systems and web browsers (Firefox). It is a compiled language
|
Programming › Re: Fastest Programming Languages by Brukx(op): 12:17pm On Jun 26, 2020 |
1. C C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, with a static type system. it is a compiled language. By design, C provides constructs that map efficiently to typical machine instructions. It has found lasting use in applications previously coded in assembly language. Such applications include operating systems and various application software for computers architectures that range from supercomputers to PLCs and embedded systems
|
Programming › Fastest Programming Languages by Brukx(op): 12:13pm On Jun 26, 2020*. Modified: 12:30pm On Jun 26, 2020 |
When it comes to chosing a High Level programming language runtime is an important factor that must be considered.Let's take a voyage to view some of the popular programming languages and where they rank in terms of speed |
Programming › Re: I Want To Create Applications(i Need Help) by Brukx(m): 9:50am On Jun 26, 2020 |
TheGodlessGod: thanks, i have a pc. cant i learn python using laptop? You can |