• Breaking News

    Monday, March 26, 2018

    Avoiding Opinion Overload will make learning easier learn programming

    Avoiding Opinion Overload will make learning easier learn programming


    Avoiding Opinion Overload will make learning easier

    Posted: 25 Mar 2018 07:56 AM PDT

    I see a lot of posts around "Is X better than Y?", is "X worth learning?", etc. And I really think this is because early learners are dealing with such a huge gamut of information on the subject of getting started they often just stall completely. I decided to write a piece on it and I hope readers of this sub get something out of it! https://blog.blindside.io/learning-to-program-with-a-purpose-8dc383983ff

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

    Entering a Computer Science program in the fall... what should I work on now?

    Posted: 25 Mar 2018 08:37 AM PDT

    As the title states, I'm entering a Computer Science undergrad program in the fall, but I've been self-teaching for a while now.

    A little background: I'm 29, have already completed an undergrad in an unrelated field (music) and am now choosing to pursue programming as a career. I've been fascinated by it since I was a kid, and probably should have started pursuing it a long time ago. Well, I'm taking the leap now. I've been self-learning C# for two years, C++ and HTML/CSS for a couple of months, and will soon work on JavaScript. These are for personal interest, and not strictly as a means to "get ahead" at school, hence the strange mishmash and order. I should mention, I haven't done proper math since high school (10+ years), and never did Calc (only did pre-calc).

    My question is, what sort of things can/should I be studying now to make my time at school easier/more productive/beneficial?

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

    I love the book 'Ruby Quiz'. It doesn't teach you any Ruby, but the whole book is just project practices with solutions. However, I haven't seen anything like that for C++. Does anyone know any?

    Posted: 25 Mar 2018 10:08 AM PDT

    I've only seen the typical textbooks with questions and practice at the end of each chapter. But I find that they're too focused on what was learned that chapter, and makes it too easy to guess what should be done because of the topic of that chapter.

    So, are there any good texts out there that are basically nothing but a bunch of practice projects with solutions?

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

    Is it worth it to pay for hosting services, domain name etc. to play around with launching personal websites as a beginner?

    Posted: 25 Mar 2018 06:36 PM PDT

    I have a few flask apps I developed on my local machine over the past few months. I want to get the experience of working with setting up a server on a could service like digital ocean. Is it worth the money for a beginner to play around with deploying this stuff for real? It does not seem like it would be that expensive, $5 a month on digital ocean and $30 or so to get a domain name. Are there any costs that I am forgetting? I've deployed on pythonanywhere.com before, but I think that is more of a canned experience compared to setting up on digital ocean.

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

    Learning to program sustainable financially? Entrepreneurship?

    Posted: 25 Mar 2018 07:21 PM PDT

    Would you say learning to program is sustainable skill for Tech Entrepreneurship? I feel like tech entrepreneurship is extremely difficult unless you have a good idea for it to be sustainable financially. What do y'all think?

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

    I don't want to bill my client for a Wix website

    Posted: 25 Mar 2018 06:13 AM PDT

    Hey, learnprogramming! I'm sorry if this isn't appropriate for this sub, I'm very new at this stuff.

    I've been asked by an acquaintance of my mother, to create a website for his crafting/construction services. I don't have a lot of experience, so I figured over 50$ would be too much to ask for the kind of website I can create.

    So, I got something done in Visual Studio and thought I was on my way to a clean, simple, but functioning website. Well... I have no experience on how to make it mobile-friendly yet, so it's a complete mess on mobile devices.

    I'm disappointed at myself, but I promised the client a website, so I guess Wix it is. The thing is, I feel like a thief if I'm gonna bill him 50$ for a website that requires no coding from me.

    Should I just tell him I'm sorry and not bill him anything?

     

     

    Edit: Thank you for encouraging and educating me, everyone!

    I now see that billing 50$ for the website and the time consumed into teaching him how to use the site efficiently, plus maintaining the site in the future, isn't being a thief. :p

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

    C Complex Math - How to inspect __STDC_NO_COMPLEX__

    Posted: 25 Mar 2018 08:31 PM PDT

    I'm reading Modern C and it mentions inspecting STDC_NO_COMPLEX

    How would I go about "inspecting" this? It hasn't mentioned anything about inspecting stuff li ke this before.

    Complex constants. Complex types are not necessarily supported by all C platforms. The fact can be checked by inspecting __STDC_NO_COMPLEX__. 

    thx bb

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

    Struggling to keep my focus - there's too much I want to learn

    Posted: 25 Mar 2018 01:54 AM PDT

    Programming Background: Learned C and Java back in college, didn't use it for 10 years. Recently came back and learned Python 2 and 3.

    I started out with an interest in AI and started learning Python exclusively. Recently I've been fascinated with Android development and have been putting it off until I finish my learning material for Python. Should I finish my planned course materials for Python or take a break and venture out with App development? My problem is I'm interested in it all, but to be a well versed programmer, I need to have a focus and stick to it. My purpose for learning to code isn't for a job change, but rather a creative outlet that can eventually be used for a business.

    Any help?

    Note: This was my personal lesson plan

    Course materials for Python:

    • I want to redo key chapters from Automate the Boring Stuff (since I feel I've forgotten so much of it since January)

    • Hitch hikers guide to Python

    • Real Python part 1 and 2.

    • Udemy - Python from Beginner to Advanced

    • Udacity - Introduction to AI (half Complete)

    • Udemy - AI from A-Z

    • Udemy - Machine learning from A-z

    • Udemy - Deep learning from A-Z

    • Fast.ai

    • Coursera - Andrew Ng's deep learning specialisation

    App development

    submitted by /u/beyond-antares
    [link] [comments]

    [Java] Appending a file that I previously created in the same java program

    Posted: 25 Mar 2018 07:22 PM PDT

    Thanks for taking your time out to read this. So in my program I have already created a file CSC276.out and in that file I have added my name. That works perfectly. However I am having trouble with one thing. What I need to do is after I close out the file after completing it I need to reopen it and append in the current date. I know how to reopen it but I am confused about how to append it. I get how to actually overwrite the current code but I do not get how to add to it. Any help would be great.

    Current code:

    Driver.Java Class

     /** * */ package mod1; /** * @author Victor * */ public class Driver { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub CreateFile homework = new CreateFile(); homework.fileOpen(); homework.addName(); homework.fileClose(); /*homework.fileOpen(); homework.addDate(); homework.fileClose();*/ } } 

    CreateFile.Java Class

    package mod1; import java.util.*; public class CreateFile { private Formatter file; public void fileOpen() { try { file = new Formatter("CSC276.out"); } catch(Exception error) { System.out.println("You have an error happening when creating CSC276.out"); } } public void addName() { file.format("%s", "Generic Name"); } public void addDate() { } public void fileClose() { file.close(); } 

    }

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

    Using R for baseball analysis

    Posted: 25 Mar 2018 07:08 PM PDT

    Does anyone here have experience with this that would be willing to help with a project I am working on? I have been using an ebook by data camp but could use some interactive help.

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

    Controlling Raspberry Pi sensors through multiple UI instances with WebSockets?

    Posted: 25 Mar 2018 07:57 AM PDT

    So my idea is to have a UI that allows the manipulation of sensors connected to a raspberry pi, and I want to allow multiple instances of that UI and keep them in sync with the current status of the sensors. So I'll need a server that can take in requests to change the sensor status and also keep the UI clients in sync. Would the raspberry pi just be another client? So if I'm thinking right I would need WebSockets installed on all three levels (Raspberry Pi, Server, Clients), right? I'm confused on how to design this setup.

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

    How can I prepare for a competitive coding competition in less than 3 months?

    Posted: 25 Mar 2018 08:24 PM PDT

    I apparently believed that my coding experience was "sufficient" enough to do well in these types of competitions. However, my mind went blank after seeing the sample questions that they ask. With less than 3 months until the competition(6/22/18), I'll like to know what sites or resources that those familiar with these competitions use. The language that I am most experienced in is Java, but I couldn't solve a single problem on the sample test(Convert Binary to Decimal, the sum67 problem, etc.). Is it even possible to sufficiently prepare for the competition's problems within 3 months?

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

    How to pass a condition in C

    Posted: 25 Mar 2018 07:53 PM PDT

    I am coding a series of functions where I will have to loop through arrays to find the value that matches a certain condition depending on which function it is in. For example, one function might require that I loop until I find the 5th element, or another might require that I loop until I find the element that says "Hello". Is there a way for me to code a helper function that will loop through a given array until a given condition is met?

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

    software programmer internship versus bootcamp

    Posted: 25 Mar 2018 03:59 PM PDT

    i have been considering going to a coding bootcamp for some time, though after a conversation with a director at my company he said that i may be able to work as a developer intern this summer. if i have the option to do so, should i do take a developer intern position over bootcamp?

    i've been teaching myself coding for over a year, i would say im closer to a intermediate programmer and not brand new or very beginner.

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

    Java - .contains; toString.contains works but getter.contains doesn't

    Posted: 25 Mar 2018 07:34 PM PDT

    Hello, I am curious about an issue that I encountered (below, I have cut out the "fluff code"):

    public class HumanInterface { //etc... } else if (this.command.equals("7")) { System.out.print("keyword: (if empty, all listed): "); String keyword = reader.readString(); Collections.sort(this.book); boolean returnedNumber = false; for (Person person : this.book) { if (person.getName().contains(keyword) || person.getAddress().search(keyword)) { //LINE OF CONCERN System.out.println("\n " + person.getName()); person.getInfo(); returnedNumber = true; } } if (returnedNumber == false) { System.out.println(" keyword not found"); } } } } public Person bookSearch(String name) { for (Person person : this.book) { if (person.getName().equals(name)) { return person; } } return null; } public boolean bookContains(String name) { for (Person person : this.book) { if (person.getName().equals(name)) { return true; } } return false; } } public class Address { private String street; private String city; public Address(String street, String city) { this.street = street; this.city = city; } //etc... public boolean search(String search) { return this.street.contains(search) || this.city.contains(search); } public void remove() { this.street = ""; this.city = ""; } } public class Person implements Comparable<Person>{ private String name; private Address address; private PhoneNumber phonenumber; public Person(String name) { this.name = name; this.phonenumber = new PhoneNumber(); } public void getInfo() { try { if (this.address.equals(null)) { System.out.println(" address unknown"); } else { System.out.println(" address: " + this.address); } } catch (Exception e) { System.out.println(" address unknown"); } try { if (this.phonenumber.empty()) { System.out.println(" phone number not found"); } else { System.out.println(" phone numbers:" + this.phonenumber.specialToString()); } } catch (Exception e) { System.out.println(" phone number not found"); } } public void addAddress(String street, String city) { this.address = new Address("", ""); this.address.addStreet(street); this.address.addCity(city); } public String getName() { return this.name; } public Address getAddress() { return this.address; } public String toString() { return this.name + " " + this.address; } //etc... @Override public int compareTo(Person person) { return this.name.compareTo(person.getName()); } } 

    If I do this, I am given a NullPointerException. I'm not sure why. I managed to fix this issue by replacing the //LINE OF CONCERN (line 9) with person.toString().contains(keyword) instead.

    The program is supposed to take in a keyword, and search addresses and names of people if they contain the keyword -> then print out the person's information.

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

    Are there any books you all recommend that walk you through learning to write in C#?

    Posted: 25 Mar 2018 03:22 PM PDT

    I have a degree in MIS and I do database work in my current job. Any code I write is in SQL. I am extremely interested in C# and convinced it will open up many doors for me even if all I know is the basics.

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

    C char pointers

    Posted: 25 Mar 2018 09:19 PM PDT

    Function gets passed char *Name, say with the whole thing being "James". If I then print *Name, does it print "J" or "James"?

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

    For self taught developers, How to take bigger challenges?

    Posted: 25 Mar 2018 03:44 AM PDT

    Till now I was part of a big team working on small components of a big system, recently I decided to work on my startup idea with couple of my friends and as expected I am supposed to handle the tech side of the project. Now, being a keen learner I like to keep myself upto date with the ever changing things around me but I haven't worked on those things yet.

    All the example and tutorials on the internet are filled with making react components which is not bad for beginners but I was wondering how to proceed with things like Docker, how to know what are the best practices for managing code? are there any slack group for this purpose? To be more precise I am recently having issue while sharing code within my team, last day my friend failed to run the code because his node version was different than mine, we are planning to hire couple of interns and we see that its going to be a problem so, we need some way to quickly setup code and its dependencies.

    Update:

    For others who are assuming that I am asking about general problem solving or getting started thing then I fear that its not the case, I just want to know how to manage code between teams and grow your product in a maintainable way. I have already done a lot of research on how to solve a given problem and hopefully I am working hard on it.

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

    Extracting data from social media

    Posted: 25 Mar 2018 11:35 PM PDT

    So I'm working on a project and was wonder if there was a free easy to get a users social media data.

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

    Advice for which backend technology to pursue

    Posted: 25 Mar 2018 11:33 PM PDT

    I'm beginning an online bootcamp a week from tomorrow and I have the choice between ruby and node.js for the backend portion of the course. I live in Seattle and am fully aware that node.js is more up and coming but also see that ruby is in a lot of job post requirements. My inclination is to go for node.js but I wanted to get some advice in hopes of making up my mind. Thanks in advance!

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

    Coding camps in Toronto? (for adult)

    Posted: 25 Mar 2018 06:47 PM PDT

    I'm 20 years old, currently in university majoring Comp Sci. But still feel like I don't know anything. I want to experience more with practical coding/programming problems but not sitting at home all day. I have been trying to find a code camp or something similar but all I have found are either for kids or girls Grade 9-12. Any ideas?

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

    Help with a practice exercise on getting an array of prime numbers under x?

    Posted: 25 Mar 2018 10:31 PM PDT

    #include<stdio.h> #include<windows.h> int main(void) { int a=-1, b=1, c=3,d=0; scanf_s("%d",&a); printf("Prime numbers lower than x: "); while (b<=a) { if (b == 2) { printf(" 2"); } else{ while (b+1>c) { if (b%c == 0) { break; } if (b == c) { printf(" %d", b); } c++; } } b++; } printf("\n\n"); system("pause"); return 0; } 

    Can't really see why it doesn't work, there aren't any errors, it just runs and doesn't work. Help please! I'm on my first week of programming, so my understanding of the functions and logic words is very limited. Wish me luck.

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

    Picking between two languages. Help.

    Posted: 25 Mar 2018 09:37 PM PDT

    Hi, I am still fairly new to programming and I am currently in my first year of CS. In class we are learning Python, and I have some ideas for web scraping and maybe later on machine learning projects I want to make with Python. The issue is that me and my friend have a good idea for a website and we both really wanna work on but would require JavaScript to make.

    I am split between what I should do. One side of my brain is telling me it would be smarter to just do Python projects for now since that's what I am learning anyways. The other part however wants me to make the website since I think it would be more enjoyable, I would get a feel of what it is like working in a small team and I think it will look better on a resume.

    My questions are: Is it worth trying to learn Python and JavaScript both at the same time?

    If not which one should I pursue for now?

    Have any of you been in similar situations? How did you decide what to do?

    Thanks for your help.

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

    [PHP] my test server is telling me my variable is undefined before even giving a chance to define it.

    Posted: 25 Mar 2018 09:26 AM PDT

    I'm creating a registration page and things are working fine, but a notice keeps popping up: Notice:

    Undefined index: email in C:\Users\ZacBa\PhpstormProjects\untitled\Login.php on line 15 

    The thing is, this is a variable that is extracting from my form.

    $_email = $_POST['email'] 

    I'm not sure how I'd be able to prevent this error from popping up and I definitely don't want it to show when the site is live.

    Any help?

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

    No comments:

    Post a Comment