r/Learn_Coding • • Oct 10 '18

15 yr old teaching code!!!

2 Upvotes

r/Learn_Coding • • Jul 23 '18

Starting Up with Coding Business

2 Upvotes

Hello Reddit!

Allow me to introduce myself. My name is Jack and I am interested into starting a business called KeyMaster Coding, a new effective business that teaches people how to code in a variety of ways. Please take the time out to fill out the surveys which will help me know your preferences and help make my business more effective.

r/https://goo.gl/forms/04WOGo8AAaFgIGvx1

https://goo.gl/forms/XE5ego1mHHGYuQ2l2

https://goo.gl/forms/UnHsaUkPfuC1b0TM2


r/Learn_Coding • • Jun 26 '18

Running Macros Automatically

2 Upvotes

Hi All, I was wondering if anyone can help me figure out what language I should work with to run macros in MS word. Basically I have around 10 macros I need to run on about 100 documents. All the macros get budled into one that runs them all per document but I still need to open and save each document individually. What should I use to automate this so I can just point to a folder and have it run on all documents?


r/Learn_Coding • • Jun 14 '18

Does it have a name when a statement also ends a function?

2 Upvotes

I just learned that return also ends the function, so I was wondering if there if there is any way to watch out for these things.

Is it just with experience that you learn these things or is there any logic behind it?


r/Learn_Coding • • May 08 '18

Domino animation in 10 lines of Python in Blender 3d

Thumbnail
slicker.me
2 Upvotes

r/Learn_Coding • • Apr 29 '18

Multiplying arrays

2 Upvotes

I am trying to write a function that will multiple 2 two-dimensional arrays, (2 matrices basically), but I keep getting stuck on how the logic would go. So far I’m trying to implement the dot product, but I keep getting a result that’s crazy high. I’m thinking my function is looping one too many times. Any feedback would be much appreciated.


r/Learn_Coding • • Apr 27 '18

Again, can’t get my main.css to connect to my index.html. Help. Both of the save locations are in documents/sublimetext and this same link just worked . Any suggestions?

Post image
2 Upvotes

r/Learn_Coding • • Apr 26 '18

I need help with java/processsing code

2 Upvotes

I dont know much about Java/Processing, but I'm working on a project right now and I need help. So basically in Processing I've assigned a sound file and a movie file to a key (1-6). The sound works, but my movie file won't play. Can anyone help me? Here is my code: import processing.sound.; import processing.video.;
AudioDevice device; SoundFile[] file;
Movie myMovie1; Movie myMovie2; Movie myMovie3; Movie myMovie4; Movie myMovie5; Movie myMovie6;

StringList inventory; void setup() {
size(1440, 1024);
myMovie1 = new Movie(this, "crying.mov");
myMovie1.stop();
myMovie2 = new Movie(this, "dancing.mov"); myMovie2.stop();
myMovie3 = new Movie(this, "jungle.mov");
myMovie3.stop();
myMovie4 = new Movie(this, "powermov.mov");
myMovie4.stop();
myMovie5 = new Movie(this, "garden.mov");
myMovie5.stop();
myMovie6 = new Movie(this, "cole.mov");
myMovie6.stop();
device = new AudioDevice(this, 44100, 1024);
file = new SoundFile[65];
file[0] = new SoundFile(this, "Ex-Factor.mp3");
file[1] = new SoundFile(this, "yo.mp3");
file[2] = new SoundFile(this, "afro.mp3");
file[3] = new SoundFile(this, "power.mp3");
file[4] = new SoundFile(this, "fruit.mp3");
file[5] = new SoundFile(this, "neighbors.mp3");
}
void movieEvent(Movie m){
m.read(); }
void keyPressed() {
if(key=='1'){
myMovie1.play(); }
if(key=='2'){
myMovie2.play(); }
if(key=='3'){
myMovie3.play(); }
if(key=='4'){
myMovie4.play();
}
if(key=='5'){
myMovie5.play();
}
if(key=='6'){
myMovie6.play();
switch(key) {
case '1': file[0].play(1.0, 2.0);
break;
case '2':
file[1].play(1.0, 2.0); break;
case '3':
file[2].play(1.0, 2.0);
break;
case '4':
file[3].play(1.0, 1.0);
break;
case '5':
file[4].play(1.0, 1.0);
break;
case '6':
file[5].play(1.0, 1.0);
break;
} }


r/Learn_Coding • • Apr 14 '18

Does anyone know about "logic bricks"?

2 Upvotes

I've been introduced to "logic bricks" in the "blender game engine", from the company "blender".
I'm no expert in coding so this seems to be much simpler to me despite it obviously being less flexible than straightforward coding but can anyone tell me what the general name for these "logic bricks" and 'other module based logic interfaces' is in computer lingo because when googling it I only see links to blender so I've come to think that the term "logic bricks" is only used in blender.
I'd really like to know the name so I can research more about it.


r/Learn_Coding • • Mar 10 '18

Hi! I'm new to coding, and I've been taking a few free courses recently, but I have a question. You see, I only have a laptop and I would like to know if it's possible to code on a laptop or should I upgrade to a dedicated computer tower/monitor.

2 Upvotes

I have a Chromebook so idk what I should do


r/Learn_Coding • • Feb 20 '18

FINXTER.COM's DAILY PYTHON PUZZLE How fast can you create strings? Puzzle @ https://app.finxter.com/learn/computer/science/401

Post image
2 Upvotes

r/Learn_Coding • • Feb 13 '18

Hoping to start learning by making a basic game, what are some good resources and tips for starting

2 Upvotes

The game being a 2d orbital rts at its simplest, a very basic look overall.

How difficult would something like that be to learn how to do


r/Learn_Coding • • Feb 11 '18

Navigation bar demo

Thumbnail skptricks.github.io
2 Upvotes

r/Learn_Coding • • Jan 17 '18

Anyone know anything about Xcode?

2 Upvotes

I’m new to coding. Where do I start? I want to be able to work with coding for apple and I heard that Xcode is the way to go. Is there something that I should learn first?


r/Learn_Coding • • Jan 13 '18

How does This site collect News information/Data and then display it?

Thumbnail feedsperminute.com
2 Upvotes

r/Learn_Coding • • Dec 28 '17

Help with an exercise! (Phyton)

2 Upvotes

Hi guys I'm in trouble with an exercise. My teacher asked me to make a program that solve mastermind. The rule of the mastermind in this case are the following: -Numbers from 0 to 9 without repetition. -Codes from 6 to 8 digits. -The answers is random so every time that the program make a guess the order of the X/Y is random( usually the answer is X/Y where X is the number of the correct numbers at the right position and Y the number of the correct numbers in the wrong position) .

Does anyone have a clue on how to solve this exercise? Sorry for my English 😅


r/Learn_Coding • • Nov 20 '17

Need help with some html coding.

2 Upvotes

Ok so I've been trying to learn HTML/CSS through grok learning, and I'm stuck on a lesson where we have to format a webpage about Rome and whatnot. the code is below, and its saying my presentation doesn't directly, visually, match what they're expecting. can somebody help me for the love of god? lol. spent about 45 minutes on it so far.

EDIT In my text field when i go to post this, it looks great, everything is correct formatting wise, just when i actually post it, it looks like shit. hahah.

<!DOCTYPE html>

<style> p { text-align: justify; width: 700px; font-size: 20px; margin-bottom: 30px; margin-top: 30px; margin-left: 60px; line-height: 1.6; } h1 { width: 700px; text-align: center; font-size: 32px; line-height: 1.6; } </style>

<img src="hero.jpg" alt="Cropped triangular front of the Pantheon in Rome." style="width:100%">

<h1>Day 5 - Rome</h1>

<p> So today we decided to visit the Pantheon, it was pretty awesome on the inside but those photos didn't turn out so well. I've included a picture from the outside, you can see how crowded it was! </p>

<p> The Colosseum is also a must-see for any trip to Rome, it's huge! And it's hard to get a photo which really captures how big it is. The line at the colosseum was long, but if you buy tickets online and show the barcode on your phone it's much faster. The museum inside was pretty awesome too, and comes with an audio guide. </p>

<p> We found a little gladiator helmet at a souvenir store, so we had to buy it for Federbear. It's a bit big and surprisingly heavy, we think it's actually meant to be a paperweight. </p> <p> <img src="colosseum.jpg"alt="Inside the ruin of the Colosseum with bear wearing gladiator helmet." height="150"> <img src="trevi.jpg"alt="The Trevi Fountain." width="100" height="150"> <img src="pantheon.jpg"alt="Outside view of the Pantheon." height="150"> <img src="inside.jpg"alt= "Inside, looking up at the domed ceiling of the Pantheon." height="150"> </p> <p> As a last bit of fun, I'm not sure where this was from, but this Lion has the weirdest facial expression, and check out the tiny bird perched on top! </p> <p> <img src="lion.jpg"alt="Statue of a lion with a small bird on the head." width="700"> </p>


r/Learn_Coding • • Nov 19 '17

Having trouble editing a class in c++

2 Upvotes

I have code that inputs a string into a class, sets variables based off of that string, then in a different function it edits the variables and a different function that gets the variables. However it only returns the initial set values of the variables not the edited version.

the main file:

    Enemies myEnemy;
    if(randomNumber<7)
         {
            myEnemy.setEnemyType("goblin");
        }
        else if(randomNumber<9)
        {
            myEnemy.setEnemyType("spider");
        }
        else
        {
            myEnemy.setEnemyType("ghost");
        }
    string mypick;
    int edit;
    while (myEnemy.getStats("health")>0 && 
MyHero.getStats("health")>0)
{
    cout << "The " << myEnemy.getEnemyType() << " has " <<  
myEnemy.getStats("health") << " health"<< endl;
    if(MyHero.getStats("speed")>=myEnemy.getStats("speed"))
    {
        cout << "what would you like to do?" << endl;
        cout << "attack         item" << endl;
        cout << "weapons        run" << endl;
        cin >> mypick;

        if (mypick=="attack" || mypick=="a")
        {
            cout << endl << "What kind of attack do you want to do?" << endl;
            cout << "strength           speed" << endl;
            cout << "knowledge          sanity" << endl;
            cin >> mypick;

            edit=(myEnemy.getStats("health")-(abs(MyHero.getStats(mypick)-myEnemy.getStats(mypick))));
            myEnemy.editStats("health", edit);


            cout << mypick << " " << myEnemy.getStats(mypick) << endl << endl;
        }

edit function:

void Enemies::editStats(string stats, int edit)
{
int tempStat;
    if (stats=="strength")
    {
        tempStat=enemy.getStrength()-edit;
        enemy.setStrength(tempStat);
    }
    else if (stats=="speed")
    {
        tempStat=enemy.getSpeed()-edit;
        enemy.setSpeed(tempStat);

    }
    else if (stats=="knowledge")
    {
       tempStat=enemy.getKnowledge()-edit;
       enemy.setKnowledge(tempStat);
    }
    else if (stats=="sanity")
    {
        tempStat=enemy.getSanity()-edit;
        enemy.setSanity(tempStat);
    }
    else if(stats=="health")
    {
        tempStat=enemy.getHealth()-edit;
        enemy.setHealth(tempStat);
    }
}

get function

int Enemies::getStats(string stats)
{
if (stats=="strength")
    {
        return enemy.getStrength();
    }
    else if (stats=="speed")
    {
        return enemy.getSpeed();
    }
    else if (stats=="knowledge")
    {
        return enemy.getKnowledge();
    }
    else if (stats=="sanity")
    {
        return enemy.getSanity();
    }
    else if(stats=="health")
    {
        return enemy.getHealth();
    }
}

set function

void Enemies::setEnemyType(string t)
{
    else if(type=="goblin")
{
    enemy.setHealth(50);
    enemy.setStrength(20);
    enemy.setSpeed(25);
    enemy.setKnowledge(5);
    enemy.setSanity(5);
}

else if(type=="spider")
{
    enemy.setHealth(35);
    enemy.setStrength(10);
    enemy.setSpeed(60);
    enemy.setKnowledge(25);
    enemy.setSanity(40);
}

else if(type=="ghost")
{
    enemy.setHealth(40);
    enemy.setStrength(0);
    enemy.setSpeed(30);
    enemy.setKnowledge(30);
    enemy.setSanity(60);
}
}

r/Learn_Coding • • Nov 02 '17

embedded systems course in bangalore

Thumbnail
learnbay.in
2 Upvotes

r/Learn_Coding • • Oct 22 '17

Need some help getting my file IO/array code to work.

2 Upvotes

Hello! I need help getting code to run properly on C++,

my code looks like this:

int fillArray(string filename, float array[][5])
{
    ifstream myfile;
    int count=0;

    string fileToString;
    int numberOLines=0;
    float insert_array;

    myfile.open(filename.c_str());
    //check if file opened
    if (myfile.fail())
    {
        cout << "ERROR: File <" << filename << "> could not be opened\n";
        return -1;
    }
    else    
    {
        string newString;
        myfile.ignore(1,'\n');  //ignore the first line of code
        int i=0;


        while(!myfile.eof())    //while it is not the end of file
        {
            int j=0;            
            int k=0;
            myfile >> fileToString;     //convert file to string

            while(i<fileToString.length())     
            {
                j=i;
                if(fileToString[i]==',')    //if the character at i is a ',' ...
                {
                    array[j][k]=stof(fileToString.substr(0,i-1));   //change everything before that to a float in an array
                    fileToString.erase(0,i+1);      //erase that portion of the string
                    k++;
                i=-1;  //start over with changes string
               }
               i++;
            }
            count++;
            j++;
        }
    }
    
    return count; //output how many lines there are
}

it receives a file like this:

Assignment1, A2, A3, A4, A5

90.2, 80, 0, 75.4, 98.2

94, 93.5, 92, 88, 87.5

80.2, 76, 88.2, 90.1, 82

The main just takes a blank 2D array of 100 by 5, and a filename and inputs them into fillArray.

the function runs but gives me an error: terminate called after throwing an instance of 'std::invalid_argument' what(): stof Aborted (core dumped)

I don't know how to fix it, and as a result am stuck and can't finish my assignment. Any help would be very appreciated!

also sorry if the code is messy, i'm fairly new to coding...


r/Learn_Coding • • Oct 12 '17

Java 8 Example to filter a Map

Thumbnail
thatsjavainfo.com
2 Upvotes

r/Learn_Coding • • Oct 03 '17

How do I build a voice dialer app for ios or andriod?

2 Upvotes

What is the difficulty level? I am n00b.

Where can I learn more about it?

Thx


r/Learn_Coding • • Aug 19 '17

Coding Phyton

2 Upvotes

I would like to learn Phyton, I currently don't know much about coding/programming besides Tableau/SAS.

Do you know of a good online resource to learn Phyton or get the fundamentals of it?

Also, if you know Phyton, what are some recommendations you could share? Did you experience any hurdles, if so, how did you overcome them?

Any info on Phyton will be greatly appreciated.


r/Learn_Coding • • Jul 26 '17

Need Advice : Mobile Application Development. How to get started ?

2 Upvotes

Hey guys, Over the past few years I've been learning the basics of programming over several languages (C ,C++ , Python, Java). However, much of these are mere introductory exercises to get to know their tools/controls (loops, pointers, classes & OO concepts)

I feel like if I want to grow and learn more, I need get practical and make real applications and software. I just want to ask you guys here on Reddit for tips on where best do I get started and how I may comfortably begin to transform my code into applications with good interfaces.


r/Learn_Coding • • Jun 22 '17

Where to Start

2 Upvotes

Hello! I just turned 17 and have decided it would be beneficial for me to learn code. I'm an aspiring entrepreneur and have owned a few businesses before (currently only a lawn care business and in the process of a clothing brand). I want to learn how to make a website software at the level of Clickfunnels, MarketHero, or Leadpages. I've started learning from Code Academy and I think learning HTML would be the most beneficial for this task. I would love to make a software like this as soon as possible. I thought I'd ask some people who obviously have more knowledge than me. Am I learning the right language? Is Code Academy a good place to start? Is it even worth me learning for a project like this? If so where should I go from here? Thank you all for taking the time to read this.