₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,087 members, 8,448,593 topics. Date: Monday, 20 July 2026 at 02:57 PM

Toggle theme

SUPREMOTM's Posts

Nairaland ForumSUPREMOTM's ProfileSUPREMOTM's Posts

1 2 3 (of 3 pages)

ProgrammingRe: .net Or Python? by SUPREMOTM:
Ogori8:
As an engineering student, which between .net programming and python would you advice me to learn?
Fast result doing cool stuff, data science, data analysis, Machine Learning, PYTHON.


With plenty of patience to learn all that's required to be a software engineer before you can create something satisfying, C# and .Net

NOTE: For full stack .Net development (you will be building enterprise software) you will have to learn

-HTML CSS Bootstrap (Bootstrap comes with Visual Studio)
-JavaScript and a Js framework (Angular preferred)
-C#
-OOP
-SOLID design principles
-T-Sql with SQL-Server, NoSql
-Entity Framework Core
-.Net Core
-ASP.Net Core MVC
-Asp.Net Web API


For games development
-C#
-OOP
-SOLID design principles
-Entity Framework Core
-Unity Game Engine


For Cross-Platform development
-C#
-OOP
-SOLID design principles
-Any flavour of SQL, NoSQL
-.NET MAUI (To build applications for Android, IOS, Windows desktop and MAC devices)
-XAML to design your applications


For cloud development,
-C#
-OOP
-SOLID design principles
.Net Core
-Networking
-SQL, SQL Server, Azure Cosmos Db
-Azure

It may look overwhelming at first, but if you are consistent and persevere through, it is rewarding.
ProgrammingRe: Building A Management Software With Winform C# by SUPREMOTM:
Winform in 2022?
When we are waiting for .Net MAUI.
ProgrammingRe: Am Too Old To Learn Programming ! by SUPREMOTM: 10:16am On Jul 10, 2021
ShadowCracker:
What do you mean no job, there are so many online asp.net jobs.

He could even add Azure to it, then he should have no problem getting jobs.
Maybe he got stuck with classic ASP, winforms and web forms. .Net platforms experienced so much changes since 2016 that you either have to keep up or get left behind.
ProgrammingRe: Kotlin Programmer Here? by SUPREMOTM: 10:05am On Jul 10, 2021
Two weeks into Kotlin.
ProgrammingRe: The Best Microsoft's SQL. Server Course On Udemy by SUPREMOTM: 6:55am On May 29, 2021
Chukwudaalu:
Check YouTube. Search for kudvenkat SQL server tutorial
Kudvenkat SQL server playlist on YouTube is the most comprehensive video tutorials you'll find.

Don't bother with Udemy on SQL server except you just want a jumpstart; their top rated SQL server tutorials are superficial at best; they don't cover beyond 5% of Kudvenkat's playlist.

If you need a book recommendation, try Murach's SQL Server for Developers.
ProgrammingRe: Someone, Please Help Debug This Code by SUPREMOTM: 10:45pm On Mar 07, 2021
just2endowed:
Why so?
Inventory ------- Class Name
trophy ----------- Object Reference Variable
new --------------- keyword for creating an object
Inventory ( ) ---- Constructor of Inventory class


SYNTAX for creating objects from a class is:

Inventory trophy = new Inventory ( )
Inventory goldberg = new Inventory ( )


After you have created the 2 Inventory objects above, you can go ahead to set values for the properties of the objects or invoke the methods in the class; you do that by using the member access operator "."


@toke111 is right
PhonesRe: Which Data Plan Is Best For A Heavy Internet User Like Me? by SUPREMOTM: 8:37pm On Mar 07, 2021
kingimmade:
how many people can share the data subscription?
All Glo plans can be shared with 5 people max, with yourself, the sharer, that's 6 people.
PhonesRe: Which Data Plan Is Best For A Heavy Internet User Like Me? by SUPREMOTM: 4:55pm On Mar 06, 2021
GLO
1 Terabyte for 100k
Valid for 1 year
Average of 100 naira for 1Gig


If you can't afford it alone, get a couple of people to pool the funds to subscribe, then share. It doesn't get better than that
ProgrammingRe: A Thread For Competitive Programming by SUPREMOTM:
Week2 Bonus Question
Language: Javascript
Google Chrome console is used for testing the function.

First calculate the amount of money needed to make calls for 10 minutes, store it in a variable, cost10.

After that, there are only 2 conditions to check for in this order.

1. Is your account balance greater than cost10? If yes, the time is (your balance minus cost for first 10 minutes divided by the charges for 11th minute and above) plus 10. ==>time2

2. Is your account balance greater than or equal to the cost for a minute of call? If yes, the time is (your balance minus cost for 1st minute divided by the charges for 2nd to 10th minute) plus 1. ==>time1

If it doesn't satisfy any of the two conditions above, you have 0.

ProgrammingRe: A Thread For Competitive Programming by SUPREMOTM: 12:18am On Feb 04, 2021
QUESTION 2
LANGUAGE: C#
IDE: Visual Studio

Pseudocode: Mostly same as for JavaScript

Whenever the button is clicked, the function AmicableNumbers( ) is invoked and the list of amicable numbers in the specified range is written to a notepad file on my desktop.

ProgrammingRe: A Thread For Competitive Programming by SUPREMOTM: 12:14am On Feb 04, 2021
QUESTION 1
LANGUAGE: C#
IDE: Visual Studio

Pseudocode: Mostly same as for JavaScript

I created a function GetPerfectNumbers( ), so as to have an idea of the numbers that should return true.

I created a function IsPerfectNumber( ) that takes the number to test as an argument. If the test number is a perfect number, it returns true.

I made it into a desktop application, so, after several test numbers are typed in a textbox, separated by commas and the button is clicked, the boolean values representing the return value of the function for each of the numbers is displayed beside the number.

ProgrammingRe: A Thread For Competitive Programming by SUPREMOTM: 12:12am On Feb 04, 2021
QUESTION 2
LANGUAGE: Javascript
IDE: Visual Studio Code
Chrome browser console is used to test the function.


1. First, I create a while loop with values ranging from the the lower parameter to the higher parameter of the function.

2. For each of the values of the control variable in the while loop, I get the sum of its factors (otherNumber); then I reverse the process immediately (I get the sum of the factor of otherNumber (testForAmicability) and check to see if it is equal to the loop control variable(startValue)).

3. If the test performed in 2 above shows the two numbers are equal, I append the two values to the return value of the function (AmicableResult);

4. I increment the loop control variable by 1 and repeat the steps (2 and 3 above).

ProgrammingRe: A Thread For Competitive Programming by SUPREMOTM:
QUESTION 1
LANGUAGE JavaScript
IDE: Visual Studio Code



Since no factor of a number can be greater than half of the number, besides itself, I made the loop control variable have a maximum value of half the number.

So as to be able to test the function with valid perfect numbers, I had to also create a function that gets all the perfect numbers from 1 to 100000, the function returned 4 numbers.

The results of the tests are displayed on Chrome browser console window.

ProgrammingRe: A Thread For Competitive Programming by SUPREMOTM: 4:42pm On Feb 01, 2021
QUESTION 2

Language: JavaScript

IDE used: Bracket

Tested on Chrome browser console with the displayed results

ProgrammingRe: A Thread For Competitive Programming by SUPREMOTM: 3:19pm On Feb 01, 2021
QUESTION 1

Language: JavaScript

IDE used: Bracket

Tested on Chrome browser with the displayed results

ProgrammingRe: A Thread For Competitive Programming by SUPREMOTM: 4:05pm On Jan 31, 2021
QUESTION 2

Language C#

timeOfDay() method is used to obtain the result.

buttonGetTime_Click() method is used to call the above method when the button is clicked.

I turned it to a desktop application, so you get the results displayed whenever you click a button.

The 3 screenshots below it are examples and the obtained results.

ProgrammingRe: A Thread For Competitive Programming by SUPREMOTM: 3:55pm On Jan 31, 2021
QUESTION 1

Language C#

First screenshot is the code in Visual Studio.

MaximumProductOfAdjacentValues() method is used to obtain the result.

buttonMax_Click() method is used to call the above method when the button is clicked.

I turned it to a desktop application, so you get the results displayed whenever you click a button.

The 3 screenshots below it are examples and the displayed results.

ProgrammingRe: The Most Financially Rewarding Areas In Programing. by SUPREMOTM:
This post is hidden
ProgrammingRe: Dear Programmers, How Do You Remember Your Syntax? by SUPREMOTM: 12:36am On Jul 30, 2020
QuantumR:
Code once, Ctrl C and Ctrl V afterwards...
That's a dangerously bad practice!

Instead, you code once, create methods, classes and assemblies while at it. Import them and use later or forever!!
ProgrammingRe: Javascript Courses: Mosh Hamedani Or Brad Traversy by SUPREMOTM: 1:26pm On Jun 24, 2020
Traversy by far.

I watched Mosh's C# tutorial for beginners, intermediate and advanced on Udemy and I got very little information for all the time devoted. Dude was just touching the surface. I felt like I wasted a lot of time because I would still have to go and read everything from scratch.

Traversy's tutorials are very information-laden.
ProgrammingRe: How Can I Arrange My Layout On Css by SUPREMOTM:
Akhigbeblog:
Good day everyone, we all know if we're browsering with our phones, the webpage layout contents fall under eachother but when you use a bigger screen like laptop or desktop computer to browse the layout contents are arranged in columns. My questions is how can I make my webpage layout work perfectly on both screens?
It is called Responsive Design, and you need to learn it to make your page adapt to all screen sizes. It is made by adding media queries to your CSS.

Your content is not looking okay on all devices because your page is not yet responsive.

You need to write some more CSS rule sets to make that happen. Just look for tutorials on media queries and responsive design and you'll see how it is done; you will not be learning a lot of new stuff; just how to modify your existing style sheets or add a new style sheet to your HTML head tag.

To make responsive design a painless experience, you need to learn how to use some CSS3 properties like Flex-box and Grid instead of Float and also learn how to use units like vh, vw, rem, % instead of px.
ProgrammingRe: Help A Beginner Code This Using Javascript by SUPREMOTM: 2:13am On Jun 10, 2020
kay9:
Nice.

I would have given different prompts for each of the 3 coefficients though... As in:


Simpler and eliminates need for the second alert (i.e. the "Please confirm..." bit).

Still, neat coding.
Okay
ProgrammingRe: Is Learning Js Frameworks Necessary by SUPREMOTM:
3KINGZ18:
I started building web apps with framework i couldn't go back ,frameworks make things when building web applications, they are some things we do with plain JS when building web apps that are just redundant.
ProgrammingRe: Pls Explain This Code For Me by SUPREMOTM:
manuel4real:
i = 1
while i <=5:
print(i)
i = i + 1

What does the line four stands for?

Thanks in anticipation
You have a loop (I'm assuming you know what a loop is/does)

Line 1: You declare a loop control variable, i

Line 2: You define a condition that must be fulfilled for the loop execution to continue

Line 3: If the condition in line 2 is fulfilled, you do something (I'm assuming you know what the print function does)

Line 4: Line four is a condensed/short form of 2 actions.

#1 First, you increment the loop control variable by 1 (Right hand side), i.e you increased the value of i by 1.

#2 Secondly, you re-assign the new value to the variable i (in line 1, you set i = 1, but in line 4, you have changed/increased it to 1+1)

After line 4, the loop execution will return to line 2, so, the next time the loop condition is checked, the value of i will be 2. The loop will continue to run until i has increased to 5 (as stated in the loop condition), then, the condition will no longer be satisfied and execution will move out of the loop.



So, your print(i) function will output the various values of i, that is 1,2,3 and 4, then code execution will move to the next line after your loop.
ProgrammingRe: Is Learning Js Frameworks Necessary by SUPREMOTM: 11:19am On Jun 08, 2020
spartan117:
Correction.
Most JavaScript developers Learn JavaScript first before moving on to frameworks.
Frameworks are still very necessary, they are not just the easier route, they are the better route.
Ok
ProgrammingRe: Is Learning Js Frameworks Necessary by SUPREMOTM:
Bade007:
Do i need frameworks in building web applications...cant i just use html css nd js
You can and you probably should, but if you want paid employment as a JavaScript programmer, I'm 99.9999 percent certain that knowledge of frameworks will be a requirement for employment.

Vanilla JavaScript (plain JavaScript, without framework) hasn't always been as powerful as it is today, so, most web projects were made with Frameworks; maintaining them requires you to understand the framework used.
ProgrammingRe: Help A Beginner Code This Using Javascript by SUPREMOTM: 8:39pm On Jun 06, 2020
Fisayo22:
write a piece of code using javascript that solves second degree equations. You pass the a, b, c parameters of: ax2 + bx + c, and the solve function will compute delta = b2 - 4a*c. Test the sign of delta, and if it's equal to zero, then display (in the console, or better, in the page) the roots of the equation.
COPY AND PASTE it in your code editor, then link the javascript file to your HTML file so you can make use of the browser to view the operations. Ask for clarifications wherever you are confused.

let input = prompt("Enter the coefficients of X squared, the coefficients of X and the CONSTANT respectively, separated by commas, and click OK"wink,

coefficients = input.split(","wink,

a = coefficients[0],

b = coefficients[1],

c = coefficients[2];

alert(`Please Confirm if the information below is correct.\n\nCoefficient of X squared = ${a}\nCoefficient of X = ${b}\nThe constant term = ${c}\n\nNB: If any of the inputs is incorrect, please click OK and refresh your browser to input the correct values`);


let delta = Math.pow(b,2)-(4*a*c),

root1 = (-b - Math.sqrt(delta))/2*a,

root2 = (-b + Math.sqrt(delta))/2*a;

alert("delta = "+ delta);

if(delta >= 0){
alert(`Since delta is a positive number, the roots of the quadratic equation are ${root1.toFixed(2)} and ${root2.toFixed(2)}`);
}
else{
alert("The quadratic equation has complex roots"wink;
}

ProgrammingRe: Funny Programming Memes. Just For Laughs by SUPREMOTM: 2:40pm On Jun 06, 2020
Everyone does it

ProgrammingRe: Funny Programming Memes. Just For Laughs by SUPREMOTM: 2:10pm On Jun 06, 2020
It could take more time to find than was used for writing the code.

ProgrammingRe: Funny Programming Memes. Just For Laughs by SUPREMOTM: 2:08pm On Jun 06, 2020
The beginning of an uncomplicated life.

ProgrammingRe: Funny Programming Memes. Just For Laughs by SUPREMOTM: 12:08pm On Jun 06, 2020
When all the children are mature and the papa is senile.

1 2 3 (of 3 pages)