Jump to content

  • Log In with Google      Sign In   
  • Create Account

Tutorial Doctor

Member Since 19 Oct 2013
Offline Last Active Yesterday, 06:50 AM

#5311403 Why do most people recommend Python

Posted by on 19 September 2016 - 07:53 AM

I doubt people say use python simply because it is easy. As Scouting Ninja and Kylotan have said, Python is widely available and good for real-world general purpose tasks.


I still say don't choose a language because it is recommended or powerful. First know what you want to create and learn the language/languages that help you create it. Simple as that.


I chose Python because the Pythonistaapp on iPad uses Python and it is one of the best ways to learn app development principles (I learned programming with Pythonista). I also now have Swift Playgrounds

Knowing Python also helped me transition to use the Godot Game Engine. I want to learn C# with the Continuous app also (for more understanding of low level concepts).


There is also Codea which uses Lua. I have to learn Ruby for work if I want a promotion (good incentive if I ever heard one). So it's not about which is best. It is about which is most suited for the task at hand. At the end of the day these are just tools.

#5307897 So, I want to become a game devolper...

Posted by on 25 August 2016 - 02:18 PM

I think if you are a beginner and want to make games, you should try looking at a few videos on game engines you can use. Each game engine requires knowledge of a certain programming or scripting language. These are a few you can research:


Game Maker





I personally like Godot. Easy to get started making games and the language it uses is easy to pick up and powerful. Some things to consider when choosing:



Platforms Supported

Learning Curve (Programming Language, API, and User Interface)

Community Size

Games Catalog


You can check the following sites for games made with various engines:


game jolt

Ludlum Dare

#5304112 Best Way To Comment Code Without Cluttering

Posted by on 04 August 2016 - 09:43 PM

There are two ways I have found that I like to comment code. One way is to describe what the previous or following code does:



Another way is to translate the code (I like this way best):


Lines 132-157 and 198-237 demonstrate this best.

#5288494 Total Begginer needs lot of advice

Posted by on 24 April 2016 - 02:15 PM

No prob about the down vote. You are on the right track though.


I learned programming concepts using Python with Pythonista (an IOS IDE on the iPad). From learning the various libraries included with Python, that lead into other areas of programming (networking, databases, regular expressions etc.), all of which are topics used across the board. That lead to research in web development for a little while. I eventually found the Godot game engine which uses a scripting language based on Python (perfect!). This engine can also be extended using the C++ programming language (great for getting more in-depth programming experience). An easy intro to C++ programming with this engine is making extensions. I could also use Python to make plugins for Blender 3D.


My next goal is to learn Ruby for web app development with Ruby on Rails and also for building plugins for Trimble Sketchup. All of these skills will be useful in creating content that I believe in. The story goes on. The best to you in your pursuits. 


My github repo gave me writing experience and got me a job as a technical writer. 


I have no college education.

#5288475 Total Begginer needs lot of advice

Posted by on 24 April 2016 - 12:41 PM



Imagine that you want to live in your dream house. You have a few options:


1. You could go into the forest and cut down trees to build tools to cut the trees into perfect wooden planks so that you can build your dream house. 

2. You could go to a hardware store and buy both tools and pre-cut wooden planks to build your house.

3. You could buy a house and renovate it.

4. You could search all over the world and find your dream house has already been made and purchase it.


I think backwards. If it is already built, I just buy it. For example, if there is a game out already that was in my head, I play that game and I enjoy whatever entertainment I sought.


I could use templates and hack them to fit my needs.


I could use frameworks and libraries.


I could build something from scratch.


Get a good idea of what you want to do. Find the best way to do it (I like the easiest and fastest myself). Then, learn the languages or tools you need to learn in order to make your dream game. No need to build it from scratch when there are tools that already exist to help you build your idea.


And if you need a bit of help:



#5275156 Visual scripting vs Coding?

Posted by on 10 February 2016 - 11:58 AM

In my continuing study and practice of programming, I have found that the true "skill" of programming is logic and reasoning; problem solving.


The best support of my stance is here:


Whether it be a visual scripting system, Python, or C++, you can't do anything useful without the ability to solve problems using logic and reasoning. 


I would use both if I were you. Don't let tradition hinder you. 

#5272628 Storing AI data in a SQL database?

Posted by on 25 January 2016 - 04:38 PM

Great advice. I will look into all of the above. Thanks ApochPiQ.

#5272142 Game Development Software

Posted by on 21 January 2016 - 07:45 AM

I am wondering why a game engine wasn't recommended, unless I missed something. 


I would recommend Godot:


#5261664 Can a full program be stored in a photo image

Posted by on 11 November 2015 - 02:38 PM

Great information in this thread. And thanks for correcting my understanding. As a few of you have noted, I am wondering about future proofing. 


Looking at this digital era we are in, it seems that no future generations will have evidence of our advancement without having hardware explore the information we transmit through the internet. Hard drives fail and after that the data is lost to us and to future generations. 


However, we still have ancient artifacts from many many generations ago which allows us to explore how civilizations were in those days. The latest way to store information in a more resilient way was/is paper. 


I will definitely look more into Steganography and other keywords mentioned here though. Thanks very much.

#5261239 Can a full program be stored in a photo image

Posted by on 09 November 2015 - 04:31 PM


I was wondering how much data can be stored in a pixel. Could pixels possibly store data other than color, like text? Or could colors represent text in a way? Can colors be converted to text?


Pixels are just data. They can store whatever you want. You could certainly, say, reserve the lowest bit in each R, G or B channels to represent part of your data, with minimal effect on the final image.




This idea came about when thinking about a new type of security, which is really an old type of security. Paper.


Use the correct term. Security has a very specific context when used in computing, and I don't think that's the usage you're referring to. I think you're talking about backing up data on paper using a printed image.


Of course, if you do that, your formerly perfect digital data is now at the mercy of the printing process and the scanning process.


Maybe read:




I was thinking of a use case for this type of system, where authentication is determined by a piece of paper, where part of the security layer is that a piece of paper, on which part of the program resides, has to be scanned into the system for the rest of the system to work. 


It may be a useless experiment, but I am still wondering about other applications. 

#5261235 Can a full program be stored in a photo image

Posted by on 09 November 2015 - 04:27 PM

I read that it would take about 9 million punch cards to store 1 gigabyte of date. That would be a good starting base for me.


Now suppose that the punch card patterns were stored as pixel patterns on a sheet of paper, and read by a computer. It seems like it's more than possible with DPI adjustments and such.


I also ready that punch cards ARE digital storage. No explanation was given as to what that insinuates. 

#5261223 Can a full program be stored in a photo image

Posted by on 09 November 2015 - 04:03 PM

I figured this was the place to ask.


I had an idea, and I supposed people with knowledge in graphics programming and theory could enlighten me. 


I had an idea that paper can be repurposed to backup computers. I don't mean printing the source code of a program on paper. What I mean is that the computer can look at an image, and execute the encoded program. Something like barcodes, but with more memory.


Barcodes store information. QR codes store information. So I tried to store a paragraph in a QR code, and it was too much to handle. 


I was wondering how much data can be stored in a pixel. Could pixels possibly store data other than color, like text? Or could colors represent text in a way? Can colors be converted to text?


This idea came about when thinking about a new type of security, which is really an old type of security. Paper.


Why paper? I don't really know yet. 


Perhaps something like a modern punch code/card system?


Any links to good resources on topics that might be of interest to me would be much appreciated. 

#5249042 Programming scientific GUI's, data and gui layout?

Posted by on 26 August 2015 - 01:24 PM

Lets say I have a class that represents some data (in this example just an array of numbers) I will load from a text file, and store it in an Object data.rawData; Now say I want to double the value of each number. What is the best way to do this?


Python has libraries for data analysis. In this specific case you would use something called list comprehension which can double elements in an array like so:

array = [1,2,3,4,5,6,7,8,9,10]
double = [2*x for x in array]

PyCon is a good resource on lectures for data analysis using Python (You can check youtube for prior events):



This data can be plotted using IPython



And then there is matplotlib:



And numpy:



Maybe this will help?

#5247904 Scrolling background logic?

Posted by on 20 August 2015 - 11:46 AM

What is the logic for an infinite scrolling background given an engine with basic tools?


Also, would this be similar to the logic for a procedural level?


In a basic explanation, anyone care to give it a go?


Right now I am thinking of it like a typewriter. When the head gets to the end, it jumps back to the first position and repeats that. Am I close?

#5245812 What is a wrapper? What is a Decorator?

Posted by on 11 August 2015 - 01:38 PM

When you say that it is a piece of code that envelopes existing code, it sounds much like a function inside of a function. Whereas recursion is when a function calls itself, I am supposing a wrapper is the function that calls another function. Or perhaps even, it returns that same function (slightly modified even). 


I am thinking of a programming analogy (code that is analogous to real life) that demonstrates wrappers and decorators. 


They say decorators are syntactic sugar (easier on the eyes?) for wrappers. So a decorator is a "better way" to create a wrapper? Or is it a better way to apply a wrapper? 


Is my idea still correct? Is it a function that calls or returns another function? From my research, it seems there is a broader definition. 

def candy():
    return "candy"

def wrapper():
    return candy()


Yea? If so, how would this become a decorator? Decorate the wrapper with something? Or do we decorate the candy?