• Breaking News

    Sunday, March 31, 2019

    What have you been working on recently? [March 30, 2019] learn programming

    What have you been working on recently? [March 30, 2019] learn programming


    What have you been working on recently? [March 30, 2019]

    Posted: 30 Mar 2019 09:12 AM PDT

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Learning Multiple language , How to find the most syntactically similar languages and stick to them?

    Posted: 30 Mar 2019 02:25 PM PDT

    Is there a chart of similar languages .I am guessing the gangs ot these Python Gang , Java,Js, C++ Gang, Go rust gang , Haskell, Scala-clojure , Kotlin Swift gang .

    Such that most syntax and keywords don't change .

    submitted by /u/Yikings-654points
    [link] [comments]

    Questions about C++

    Posted: 30 Mar 2019 02:56 PM PDT

    Ive been seeing many posts about c++ being overly complicated for beginners and even seasoned developers.

    I am studying computer engineering at school and c/c++ is 95% of the curriculum for coding. Since it is my first language I can't really tell the pros and cons compare to other languages. Currently we are learning about data structures and from the previous two years I can't really say what is so complex or frustrating about it compare to other languages.

    If anyone can tell me if appreciate it =)

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

    Can someone please suggest a good IDE for c++?

    Posted: 30 Mar 2019 08:41 PM PDT

    I need a good ide for c++. I have been using code blocks but I don't like the out dated look of it, it has almost no auto complete feature, and a few other reasons.

    I know Visual Studio is popular but I have a weird problem with it since I need it for computer science homework. Visual Studio 2017 always adds include pch.h to my cpp file. I cant have this in my file for assignments I turn in. Yes I know you can remove it by not using pre compiled headers but I hate that I have to remove it before I start any assignment or forget to remove it and lose points on an assignment. (If there is a fix to this let me know.)

    For my Java class I use intelliJ Idea and I love everything about it. Is there anything like this for c++? What would you guys recommend?

    Thanks!

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

    C++ - Using the results of two functions in a third function

    Posted: 30 Mar 2019 07:05 PM PDT

    My homework is to write a program that evaluates whether or not someone is eligible to rent an apartment based on their age and their income. I am supposed to use a global variable for the rent fees. Then I am supposed to ask what their monthly salary is. Then in a function, determine if that salary is 3 times the rent cost and if it is then they can afford to rent there. Then I am supposed to ask their age and based on their age, use another function to determine if their are either a risky, safe, or definitely safe renter based on their supposed maturity levels when it comes to paying their bills. Finally, I am supposed to use a third function to evaluate those answers and decide if they can rent the apartment. I am also supposed to use a loop so that more than one customer may do the application process.

    I seem to be ok so far. Everything works but I can't figure out how to take the results of the two functions and incorporate them into the third. I know I will have to get rid of the dialogue in the main function. I was just using it for feedback. If it helps, the title of the assignment is " Using Functions That Return a Value "

    The output should be as follows (or similar)

    Hello, Welcome to the Renting Evaluation Center….

    This apartment's monthly rent is $1200.

    I need to gather your information to see if you qualify:

    Your full name, please: Matt Damon

    Your age, please: 34

    Your salary, please: 3400

    Based on the information you have provided, you are not qualified. Sorry….Make more money next time.

    #include <iostream> #include <ctime> #include <string> using namespace std; //global constant const int monthlyRent = 1200; //function declarations bool salary(double pay); char oldEnough(int age); int main() { //Variable declarations double pay; int age; char canRent; string first, second; //Beginning script and first input cout << "Hello, Welcome to the Renting Evaluation Center \n" << endl << endl; cout << "The monthly rent on this apartment is $" << monthlyRent << endl << endl; cout << "I need to gather your information to see if you quality: \n" << endl << endl; cout << "Please enter your full name: "; cin >> first >> second; //---------------------------------------------------------------- cout << "What is your monthly pay? "; cin >> pay; if (salary(pay)) cout << "You may rent \n"; else cout << "You may not rent. Make more money \n"; //---------------------------------------------------------------- cout << "Please enter your age: "; cin >> age; canRent = oldEnough(age); if (canRent == 'R') cout << "You are too young to rent. Get older \n"; else if (canRent == 'S') cout << "You should be safe. You can rent \n"; else cout << "You are definitely safe. Welcome home \n"; //---------------------------------------------------------------- system("pause"); return 0; } //function definitions bool salary(double pay) { bool result = false; if (pay >= (monthlyRent * 3)) result = true; return result; } //---------------------------------------------------------------- char oldEnough(int age) { if (age <= 25) return 'R'; else if (age >= 26 && age <= 35) return 'S'; else return 'D'; } //---------------------------------------------------------------- 

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

    Best online resources for discrete mathematics

    Posted: 30 Mar 2019 07:46 PM PDT

    Hey there, I'm currently studying computer science at University and this semester, I took a class in discrete mathematics. I found myself really enjoying the course - the concepts we learn are so interesting, and seem much more deeply and intuitively tied to CS. However, I've had a very busy schedule, and haven't been giving this class the time it deserves. Are there any good online resources that teach discrete mathematics, or any sorts of math that are foundational to CS theory?

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

    Learn JavaScript

    Posted: 30 Mar 2019 04:00 PM PDT

    I realized a rest API with Nodejs, but I don't feel confident with JavaScript and I want to master this language. Are there a good udemy courses or books or resources to learn JavaScript and feel confident with it?

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

    30-45 minutes coding everyday?

    Posted: 30 Mar 2019 07:15 PM PDT

    Hello. I'm currently working on my undergraduate degree (engineering major but not inclined with computer eng'g/sci/programming). I already have some background in programming but I was not able to fully grasp the concepts when I took the course 3 years ago so I think I would start learning it again from the start.

    From the title itself, I'd like to know if it's possible (?) to learn programming (the concepts and even mastered it through coding) with that amount of time everyday. As much as I would like to make it into hours, but my current schedule is too hectic that I should manage my time wisely as I also have many other important things to do daily. Has anyone tried it? Is it effective and productive? Thank you in advance for your replies..

    submitted by /u/ilm-fab38
    [link] [comments]

    What do you think about the C++ course from Microsoft.

    Posted: 30 Mar 2019 01:56 PM PDT

    I have no previous experience in programming , will this course be a good way to start and provide fundamentals of programming??

    https://www.edx.org/course/introduction-to-c-3

    https://www.edx.org/course/intermediate-c-2

    https://www.edx.org/course/advanced-c-2

    submitted by /u/DS-00
    [link] [comments]

    New video on git

    Posted: 30 Mar 2019 12:50 PM PDT

    Hey, I started a git series earlier this week and I promised to put out another video by the weekend, so here it is. This one actually digs into the CLI rather than just discussing what git is. Hope you like it! https://youtu.be/w6F7Zh3vhIM

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

    Is there a better way to type this out? [Typed in C++]

    Posted: 30 Mar 2019 07:39 PM PDT

    I am a learning programmer. In the lessons I am taking, I got to "if" and "else" statements. I got the program to do what I want to do, but I feel as if there is a cleaner/ better way of typing it out.

    What I want it to do is this. You are asked to type a number, x. If the x >= 50 and < 75, it outputs "Close." If the x >= 75 and <= 100, it outputs "Great." If the x > 100, it outputs "Try again." If x < 50, it outputs "Try again."

    Again, it works, but it just seems like there's a better way of doing this.

    #include <iostream>

    using namespace std;

    int main()

    {

    int x;

    cout << "Enter a number." << endl;

    cin >> x;

    if (x >= 50)

    {

    if ((x >= 75)&&(x <= 100))

    {

    cout << "Great." << endl;

    }

    else

    {

    if ((x >= 50)&&(x < 75))

    cout << "Close.";

    }

    if (x > 100)

    {

    cout << "Try again." << endl;

    }

    }

    else

    {

    if (x < 50)

    {

    cout << "Try again." << endl;

    }

    }

    return 0;

    }

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

    Tips regarding Object oriented programming in C++

    Posted: 30 Mar 2019 09:07 PM PDT

    So I'm an undergrad student, currently taking a course in OOP, I was just wondering what I could do to get a better grasp over all the concepts and code better. Also if there are any project ideas i could work on alongside that help sharpen my skills?

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

    Learning to program on a mobile phone

    Posted: 30 Mar 2019 08:59 PM PDT

    I'm pretty broke as dirt right now. Having to save every bit of money since I have a wife and a baby. I was considering getting a cheap ($28) Bluetooth keyboard and trying to learn on my phone. Has anyone had any experience or known anyone that has been able to do this?

    Also, it would only be for another few months til I can get together some extra scratch for a cheapo computer.

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

    How do i make drift logic?

    Posted: 30 Mar 2019 04:07 PM PDT

    One big part of a game im making (with... scratch) has a drifting car in it. What i have programed thus far is, a variable called Velicity, if you press the up and down key, Velocity changes.

    since the car is still and the ground is moving under it i have it so that the road sprite moves Velocity number of pixels in the direction its pointing every frame (the road sprite never changes direction visually).

    I have a car sprite in the middle of the screen (keep in mind that this is a top down game(the camera is over you snd facing down)) that changes direction (this one is visual) if you press left or right.

    Right now i have it so that the direction of the Road sprite is the same as the car sprite, this WORKS but i want the controlls to be less instant if that makes sense. So i tried to do "set road direction to = (road direction + car direction) * 0.5" i guess it kinda worked but it was extreamly hard to notice any change from the original code and i want it much more noticable (again, thats the point of the game. Drifting).

    The reason i made this post was because the programing languige i use has its direction values from -180 to 180, this makes it so when the car direction passes the 180 value and goes to negative the road stutters a bit,

    How should i code the road so its direction is somewhere betwen its old value and the cars value so it makes a noticable drift effect without causing the "glitchy" stuff when the number values change drasticly?

    Thanks in advance.

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

    What is the best desktop GUI library to learn right now?

    Posted: 30 Mar 2019 10:43 PM PDT

    I have started learning JavaFX and I'm really enjoying it. Just wanted to know if it's good enough or should I switch to something else.

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

    OpenGL resources?

    Posted: 30 Mar 2019 06:49 PM PDT

    Hey you! I was looking for some resources to quickly get up to speed with OpenGL.

    I'm an experienced C# programmer, however as I recently landed a chance at being interviewed at a seasoned game studio, I'm required to take a test in C\C++ - I've not used it very much professionally, but making good progress so far.

    I also have about 5 days left before the test time.

    I've gone through "A Tour of C++ 2nd Edition - Bjorne Stroustrup", got me up to speed rather quickly as I'm already familiar with the syntax & common paradigms etc, but I have no idea where to start on opengl.

    The end goal is for me to have a minimal multiplayer pong (not necessarily with graphics, but I'd like it to be) within the 5 days remaining, so I can feel comfortable writing C\C++ again.

    PS: I'm also considering recording this adventure somehow, would you guys be interested?

    PSS: It's stated in my resume that I'm not all that familiar with C\C++, but I want to impress.

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

    Playlists and/or free lessons to learn coding/development from very beginning?

    Posted: 30 Mar 2019 05:03 PM PDT

    I am looking to learn programming/development from the bottom up. I have no background in any languages or anything related to the field and I'm looking to learn for fun and understand basics and make my way up. Where can I learn this stuff for free online? Also, any books you guys recommend as well? I was thinking to start with python and c++.

    PS. Before you say to read FAQ, I already did and there were no informative links for videos/lessons.


    [link] [comments]

    Where do I start a text based adventure game?

    Posted: 30 Mar 2019 11:36 PM PDT

    I want to make a text based adventure game with a command window style. The main function of the game is that your character is saved on a txt file, and can be easily edited and transferred between games.

    I don't know what language or compiler to use.

    submitted by /u/CAT-CENA
    [link] [comments]

    Improving Problem Solving Skill

    Posted: 30 Mar 2019 11:24 PM PDT

    Hi everyone.

    We all see problems that is asked. By Google, Amazon, Facebook and etc.

    They're almost about Data Structures like Tree, Graph. or Algorithms like Bubble sort, Merge and so on.

    My Questions is How should we improve the problem solving skill? Where should we start?

    Should we solve a ton of this kinda problems to improve this skill. I don't know why I think It's all about gifted brain. and I don't believe Growth Mindset. Is it Wrong?

    share your experience with me. Have you ever been in this bad situation?

    Thanks for your help.

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

    Can anyone recommend youtube channels/videos that aren't just "Should I learn PHP in 2019?", "Most popular back end frameworks 2019", "Vue Tutorial 2019"?

    Posted: 30 Mar 2019 11:16 PM PDT

    Guess I'm looking for deeper topics, for people who are already junior developers. I would ask this on /r/programming but I can't make a text post.

    I really like Tech Lead for example because he talks about the industry. I'm not sure exactly what I'm looking for, but the same topics rehashed is getting boring. Yes, we all know JavaScript is the most popular language, and Java is one of the best for finding a job in enterprise software. I don't mind programming language discussion, I just want something outside of the same rehashed topics.

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

    How to continue my Java education this summer, following a second year Data Structures and Algorithms class

    Posted: 30 Mar 2019 07:25 PM PDT

    I'm in my second year of university doing a CS degree. I've taken three classes on Java (OOP anyway), among other CS classes (intro robotics, web development, computer systems, databases). I would consider myself an intermediate in Java/OOP, and I would like to improve this summer.

    I plan to make an Android app, similar to the Hasbro game Catchphrase, and I'm also currently interested in working through Pro Git, Clean Code, and Effective Java this summer. Are these good books to improve my Java ability? Or are there other resources I should look into?

    • Also, I've heard Effective Java is a fairly advanced book, am I ready for it?
    submitted by /u/RichardsCS
    [link] [comments]

    [C++] Deleting Dynamic Arrays

    Posted: 30 Mar 2019 11:06 PM PDT

    Hey I was wondering if there was a specific way to delete a Dynamic Array.

    Say I create a dynamic array and give them values.

    int *dArray = new int[3];

    dArray[0] = 1;

    dArray[1] = 2;

    dArray[2] = 3;

    In order to clear the memory would it be fine to just use

    delete(dArray);

    Or would I have to loop through dArray and individually delete each integer.

    I saw a stack overflow page that has different syntax.

    for (i = 0; i < uniq; ++i) { delete temp[i]; }

    delete[] temp; delete[] data; 

    But when I use G++ with flags -werror and -wall I seem to not got any issues so am not sure if what am doing is fine.

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

    Learning to test in js

    Posted: 30 Mar 2019 10:55 PM PDT

    Does anyone have any good tutorials for learning to test thoroughly in node or react? I've looked up quite a few on google but Its difficult for me to understand what I should be testing.

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

    I graduated from a coding bootcamp one month ago and am now working as a full stack developer. I wrote an article about what to expect and how to succeed at a coding bootcamp that I want to share. Some of the advice is applicable to self learning also. Feel free to AMA.

    Posted: 30 Mar 2019 10:54 PM PDT

    Hi all,

    One month ago I completed a six month coding bootcamp. Since then I've completed a one month internship at a company where I have now gained a full time position as a Junior Full Stack Developer where we use AWS, Python back-end and React front-end.

    I've written an article here detailing what to expect and my key take away's on how to succeed in a bootcamp. Many of the tips I believe are also applicable to self learners also.

    If you're thinking of taking a bootcamp, or have any questions on how to go from zero to full stack dev, feel free to AMA.

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

    How do I make Text editor?

    Posted: 30 Mar 2019 10:52 PM PDT

    Hi all I want to make Text editor in C. It's should have Terminal access (CLI) as well as gui like vim and gvim. My question is how shall I start? Which language shall I use? I am planning to go with C.

    As a web developer we develop backend frontend is there anything such like this in desktop application development?

    Any books,tutorials for this topic?

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

    How can I store shared Location from Google Maps to a TextView/String?

    Posted: 30 Mar 2019 06:20 PM PDT

    Currently creating an app that creates event for Sport matches - time, day, location etc.. I have a button that open Google Maps and added the "android.intent.action.SEND" that I may be able to share the location from Maps to my App, however I do not know exactly how to pull the long/lat OR the URL from Maps and store it in a String or TextView/EditText. How can I do this?

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

    No comments:

    Post a Comment