Programming

Is Coding Bootcamp Worth It?

Learn Programming - Tue, 06/19/2018 - 21:49

Hi. I'm a beginner at coding. I have very little experience working with Java from about two years ago, but it's been two years since I've touched it, so I barely remember anything. In other words, I'm as much a beginner as beginners get.

I've been a bit curious about coding recently, though. Web design in particular. I've been Googling around and ended up stumbling upon the concept of coding bootcamps, which, if I'm correct, are 12-week-long super-arduous classes meant to help people learn coding in a short time.

That said, yes, I do want to find a job eventually as a web designer. It just looks so cool and fun. But they cost a lot of money, so that begs the question... are they worth it? Do they really help in finding jobs in the market, or should I just try to learn coding myself and then find a job that way?

Some tips would be greatly appreciated! Thanks :)

submitted by /u/Mofumoku
[link] [comments]

My program is giving me a illegal start of expression error and while expected error: Where should I go for help outside of reddit?

Learn Programming - Tue, 06/19/2018 - 21:38

Here's my code, idk why I'm getting this error, can someone explain it to me please?

import java.util.Scanner; public class VendingMachine{ public static void main(String[] args){ Scanner keyboard=new Scanner(System.in); double chips = 1.25; double soda = 1.00; double skittles = .99; double gum = .75; double water = 3.00; System.out.println("What do you want to buy?"); do{ System.out.println("0. Exit"); stop = opt; if (stop == 0) { break; } int p = keyboard.nextInt(); System.out.println("How much do you want to spend?"); double pay = keyboard.nextInt(); if (p == 1){ if (pay >= chips){ System.out.println("Here's your chips " + p + ", your change is $" + (pay-chips)); } if (pay < chips){ System.out.println("Please insert another " + "$" + (chips-pay)); } } else if (p == 2){ if (pay >= soda){ System.out.println("Here's your soda " + p + ", your change is $" + (pay-soda)); } if (pay < soda){ System.out.println("Please insert " + "$" + (soda-pay)); } } else if (p == 3){ if (pay >= skittles){ System.out.println("Here's your skittles " + p + ", your change is $" + (pay-skittles)); } if (pay < skittles){ System.out.println("Please insert " + "$" + (skittles-pay)); } } else if (p == 4){ if (pay >= gum){ System.out.println("Here's your gum " + p + ", your change is $" + (pay-gum)); } if (pay < gum){ System.out.println("Please insert " + "$" + (gum-pay)); } } else if (p == 5){ if (pay >= water){ System.out.println("Here's your soda " + p + ", your change is $" + (pay-water)); } if (pay < water){ System.out.println("Please insert " + "$" + (water-pay)); } } } } } submitted by /u/saidthaprince
[link] [comments]

I am 15 years old confused python developer help me pls

Learn Programming - Tue, 06/19/2018 - 21:29

Hello guys I am 15 and I am writing python for 1 years I know classes,generator,decorators,advanced level methods for strings and for lists and I know os sys request beautifulsoup pillow,datetime,smtp modules and sqlite as database. So are there any projects that I can do something for it on github or am I really noob? I want to develop something which is open source.And I am really confused pls help me and (I am open for advices)

submitted by /u/suak123
[link] [comments]

Online algorithm and data structure courses

Learn Programming - Tue, 06/19/2018 - 21:26

Are there any good and well known online courses that teach algorithms and data structures that I could work through during summer to get a head start on the next year of university?

submitted by /u/NotAhorseman
[link] [comments]

SpaceVim release v0.8.0

Programming - Tue, 06/19/2018 - 20:53
Categories: Programming

What does import java.util.* mean?

Learn Programming - Tue, 06/19/2018 - 20:47

I'm new to java, I've been seeing import java.util.* across the web on forums and other sites, I'm curious what does it mean? Is it anything like import java.util.Scanner or Random, etc?

submitted by /u/saidthaprince
[link] [comments]

Bad experience in the classroom trying to learn programming, is it better to learn outside of a classroom?

Learn Programming - Tue, 06/19/2018 - 20:47

I recently took a programming class that was supposed to be just an introductory course on python and I just did not comprehend where things go or why is it necessary to have all of these parenthesis and periods in the code; I passed with a C but I hate leaving a class with not knowing what I was supposed to learn. I want to be able to code but some of the things the teacher taught I just didn't understand let alone be able to replicate it or do it by myself; is this common or am I just not cut out for programming? Should I attempt to learn by myself? Have others gone through this? I've heard that python is one of the easiest programming languages to learn so it kind of concerns me that I did not do well in the class.

submitted by /u/spot-of-ginger
[link] [comments]

How do I know if I pasted my code in the right folder in Cyberduck?

Learn Programming - Tue, 06/19/2018 - 20:34

I am just starting to learn how to code and I wanted to see my code in the form of a website on the internet. I have the domain name, the hosting server, and the program to upload with, Cyberduck, but I can't seem to get it to work. Am I placing my code in the right folder, public FTP, or is it wrong all together? Anything is helpful.

I have watched a lot of videos but I can't seem to get the exact results.

submitted by /u/Morty_McFuck
[link] [comments]

Noob questions: [17-22F]: Web Design, advice to someone starting out

Learn Programming - Tue, 06/19/2018 - 20:28

Hello all!

I am considering picking up web design and perhaps couping it with graphic design.

Now, I primarily want to deal with front-end web development as I feel that would be more suited to me as I lean more towards design. I also want something more flexible.

So here are my questions:

  1. How long did it take you to get your first job from the time you started learning web design?

  2. What is the nature of your job in web design? Would you have picked another area of programming or design if you could go back?

  3. Is the market viable for web design as there is a proliferation of free website services (such as weebly, wix, etc?)

  4. How did you go about getting hired? Linkedin? Indeed? Personal network? Other?

All responses are appreciated. Thanks for reading. :)

submitted by /u/Quirky_Tiger
[link] [comments]

WCF - Deserializing referenced classes (specifically working with CSOM and the Project class)

Learn Programming - Tue, 06/19/2018 - 20:15

My knowledge of WCF is a bit shallow and i haven't tried something like this before. I have 2 solutions, one is an ESB and the other handles the business logic. In my ESB i reference the Microsoft.ProjectServer.Client libraries and make use of the Project class in it.

Now I want to use the Project class in a datacontract and pass it to my Business Logic solution but i keep running into an error where i can't deserialize the Project class (Type 'Microsoft.ProjectServer.Client.Project' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. ). Because it is a referenced class i can't add a Datacontract annotation to it and i've tried inheriting from it and adding the annotation to the child class but i get the same response.

I can create a new model and pass that to the business logic and map the fields but I'd prefer to know if it's possible to pass the class through wcf?

submitted by /u/Riajnor
[link] [comments]

I started learning R today. And whenever I reopen my work on RStudio, it's blank. What should I do? Is there something I'm doing wrong?

Learn Programming - Tue, 06/19/2018 - 20:12
  1. I wrote some code under the console on RStudio: I created a graph with three points on it using ggplot.
  2. After I finished, I clicked File --> Save As. I saved the work on my desktop.
  3. However, there is nothing in the file when I reopen it. All that's left is the default instruction thingy that appears every time I open RStudio:

R version 3.5.0 (2018-04-23) -- "Joy in Playing"

Copyright (C) 2018 The R Foundation for Statistical Computing

Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.

You are welcome to redistribute it under certain conditions.

Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.

Type 'contributors()' for more information and

citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or

help.start()' for an HTML browser interface to help.

Type 'q()' to quit R.

I've done Steps 1-3 for maybe 5 times already, and my work is never saved. I decided to just take a screenshot of it. This is probably my first and last day at learning R; it's so frustrating D:

submitted by /u/zarunamuhaha
[link] [comments]

[Python 3.6.5] invalid function call involving default parameters

Learn Programming - Tue, 06/19/2018 - 20:02

Given function definition, determine which function call is invalid

def connect(uname, pword, server = 'localhost', port = 9160): # connecting code connect('admin', 'ilovecats', 'shell.cs.edu') # Valid connect(uname = 'admin', pword = 'ilovecats', 'shell.cs.edu') # Invalid connect('admin', ilovecats', port = 6379, server = 'shell.cs.edu') #Valid

Not sure why number 2 is invalid. I believe it has something to do with positional arguments but not really sure what that means.

Any help will be appreciated. Thank You.

submitted by /u/CaptainPeruvian
[link] [comments]

I can't seem to figure out the best way to host simple json data

Learn Programming - Tue, 06/19/2018 - 20:01

Maybe I'm approaching this with the wrong mind-set, but I've been racking my brain for 2 days trying to figure out the best way to move forward with a hobby project I've been working on. Awhile ago, I wrote a program for logging items dropped in an online video game. It was a great way to learn web app programming, and I'd like to return to it now and redo it with a lot of newfound knowledge that I didn't have the first time around.

One big mistake (I think) I made initially was to have the data for each NPC that you could kill just be stored in a .js file within the application. This file held drop data for all NPC's so it got pretty large and annoying to upkeep. I thought it would be better at first to instead store this data in a database, but after looking into it a lot I'm not so sure. I've never worked with databases, and since this data should change very rarely if at all (only if the developer decides to change monster stats or drops, which doesn't happen often), I feel like a database is a bit overkill.

This led me to instead want to create an api with endpoints for each monster and maybe subcategories like /<monstername>/drops, /<monstername>/stats, etc.... I can't seem to find much of anything about api's that don't involve a database though. I then looked into simply just typing up the .json endpoints manually and hosting them at the right url's, but even then I suppose I'm out of my element.

What's the best way to move forward in your opinion? How do I host .json files where if you visit a url, it spits back .json data as if it were an api endpoint? Am I severely overthinking this and the answer is staring me in the face, or is this not a recommended solution and that's why I can't seem to find one example doing what I want.

Thank you in advance for any help, when approaching this project, this part seemed so simple and I wasn't worried about it, but so far it's caused me the biggest headache.

submitted by /u/sheymyster
[link] [comments]

[C#] How to sort a list of strings containing directories?

Learn Programming - Tue, 06/19/2018 - 19:47

Hi,

I'm programming in C#.

I have a list of strings that represent directories that i want to sort in to the same order that a Windows computer does. All folders at the top, all files at the bottom, and the folders and files are sorted separately.

Eg. A strings that represent directories "C:\", "C:\SomeFolder\AnotherFolder\A File", "C:\SomeFolder\AnotherFolder\A File2", "C:\SomeFolder\AnotherFolder\A File3", "C:\SomeFolder\A File4".

Is there a simple way to do this? At the moment, i'm using list's built in sort method.

I imagine that i could do this the long winded way, where i break each string in to their directory elements. Sort the files and folders at each directory level, where i detect whether the current level contains a file or folder. If it's a folder, put it in a list with the folders, if it's a file put it in a list with the other files. Sort each list, then look at the next level. Ignore directories where the last level looked was a file. etc, etc. But i imagine this is a popular desire and hoping there is something already pre-made?

I've tried searching and the only thing i can see is the Directory order method but it appears, you've got to obtain Directory objects that is obtained using another method that recursively searches the path you've given it for files and folders.

submitted by /u/reddit_user33
[link] [comments]

I want to learn C++, what editor/environment/compiler do you guys suggest to use (Win10)?

Learn Programming - Tue, 06/19/2018 - 19:44

I'm pursuing a Computer Engineering degree (Rising Sophomore) so I know I will use and have to learn C++ at some point, so I've decided to start this summer.

However, "installing" it (setting it up?) doesn't seem to be as simple as different languages.

I've used (Python, MATLAB, Octave) which come with everything you need (Python only needs Anaconda). Does C++ not work this way, because of being closer to hardware (deep-level programming language)?

I've tried to Google what the best de facto options are to choose with C++, but I'm not sure if I have bad reading comprehension or what—there are so many 'things' for C++ online that I'm not sure what I need to get to just write code and run scripts/functions.

I have Windows 10 so it seems to complicate things, people tend to use Linux/Mac for C++ it looks like.

Anyway, if there's anyone out there who actually uses Windows and C++, what do you use/what do you suggest using so I can start learning and practicing?

submitted by /u/JoyconMan
[link] [comments]

What was your experience like when learning programming

Learn Programming - Tue, 06/19/2018 - 19:39

Hi,

I'm a newbie in programming and I am currently learning python. I am currently undertaking a degree in mechanical engineering. However I've only just realised that I should've done computer science instead after learning the power of programming lol. But it was my degree that got me interested in programming when using it in my degree opened my eyes as to what it could do when I was learning Matlab along with the interest of trying to automate my part time job as well.

So I'm just interested in just how you guys started programming and where you are now. For all your guys that know how to program, how did you guys become interested in programming? What made you guys want to learn it? What are you currently doing now? If you could go back to being a beginner, what would you change? What challenges did you face that I could possibly expect and how you tackled them?

In a nutshell, I'm just really interested in hearing about other programmers experiences and how you got to where you are now as it intrigues me because a lot of programmers I've spoken to all generally come from different educational backgrounds and experiences. Any responses would be much appreciated.

submitted by /u/xyzabc123410000
[link] [comments]

How hard is an associates degree in programming?

Learn Programming - Tue, 06/19/2018 - 19:12

I'm still in high school but starting ccp this upcoming year. While I was scheduling classes I wanted to take a few programming classes. I asked my advisor and she said I could finish an associates degree by the time I graduate. Ill have to take summer classes which Im not worrying about.

What I'm worried about is if the classes are going to be too hard for me and also is it worth getting an associates degree or should I work towards what Im planning on going to college for already?

submitted by /u/HeadachemanJan1
[link] [comments]

Pages