Which course MITx6.00.1 or Introduction to Python by Microsoft should I take to learn Python via /r/learnprogramming


Which course MITx6.00.1 or Introduction to Python by Microsoft should I take to learn Python

I am a CS graduate with good knowledge of algorithms and programming and having good understanding of Java. I want to learn python programming so which course is be among the two courses mentioned above is good to learn python.

Submitted August 16, 2017 at 06:06AM by iam_bond007
via reddit http://ift.tt/2i51nQp

Its very hard for me to comprehend pseudocode in my head before coding. What to do? via /r/learnprogramming


Its very hard for me to comprehend pseudocode in my head before coding. What to do?

In my "Head First Java" book there is always a section of prep code (pseudocode) before you actually code. It says its important to do that before jumping the gun and coding straight away, together with test code.

But its all gibberish to me. I really try to go over the prep code and realize what kind of program I should be making, but it doesnt make sense in my head. I have to see the actual code.

What should I do? From my understanding you are supposed to make a mental picture of programs with prep code. How will I be able to read software specs and realize what to do?

Submitted August 16, 2017 at 03:38AM by BigBootyBear
via reddit http://ift.tt/2uHPEgj

Any ideas for good mini-projects to demonstrate the pros and cons of a variety of languages? via /r/learnprogramming


Any ideas for good mini-projects to demonstrate the pros and cons of a variety of languages?

I was reading a thread on r/learnpython a while ago, which was talking about the worst things about the language.

One thing that kept on coming up was how poorly async was implemented in comparison to other languages (Go, etc.)

It got me thinking about the way in which languages are designed and the way in which they can be compared.

I was wondering if anyone had any suggestions for mini projects/scripts/functions/classes for people to code themselves to demonstrate how well things can be implemented, and how poorly they can be implemented.

e.g.

  • Coding an asynchronous [something simple] in python (arguably bad implementation) versus coding the same thing in Go (arguably good implementation)
  • Performing file operations in python or bash vs Java
  • Doing something memory unsafe in C vs Rust

And so on.

Submitted August 16, 2017 at 03:11AM by victoriabittahhhh
via reddit http://ift.tt/2wOPmSp

Got some time to kill before I start my first year of Computer Science, What Python libraries do you recommend I play around with during this time? via /r/learnprogramming


Got some time to kill before I start my first year of Computer Science, What Python libraries do you recommend I play around with during this time?

Only really experimented with Flask and Django so all suggestions would be appreciated!

Submitted August 16, 2017 at 02:17AM by PerfectByte
via reddit http://ift.tt/2uHV62N

Best web hosting options for junior developer blog and other questions via /r/learnprogramming


Best web hosting options for junior developer blog and other questions

I have in worked on quite a few WordPress sites in the past nine years. I've always signed up with a host (GoDaddy or equivalent) and used their super simple WordPress install wizard.

Now I am teaching myself web development and I my mind is truly blown over what services there are to host a website for a developer. And I am still trying to accept that everything I thought I knew about web development with my experience in WordPress means very little in the scheme of things!

I see there are three types of web hosting: IaaS, PaaS and SaaS.

I am thinking I want to go with PaaS if I want to work on a MEAN or Django based stack.

I've already used a free year of AWS hosting podcast files on a S3, but I'm starting to understand that there are many other services with AWS that can act like PaaS.

Now I've heard of Heroku. Is cloud hosting the right choice for me?

Should I go to a GoDaddy type host?

Basically I want a domain like www.bobbs.com for example and I want to put a blog CMS at blog.bobbs.com and another project at bobbs.com/project for a portfolio of sorts.

I currently have a premium Wix site for my band on another domain that I'd like to move into the same host once the wix plan expires and I feel comfortable rebuilding it from html/css/JavaScript on my own framework.

So I need advice on what kind of hosting I should use and I also want to know if I can have multiple frameworks under the same domain so I can try out different stacks. Like having Django at http://ift.tt/2uHUgmH and MEAN stack at http://ift.tt/2v02vGc for example.

I am a super noob but I have read that the best way to learn is to jump into a project and I want to start with making a blog (that isn't WordPress, But some other CMS that is more modern, open to suggestions)

Thanks for any advice

Submitted August 16, 2017 at 01:33AM by Bob-BS
via reddit http://ift.tt/2v0zuKr

Anybody want to check out my new game? I would love some feedback! via /r/learnprogramming


Anybody want to check out my new game? I would love some feedback!

It's similar to the board game 'A Fake Artist Goes to New York'. I'm not trying to advertise it, it's still very much a WIP but after a fair bit of time with just me looking at it, I could use a fresh perspective. I'm applying to Junior Web Developer positions now in hopes of breaking in and this is becoming my de facto primary portfolio project. So I'm hoping it's not a total turd!

Link: http://ift.tt/2uHGfpa

Source Server: http://ift.tt/2v08tH9

Source Game Client: http://ift.tt/2uHF5du

Thanks for any feedback you have!

I'm hoping for feedback with one eye towards finding employment rather than releasing a finished game. Because it's not intended for wide release there are plenty of caveats on the way to creating a minimum viable portfolio project – some will be fixed shortly:

-Images are very preliminary and not optimized.

-It's only intended for notebook screens and above. Touch and mobile are not supported – for now.

-It's a multiplayer game which poses difficulties for testing – a real game should have 4-8 players, I've allowed a minimum of two for testing purposes.

-You can sign up with whatever fake email you want, it's only verified if you reset your password.

-If a player quits mid-game players will be stuck and have to create a new game room. (Kill switch to be added soon)

-I'm using requestanimationframe for the timer right now which means if a player switches tabs on their turn the game will be stuck.

-If you really like the game and play a couple rounds, you may get repeat clues. There are only 20-30 available clues right now for testing.

-If you go into the client code you'll notice a conspicuous absence of redux/flux.

Submitted August 16, 2017 at 01:35AM by Brabbler
via reddit http://ift.tt/2uHGLni

I Was asked to describe the purpose of a jS code in a technical interview. I can only understand a part of it – trying to fully understand it. via /r/learnprogramming


I Was asked to describe the purpose of a jS code in a technical interview. I can only understand a part of it – trying to fully understand it.

I was applying for a technical role that is a bit out of my skill set, but I tried anyways. I was given a technical test during my interview and I wasn't able to answer the final question. I was honest in the fact that I didn't know. At this point, I don't even care if I get the job, I'm just looking for help/guidance in how to articulate and understand what this does for my own sake. Thanks in advance for any help!

The question was – explain what the following code is doing.

function myFunction(myArray) { if ( myArray == undefined || myArray.length == 0 ) throw "error"; var x = myArray[0]; for ( var i=0; i < myArray.length; i++ ) { if ( myArray[i] > x ) x = myArray[i]; } return x; } 

So, I really don't have a strong understanding of arrays, or how they're leveraged. But here is my best go at describing what I do understand from this.

  1. If the array, "myArray" is undefined or the array length (the allocated space?) = 0 then throw "error".
  2. The "error" doesn't actually get displayed unless I catch it and choose to display it? So it's really just something on the back end, right?
  3. Define variable x = myArray[0]…x = an array
  4. From what I understand, the 0 in the brackets means that the allocated space for the array myArray is 0
  5. x will be equal to array myArray at each increment until the end requirement is met
  6. the index variable i = 0, so it is starting at 0
  7. It has to remain less than myArray.length – the allocated space, which in this case is 0
  8. and the index variable i goes up in increments of 1 as denoted by 1++(if the allocated space was greater than 0)
  9. The last part is what I really don't understand. Is the for portion only valid if myArray[i] is > x? Could someone explain this to me? Is x = myArray[i] the default otherwise?
  10. I think that this is going to be considered undefined because of the length/allocated space in the question.

Additionally, how would you display both the error message and the returned value of x? i tried to make the myArray[0] larger, say myArray[10] and use document.write(x) at the end of the script, but nothing would display. Do I actually need to define what is within the array myArray, like each incremental value?

EDIT: I can't upvote all these responses enough. The concept is easy but the details are something I need to absorb and play with more. ha. Maybe followup questions to come.

Thank you!

Submitted August 15, 2017 at 10:40PM by noogi1207
via reddit http://ift.tt/2uO08a6