coding
-
YouTube Tutorials
My all time favorite tutorial maker Derek Banas has an extensive catalogue of programming tutorials on his Youtube channel. I’ve used those a lot, especially in my studies. His series on design patterns are golden! I really like the tempo in them. Very hands-on and very organised. He has a bunch of videos that covers…
-
(C#) Generate random readable passwords
Here’s a super simple function that generates humanly readable passwords by weaving random consonants and wovels. The generated passwords are by no means secure. I did this for an application used to launch game servers and wanted to make the passwords be easy to communicate over Skype.
-
(C#) Sort lists
Lets say you have a list of person objects (List persons) You may use Sort to update the existing list. [c language=”#”] personsList.Sort((x, y) => string.Compare(x.Name, y.Name)); [/c] or OrderBy to produce a new, ordered list. [c language=”#”] var newPersonsList = persons.OrderBy(x => x.Name); [/c]
-
(PHP) Simple pagination
Here’s a simple way to paginate when getting large amounts of posts from the database.
-
A couple of principles when learning how to code.
Principle 1. Always have a clear image of what you want to do BEFORE you start writing your code. Then break it down in logical instructions – making an algorithm. An algorithm is a step by step instruction on how to solve a specific problem. You might think of it as a recipe. If you…