POS System

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,413
Reaction score
7,522
Location
Bellville
Hi guys,

I want to start learning programming and I though of a nice test project for me to learn hands on would be a POS system.

I have a few questions thou:

Number one what would be the ideal language in this case? I must admit I am biased considering Java...?

Number two if I want to create a user login what language besides java would be best to execute something like:

Code:
  Bool Check _User (User ID, Password)
{

Check if user ID exist in the database.

If valid user ID then

	Get the corresponding password from database and decrypt it.

	If (Password_entered = Decripted_password_from_database) then

		Find the type of user.

		Based on the user type, enable the access to the different 
modules.

Enter the system.
	Else
		Display_message (‘Invalid User’).

		Check the count of wrong entry of user ID / password.

		If ( No. of times > 5 )
			Lock the user ID.
		Else
			Increase the count for wrong user ID.
		End if
	End If
End If

}
 
I am total noob dude like if I start to learn a language now I want it to be capable of doing everything :) So yes you are going to get a shiat load of ubernoob questions from me in this thread and i apologize in advance.
 
I am total noob dude like if I start to learn a language now I want it to be capable of doing everything :) So yes you are going to get a shiat load of ubernoob questions from me in this thread and i apologize in advance.

Rather do this.

Go to youtube. Get a java tutorial series. Follow it. Keep following it. Do what they tell you to do.

Don't do this.

Don't just start with a random project to try and code it, you won't get anywhere and won't learn the basics properly.
 
Rather do this.

Go to youtube. Get a java tutorial series. Follow it. Keep following it. Do what they tell you to do.

Don't do this.

Don't just start with a random project to try and code it, you won't get anywhere and won't learn the basics properly.

Valid point just thought a hands on project would be better than countless hours of watching videos.

I can do HTML like boss thou, but never really ventured into programing.


Okay cool I will follow some java tutorials.


Java in general is it worth learning ?
 
Valid point just thought a hands on project would be better than countless hours of watching videos.

I can do HTML like boss thou, but never really ventured into programing.


Okay cool I will follow some java tutorials.


Java in general is it worth learning ?

Yes. Absolutely worth it. Like I say, once you get to grips how everything fits together, you should be able to easily jump into something like android development etc.

Don't just watch the videos, do the exercises that they tell you to do.
 
You cant just start coding a system once you know a language. You will need a detailed design and technical design so you know what you are trying to achieve, and to see if requirements are being achieved. Read up on the basics of the SDLC.
 
You cant just start coding a system once you know a language. You will need a detailed design and technical design so you know what you are trying to achieve, and to see if requirements are being achieved. Read up on the basics of the SDLC.

That part I have done :)
 
Java? /pukes
Rather learn C# and use MVA it's way better than any YouTube video.
 
I know C# is ideal, but I am uber noob and afraid c wil be too daunting ? What is MVA ?
Microsoft Virtual Academy, basically learn mostly anything MS related and some other stuff.

If you do C# you can easily jump to Java or anything after that.
 
Code:
  Bool Check _User (User ID, Password)
{

Check if user ID exist in the database.

If valid user ID then

	[B]Get the corresponding password from database and decrypt it.[/B]

	[B]If (Password_entered = Decripted_password_from_database) then[/B]

		Find the type of user.

		Based on the user type, enable the access to the different 
modules.

Enter the system.
	Else
		Display_message (‘Invalid User’).

		Check the count of wrong entry of user ID / password.

		If ( No. of times > 5 )
			Lock the user ID.
		Else
			Increase the count for wrong user ID.
		End if
	End If
End If

}

What ever you decide to go with, just don't do that... Whatever you do, don't do that...
Rather use a 1-way hashing algorithm (SHA256 is probably best) to store the password in the database.
Then when a user logs in, run the same hashing algorithm and check the result against the database.
That way the password can never be decrypted.
Also give some consideration to salting the password with the username and possible another value to ensure that even if 2 users use the same password, this is not immediately obvious when looking at the table.

I would really recommend .NET though. It's a lot easier to learn initially.
 
What ever you decide to go with, just don't do that... Whatever you do, don't do that...
Rather use a 1-way hashing algorithm (SHA256 is probably best) to store the password in the database.
Then when a user logs in, run the same hashing algorithm and check the result against the database.
That way the password can never be decrypted.
Also give some consideration to salting the password with the username and possible another value to ensure that even if 2 users use the same password, this is not immediately obvious when looking at the table.

I would really recommend .NET though. It's a lot easier to learn initially.

Thank you so much for that advice, best practises will be something I have to read up about
 
So many thanks you's in this thread. I appreciate the nodge in the right direction guys.
 
Top
Sign up to the MyBroadband newsletter
X