• Breaking News

    Saturday, June 16, 2018

    Can anyone recommend a couple books for beginning to learn c++? learn programming

    learn programming

    Can anyone recommend a couple books for beginning to learn c++? learn programming


    Can anyone recommend a couple books for beginning to learn c++?

    Posted: 16 Jun 2018 09:55 AM PDT

    Can anyone give me a couple list of decently affordable books for learning c++?

    I strongly prefer learning from a book as opposed to online, simply because books provide solid structure. Thanks in advance.

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

    CodeWars makes me feel like an idiot

    Posted: 16 Jun 2018 08:56 PM PDT

    I signed up for CodeWars this morning, to practice my Python skills. I am new to programming. The beginner challenges haven't been particularly difficult for me but it seems that whenever I submit my answer and look at other people's answers, they have done in 1 line what took me 6 lines.

    Most recent example was to create a program that mimicked this output:

    accum("abcd") # "A-Bb-Ccc-Dddd" accum("RqaEzty") # "R-Qq-Aaa-Eeee-Zzzzz-Tttttt-Yyyyyyy" 

    I managed to solve this pretty fast, like so:

    def accum(s): out = [] acc = 1 for i in s: out.append(i*(acc)) acc += 1 return '-'.join(out).title() 

    But when I look at other people's answers, it looks more like this:

    def accum(s): return '-'.join(c.upper() + c.lower() * i for i, c in enumerate(s)) 

    So my question is: how can I learn to improve the efficiency of my programming and get better at writing shorter and better code?

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

    it seems like "Find a personal project" is the best advice for someone who wants to expand on their programming skills...but I feel even just getting to that point requires me to have confidence in my programming to begin with. How did you get over this hurdle?

    Posted: 16 Jun 2018 06:33 PM PDT

    At the moment I'm in my first year of comp sci, but I feel school isn't enough to sharpening my programming skills.

    At the same time, I'm tired of starting every semester feeling like I'm already left behind. You can really tell the skill disparity between the students who program on their free time and the ones who just go to school for the grind/diploma.

    I've been picking up tutorials here and there and following them. When i try to create my own personal project, I find myself drawing a blank or not understand how to implement functionalities.

    It makes me lose motivation and then I go back to doing tutorials again - always back to square one.

    Any advice?

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

    Beginner question. How do I write a program that can be run by others.

    Posted: 16 Jun 2018 05:53 PM PDT

    So I've been learning Python for about 6 months or so, pretty extensively. Every so often in my learning I check freelance websites to see how capable I would feel trying to complete some of the projects posted.

    My question is. Say a client requested a web scraping program and I decided to use the Scrapy module. After I write the program, how would I deliver it to the client? Wouldn't there be a bunch of errors on their system if they try to run the code if they don't have Python3 installed, or don't have Scrapy installed?

    I'm sure this is a simple concept that I'm missing lol. I just don't understand how to write a program for somebody that they can run without downloading whatever additional modules I'm using and such.

    Another example of my confusion, how is my Mac able to run Photoshop (which is coded in C++ I believe) even though I don't have C++ installed on my computer?

    Thank you in advance for any help with this!

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

    Learning R Programming in 2018

    Posted: 16 Jun 2018 08:58 AM PDT

    Is R a worthwhile language to learn in 2018? Will it be needed in the foreseeable future? I already took my university Python and C++ courses. I loved C++ but hated Python (I would like to learn a new language and add it to my arsenal of coding knowledge).

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

    Is coding right for me? Do I really want to learn programming?

    Posted: 16 Jun 2018 11:40 PM PDT

    I mean I do, but what I'm asking is... I want to be in the gaming industry, give to people the experience that has been given to me my entire life. I always thought coding would be for me, that it would be the contribution I could make that would make me feel like I'm a part of that dream. Coding/programming is seriously interesting to me, but is it really the path I want to take for the dream that I have? I read that those behind the code are there for the code, with no say in the games, their ideas not being used because they're just there to make sure the game works essentially.

    So coding/programming is interesting to me and I like learning it, working with it, but considering I have visions I'd like to see come to light, considering I'd like to be a part of a team where I can discuss alongside them idea and see something grow from it in the form of games, is coding right for me?

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

    Top books and resources to start a journey in programming.

    Posted: 16 Jun 2018 06:27 PM PDT

    I don't know what language or where I want to start. I'm looking for books and resources that can help give me a big picture view of the landscape, and help me decide where to dive in. Thanks.

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

    An interesting learning project - Wireworld

    Posted: 16 Jun 2018 07:46 AM PDT

    I was bored, looking for a project to do, and through the magic of Wikipedia link jumping, stumbled on Wireworld.

    It's basically a slightly different version of Conway's Game of Life, with rules that allow it to "simulate" electrical circuits.

    I've had fun implementing it so far, and it's quite easy to build on and make more advanced as you learn. Once you have the basic logic down, you can create graphics to display it, then allow pre-fab parts like diodes and logic gates to be placed in the circuit.

    If this seems like too difficult of a challenge in the beginning, try Conway's Game of Life first. It has more examples available, and I found to be slightly easier to reason about.

    Have fun!

    https://en.m.wikipedia.org/wiki/Wireworld https://en.m.wikipedia.org/wiki/Conway%27s_Game_of_Life

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

    Thinking of making a major life switch to becoming a developer. Need advice!

    Posted: 16 Jun 2018 06:16 PM PDT

    I've always had interest in programming, I love the feeling of working at something, having to do research and figure something out yourself, and finally having that feeling of satisfaction when you get that final product that you've envisioned. I've dabbled in HTML/CSS and Python for some years, but I still consider myself a newbie.

    I graduated from a top 50 university with a degree in biochemistry and a 3.8 GPA this past December. I'm due to go to optometry school in August. I've been confident in my decision to pursue optometry school for years, and it's all my friends and family have known me to want to be. However, in these 7ish months I've had off of school, I've been watching some videos and doing some free coding courses, and I realize I LOVE this stuff. I may even love it more than optometry. This is where it gets complicated.

    I've devoted so much time and effort towards becoming an optometrist. Apart from pushing myself academically, I've shadowed, interned, volunteered, you name it. Spent an entire summer studying 12 hrs a day for the OAT exam (optometry school's version of the MCAT). But now, I just can't get becoming a developer out of my mind. It's a weird feeling when suddenly what I thought I was gonna spend the rest of my life doing is being replaced by something I'm not even good at yet.

    Let's talk financials. Optometry school is another 4 years of school (4 years of salary deferment) and would put me anywhere from $100-$150k in debt. The field is becoming over-saturated and, while still good, the salaries aren't reflective of a 4 year doctorate. The average starting salaries start at $90kish and they don't go up much from there ($120-$150k) (unless you start a private practice, which I have no interest in). In comparison, dentists usually START at $150k, and doctors usually start close to or over $200-$300k. To me it optometry just doesn't feel worth it.

    However, if I decided to devote the next 1 to 1.5 years to truly learning programming (most interested in becoming a full stack web dev but also open to other things), what would the chances be of me landing a solid job and advancing in my career at a reasonable rate? I would likely study 8 hrs a day at the very least. I'm considering a bootcamp (open to suggestions!) as well which would probably help jumpstart my learning.

    For reference, I live in Texas and I'm a girl. I'm also in a lucky financial position to where me not working for a year or two to learn coding is fine. Also wouldn't mind paying for a bootcamp because it should still be way less than optometry school. I don't have a CS degree which may not be as enticing to employers (but I still have a STEM degree, so maybe that counts for something????).

    Summary: Recent graduate of college that thought I was headed to optometry school for the next 4 years, putting myself into massive debt with not much of a great salary in comparison to the time and money I'd be putting into it. But, I love the hard sciences and I find optometry fascinating. On the other hand, I also find programming fascinating and could see myself doing this for the rest of my life. Please help me decide!

    Thanks!!!!

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

    What versioning system is good for software that is NOT an API?

    Posted: 16 Jun 2018 10:28 PM PDT

    This means SemVer is out of the question because it simply does not apply to software like mobile apps, web apps, and desktop applications.

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

    CS University Course on Data Structures and Algorithms (Java)

    Posted: 16 Jun 2018 10:22 PM PDT

    Can anyone guide me to a CS University Course for Data Structures and Algorithms (Not Video, not on Courseera,) with Lecture Slides, Homework Assignments, etc.? Preferably in Java. I found one by a Prof. at Stanford but they used C++.

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

    Is it possible to run source code directly from editor without having to save it as a file?

    Posted: 16 Jun 2018 04:11 PM PDT

    Sometimes I want to test code out just to see the output and it's really annoying to have to think of a file name and location only to delete it immediately after when I never wanted to save it to disk in the first place. If it matters, I'm writing C on geany in Ubuntu

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

    Could use a feel for the employment market

    Posted: 16 Jun 2018 09:52 PM PDT

    So I've been a bit torn. I'm in the last year of my BAS in Application Development, and I seem to be going back and forth between feeling confident and feeling woefully under prepared.

    My coursework after the first two years focuses very little on actual coding, and I see stuff all the time - observability tools, code splitting and Unix for microcontrollers to name a few on the r/programming page right now - that is practically latin to me. I have no idea what people are talking about with it, and any context is rarely understood either. It's like I had a small niche that I was trained in during school, and anything outside of it is completely foreign.

    At the same time, I'll have people in the industry come in (I live right by Seattle, WA so that's a fairly easy thing) and talk about interview prep and employment prospects, and the stuff they go over feels so mundane. A guy working at Microsoft came in and talked about his employer using a fizzbang problem as a whiteboard question to weed out 95% of prospective employees, and all I could think was "holy crap, people applying for this job actually can't figure this out?"

    I've heard mixed things about employer expectations too, things about nothing particularly productive being expected of me for the first six months and the like...I suppose my question is how concerned should I be for when I start job hunting? There seems to be no middle ground. Either I'm laughably under prepared and under qualified, or getting a job should be a cakewalk with my experience/education.

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

    Disallowed Host error when trying to deploy my serverless app with Zappa

    Posted: 16 Jun 2018 09:51 PM PDT

    I've followed the tutorial for deploying zappa step-by-step. When it says to Add the returned URL to the ALLOWED_HOSTS I have done that (as well as add the development server):

    ALLOWED_HOSTS = ['127.0.0.1', 'https://*******.execute-api.us-east-2.amazonaws.com/dev'] 

    However I still get this error:

    Invalid HTTP_HOST header: '********.execute-api.us-east-2.amazonaws.com'. You may need to add '********.execute-api.us-east-2.amazonaws.com' to ALLOWED_HOSTS. 

    I've tried changing the string in ALLOWED_HOSTS to https://*******.execute-api.us-east-2.amazonaws.com and amazonaws.com but both return the same error.

    Any idea what the problem is?

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

    What do you think is the best introduction to web development?

    Posted: 16 Jun 2018 09:47 PM PDT

    I personally learned a lot from Colt Steele's web dev bootcamp on udemy, that was the course that really introduced me. I learned that you shouldn't feel bad for having to copy things from documentation, or experimenting and changing things in frameworks. I'd say freeCodeCamp is really great as well, it made me able to make a decent bootstrap website, but Colt's course got me really comfortable with web dev and making websites.

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

    How can I get back motivation to learn programming?

    Posted: 16 Jun 2018 05:38 PM PDT

    I've been up and down with learning programming over a few years. I'll learn a lot, then not do it for months, and forget most of what I learned. I keep losing motivation. I have all of the stuff I need for learning, I've found a course, which taught me a lot when I was back into programming, and I've found a good book, then I might move onto web development, which I also have a course which I really enjoyed back almost a year ago, and another practice website, but I just can't take that first step to get back into it.

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

    Is it Important to Know All Bash Attributes?

    Posted: 16 Jun 2018 09:23 PM PDT

    I'm learning bash right now, and am trying to familiarize myself as thoroughly as possible with the various attributes for each command. Is this entirely necessary?

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

    Sum of Two Integers (without using any + or -) How is this easy?

    Posted: 16 Jun 2018 09:22 PM PDT

    Leetcode problem

    How do you do it?

    When does it start being addition, because if you think about it multiplication is just addition. 3 * 4 === 3 + 3 + 3 + 3 ?

    I am completelly baffled. Have no idea. If it's trivial don't tell the answer, I want to figure it out. Maybe give a hint.

    It's just I always thought of sum as the base operation. Doing something without it seems super hard.

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

    What resources should I refer to learn programming by reading other's code?

    Posted: 16 Jun 2018 09:05 PM PDT

    I have basic understanding of C, c++, python, Java. But that's just the basics, I can make a simple calculator, a quiz game etc. But I can't do anything significant enough. So I want to learn how to program android apps or just any app, which I can learn by reading the source code (or was meant to be learnt that way)

    I'm looking for some well documented code which will help me learn to understand how most apps are programmed. To learn how some logics are implemented and so on.

    I know github is a place to find open source projects, but I don't know which projects to refer considering the knowledge I have. Thank you.

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

    People say Lua is predominantly intended to be used as an "extension" language. What stops it from being a good choice for main development?

    Posted: 16 Jun 2018 08:58 PM PDT

    I'm currently using Lua in combination with the Love2d framework to create a game. And I'm kinda confused by some of the things I'm reading. What is stopping me from using entirely Lua to code a program? Why must another more well known and extensive language like C++ use it purely as an extension in most cases? I know it's lightweight, fast, and relatively intuitive but that doesn't explain these things. Also, what is stopping a game dev from using entirely Lua?

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

    [python2.7] "ImportError: No module named MySQLdb"

    Posted: 16 Jun 2018 08:40 PM PDT

    Hello, I am making this text post because I have been struggling to import MySQLdb and download it as a module or library to use in a bit of software that I have that requires it. I have tried: brew install mysql pip install mysql-python No luck. How can I get and use MySQLdb as a package? Many thanks

    submitted by /u/SleepyZ-831
    [link] [comments]

    What are the most interesting or useful programs you've ever created?

    Posted: 16 Jun 2018 08:00 AM PDT

    Please mention

    • how long you have been learning to code;

    • how long this program took you; and

    • what programming language you use.

    I'm a beginner so I hope you can mainly use simple words and as fewest terms as possible!

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

    Need some help with c++ code from book

    Posted: 16 Jun 2018 08:17 PM PDT

    So I'm going through Programming Principles and Practice using c++ by Stroustrup. I'm on chapter 12 and I'm trying to use the support code that will be used for chapters 12-16 but I'm getting 4 unresolved external symbol errors. I've tried fixing it myself and googling it but I couldn't find a solution. I would really appreciate help since this has stopped me from doing this book for like 2 weeks and I'd like to start again. I'm not sure if I need to put all the code here but I'm going to do it anyway for good measure.

    The errors:

    1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library 1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall Graph_lib::Window::Window(struct Graph_lib::Point,int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Window@Graph_lib@@QAE@UPoint@1@HHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "public: __thiscall Simple_window::Simple_window(struct Graph_lib::Point,int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Simple_window@@QAE@UPoint@Graph_lib@@HHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 1>Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall Graph_lib::Window::attach(class Graph_lib::Widget &)" (?attach@Window@Graph_lib@@QAEXAAVWidget@2@@Z) referenced in function "public: __thiscall Simple_window::Simple_window(struct Graph_lib::Point,int,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Simple_window@@QAE@UPoint@Graph_lib@@HHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 1>Main.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall Graph_lib::Window::draw(void)" (?draw@Window@Graph_lib@@MAEXXZ) 1>Main.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Graph_lib::Button::attach(class Graph_lib::Window &)" (?attach@Button@Graph_lib@@UAEXAAVWindow@2@@Z) 

    Main.cpp:

    #define WIN32 #include "Graph.h" #include "Simple_window.h" #include "Window.h" #include "GUI.h" using namespace Graph_lib; int main() { Point tl(100, 100); Simple_window win(tl, 600, 400, "Canvas"); win.wait_for_button(); } 

    Window.h:

    #ifndef WINDOW_GUARD #define WINDOW_GUARD 1 #include "fltk.h" #include "std_lib_facilities.h" #include "Point.h" //#include "GUI.h" namespace Graph_lib { class Shape; // "forward declare" Shape class Widget; class Window : public Fl_Window { public: Window(int w, int h, const string& title ); // let the system pick the location Window(Point xy, int w, int h, const string& title ); // top left corner in xy virtual ~Window() { } int x_max() const { return w; } int y_max() const { return h; } void resize(int ww, int hh) { w=ww, h=hh; size(ww,hh); } void set_label(const string& s) { label(s.c_str()); } void attach(Shape& s); void attach(Widget& w); void detach(Shape& s); // remove s from shapes void detach(Widget& w); // remove w from window (deactivate callbacks) void put_on_top(Shape& p); // put p on top of other shapes protected: void draw(); private: vector<Shape*> shapes; // shapes attached to window int w,h; // window size void init(); }; int gui_main(); // invoke GUI library's main event loop inline int x_max() { return Fl::w(); } // width of screen in pixels inline int y_max() { return Fl::h(); } // height of screen in pixels } 
    

    No comments:

    Post a Comment