How did you build a better mental model of what is actually happening in a program/framework/technology, etc.? via /r/learnprogramming


How did you build a better mental model of what is actually happening in a program/framework/technology, etc.?

Someone asked me this question and instead of being able to give them a good answer, it actually made me question my own mental model of how programming languages work. I don't have a CS degree, so I never formally learned the theoretical concepts underpinning modern programming. However, I have haphazardly studied various CS and programming ideas throughout the years. Unfortunately, I realized that while I can do a lot of complex things fairly easily with languages of choice, I don't always know what's really going on under the hood.

Recently, I have been pulled back into the Rails ecosystem and I this issue kind of got to me. So, I started working through a book called "Rebuilding Rails". It's definitely demystified a few things (some I already knew). It also made me a better Rails programmer because it gave me a much clearer mental model of what is actually going on.

I know that the most common advice is to build things. At this point, I've been a professional for a while so I don't need to build another blog to understand. What I need to do is get a better understanding of what is really happening. Right now, I'm starting to work on writing a simple programming language to understand what happens. Any other ideas of how to build a better mental model?

Submitted June 22, 2017 at 09:31AM by Randy_Watson
via reddit http://ift.tt/2rZau4C

VSCode merge conflicts via /r/learnprogramming


VSCode merge conflicts

Don't know if its the right place to ask, but how do I accept current changes in VS Code?

When I click Accept Incoming Change and then stage the file It still shows in VS Code git menu on the left and I can commit.

When I click Accept Current Change and then stage the file It disappears from VS Code git menu on the left and I can't commit because It says that I have unresolved conflicts even tough I accept my changes.

Nothing done: http://ift.tt/2rUQjKe

Accept Incoming and stage:

http://ift.tt/2sFjldK

Accept current and stage:

http://ift.tt/2rVb6go

— & when I try to pull after that: http://ift.tt/2sF0pfi

Committing just shows that there are no changes Pushing shows that I should integrate the changes first

Submitted June 22, 2017 at 09:38AM by Edvinoske
via reddit http://ift.tt/2su9x89

MOOC.fi 008 – Adder [Newbie] via /r/learnprogramming


MOOC.fi 008 – Adder [Newbie]

Hey guys, what am I messing up here? Getting an error on line 14 but I don't understand what I've done wrong :')

import java.util.Scanner; public class Adder { public static void main(String[] args) { Scanner reader = new Scanner(System.in); System.out.println("Type a number: "); int Number1 = Integer.parseInt (reader.nextLine()); System.out.println("Type another number: "); int Number2 = Integer.parseInt (reader.nextLine()); System.out.println("Sum of the numbers: " + int Number2 + int Number1); // Implement your program here. Remember to ask the input from user } } 

I figured out I didn't need int before the names but now it's giving me the sum as if they were two strings, so 1+2 = 12 rather than 3.

Got it working by just putting a set of parentheses around the Number2 + Number1

Submitted June 22, 2017 at 09:46AM by OnceAToaster
via reddit http://ift.tt/2sULAao

I have an SQL database hosted on Azure What’s the best way to allow a user to get data from it? via /r/learnprogramming


I have an SQL database hosted on Azure What’s the best way to allow a user to get data from it?

So I feel like I need to split this application up into two things but I'm not sure how to do it…Like the user needs to get data from the database using LINQ queries but the only way to allow the user to do that is if I include the connection string with the program with the password and everything and I feel like that's a bad idea.

What's the best way to go about this? When I did this before I used PHP to receive connections requests to the database and return data to the user but that's not really an option here as far as I can because I'm using the Azure SQL server.

Submitted June 22, 2017 at 10:19AM by Venne1138
via reddit http://ift.tt/2sUlAfp

[Newbie] MOOC java – Exercise 11 via /r/learnprogramming


[Newbie] MOOC java – Exercise 11

import java.util.Scanner; public class BiggerNumber { public static void main(String[] args) { Scanner reader = new Scanner(System.in); System.out.println("Type a number: "); int x = Integer.parseInt (reader.nextLine()); System.out.println("Type another number: "); int y = Integer.parseInt (reader.nextLine()); if (x > y) { System.out.println("The bigger number of the two given numbers was " + x); } else { System.out.println("The bigger number of the two given numbers was " + y); } 

So the program seems to run fine, outputting the larger of the two values but I can't seem to submit it.

The message I'm met with is this:

You should output text "The bigger number of the two numbers given was:".
You printed: Type a number: Type another number: The bigger number of the two given numbers was 7

import java.util.Scanner; public class BiggerNumber { public static void main(String[] args) { Scanner reader = new Scanner(System.in); System.out.println("Type a number: "); int x = Integer.parseInt (reader.nextLine()); System.out.println("Type another number: "); int y = Integer.parseInt (reader.nextLine()); System.out.println(Math.max(x , y)); // Implement your program here. Remember to ask the input from user } } 

I've updated it using a Math.max function to make it a lot tidier but it's still giving the same message when trying to submit.

Submitted June 22, 2017 at 10:23AM by OnceAToaster
via reddit http://ift.tt/2tSCDfa

Airbnb clone tutorial via /r/learnprogramming


Airbnb clone tutorial

I have an idea to build an Airbnb clone to cater another industry but was wondering what resources I should be looking at to build the clone. I've Googled around but at least the ones I have come across aren't very well done. Cheers. Btw this is just for a personal project, not a real business venture.

Submitted June 22, 2017 at 10:27AM by fedxdelivered
via reddit http://ift.tt/2sUFqr2

Does anyone have any experience with the lambdaschool fulltime bootcamp? via /r/learnprogramming


Does anyone have any experience with the lambdaschool fulltime bootcamp?

I'm not able to find a lot of information about them and I'd love to hear from anyone here who's had success with their bootcamp.

I'm concerned that their guarantee (no tuition until hired) is ambitious and too good to be true; and I'm not able to find any sort of info or accreditation for any of the teachers.

I also found their free online mini-bootcamp on JS this past month fairly disappointing. Although I do see some posts on reddit applauding their python workshop.

Has anyone been through their fulltime program and found a job here?

Submitted June 22, 2017 at 10:34AM by Lachrie
via reddit http://ift.tt/2tSd9i4