• Breaking News

    Saturday, March 31, 2018

    Why is Git/GitHub so hard to understand? learn programming

    Why is Git/GitHub so hard to understand? learn programming


    Why is Git/GitHub so hard to understand?

    Posted: 30 Mar 2018 09:24 AM PDT

    It's more of like a request than a question. It was 2 years back that I decided to learn Git. I only knew Java back then and hoped to learn this too. But then it felt so confusing that I left it. And this process was repeated again and again. I try to learn it, things start to go above my head and I leave. I have done it about 5-6 times now. From course in Udacity to a community named Gitter, I have tried to be as innovative in my approach. But the result is always the same. Now I have learnt Python, JS and C++. In 2 months I am going to start working as a software engineer. But still...

    Now most of you might think that this is way too easy of a platform to not understand. It's just some simple commands and there proper implementation. But consider me a fool and help me. Help me learn how to use it! Please!

    submitted by /u/shadow-sphynx
    [link] [comments]

    Programmers, do you use calculus often? If so what for?

    Posted: 30 Mar 2018 09:49 AM PDT

    Programmers, do you use calculus often? If so what for?

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

    Getting back into programming after ~7 years

    Posted: 30 Mar 2018 06:51 AM PDT

    I did a bit of C++ in high school and enjoyed it but it never got very in depth.

    Yesterday I finally signed back into college and I have some random classes here and there but it's mostly math and IT classes I need to take. The first class I have is a Java class. First 8 weeks look really simple, just learning loops one week input another and arrays in another. The last few I read are I/O which I don't remember doing in c++ but I'm sure it won't be to hard.

    Overall I'm excited. I'm going to start refreshing myself on how to program and probably take a look into Java itself. I'm really hoping it isn't to much more difficult. Hell I don't even know or remember what the best compiler will be.

    But I just wanted to share! I'm excited to be back in school!!

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

    Python books for a more formal understanding of the language?

    Posted: 30 Mar 2018 02:14 AM PDT

    Hi!

    I've programmed as a hobby for many years, mainly in Python, and also had a 3 month crash course in C++ during my degree. After applying to a few jobs and answering the typical technical questions I realised I know how to program but very little about the formalities of the language, for example I was asked what the difference between a tuple and a list was in Python and I couldn't properly answer it - as it turns out it's to do with mutable vs immutable, order vs structure and where you use them which, although I know what the concepts mean, I had never learned.

    So can anyone recommend a book/tutorial/etc that assumes knowledge of practical programming but aims to teach those sorts of things? Or really just any guidance as to how I should progress my abilities.

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

    Pluralsight is set to integrate codeschool by June 2018

    Posted: 30 Mar 2018 05:47 PM PDT

    Did anyone see this? https://www.pluralsight.com/codeschool . This is going to be a game changer for everyone to likes to learn coding. I used codeschool and it is just like udacity's learning format(video then do exercise, another video). I signed up to pluralsight and found it a bit hard to sit through so many videos, but now my prediction is that this will be like udacity on steroids.

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

    What will you learn this weekend? Want to code an Alexa skill? ��

    Posted: 30 Mar 2018 04:02 AM PDT

    Hi everyone, my friend BM will be teaching a live online class on how to code a Goal Tracker skill on Alexa. The class is from 8pm to 9pm EST tomorrow. If folks like it, we can plan on completing the remaining three hours of the program the next week. The course is free and no programming knowledge is required. It helps if you have Alexa and know basic Python. If you are interested, DM me. Thanks! :)

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

    Come join us on a fun little Git story and art time to learn Git. ALL levels welcomed! Get started with Git without fear.

    Posted: 30 Mar 2018 07:30 PM PDT

    I made a silly little repo on Github! https://github.com/PhilJayN/Community-Story-and-Art

    So the goal is to have contributors add to one little section to the art piece. Right now it's a puppy's head and left eye , but it's waiting for your imagination to finish it. You can contribute ANY content you want. This is your playground to learn Git, submit pull requests, make mistakes, etc!

    Don't hesitate to post with questions here, even if you think it sounds stupid (it's really not). This is a judgement free zone!

    EDIT: I forgot to mention language in the title, and there's no way to edit thread title. HTML, CSS, JavaScript, but if you want to add a Framework or Library, you are encouraged to do so

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

    OOP fundamentals

    Posted: 30 Mar 2018 10:08 PM PDT

    I am looking for good OOP courses. I am looking for courses or videos that teach OOP principles in an applied sense. Every video I have seen shows examples with a human class and a professor class that inherits from human for example. Looking for something applied to business applications.

    Thanks in advance.

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

    how to build a test environment?

    Posted: 30 Mar 2018 07:02 AM PDT

    I never fully understood how to do a unit test but the other day something clicked and I used them to build out my model layer on a project. It worked really nicely and made a ton of sense to me, I needed to prove that these functions that do calculations on database information work. Also many of them feed into each other and I needed a way to test each one separately. To test my models i used a copy of "live" data from a couple years ago, manually looked in the database for the lookup values, did the calculations manually, and verified that the functions got the same result. easy enough.

    What I don't understand is how to test everything "else". Such as, create, update, delete (back end). Do you just connect to a blank db, define manually the data to insert, and then read it back? then delete it and verify it was deleted?

    What about serving views? Do you verify that the entire page output html matches a predefined output? Or what?

    What about testing js components in the view? Assuming I use a web driver of some sort, are these tests completely separate from the others?

    Dare I ask how to test my unit testing class? At some point just using it should just be enough right? where do you draw the line?

    Which brings me to another question...what about testing an array of input values to get the output values? Like, when I tested my models, I would do $question = somemodel::init($some_id)->some_function($date); $answer = 3; $test($question, $answer). But do I need to send in null, 0, 1000000, -1000000, .0000001, "blue", etc to test what happens? In this case it should basically error out in most of these cases since it is expecting an id, and the way the program is built it shouldn't ever be randomly given any user input, so I'm not sure I see the point?

    I know there are a lot of questions that go "where do I get started with unit testing?" This one I think is a little different because I have gotten started, but need to know how far to take it. Would someone be willing to write out a paragraph that says, "when we test our code this is what we do and this is what we don't" ?

    Thanks in advance...

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

    Good Udemy programming courses

    Posted: 30 Mar 2018 09:26 PM PDT

    Hi, all, I'm new to programming, and I would love to learn a whole lot more this summer from any resource I can find. Most of the people here say that udemy is the best resource if you're new to programming, so, I wanted to ask, which language courses are best and worthy on Udemy?

    Also, I'm looking to learn languages like SQL, java, advanced C++(i know the basics), JavaScript....

    Thanks.

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

    Experience as back-end dev and learning front-end where to freelance?

    Posted: 30 Mar 2018 06:52 PM PDT

    As the title mentions I have experience as a back-end developer, but also did a bit of front-end dev while working. As I have more experience with back-end lately I have been teaching myself front-end development. What are my options for freelancing? I have never freelanced before and somewhat clueless as where to go. Can someone point me the right direction please?

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

    (C) In C, does the name of an array hold the address of its first element?

    Posted: 30 Mar 2018 09:04 PM PDT

    I'm printing out the memory address of the name of the array and also array[0]. They both come out the same

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

    Macbook air for SQL/Python?

    Posted: 30 Mar 2018 08:52 PM PDT

    Is a macbook air sufficient enough for SQL/Python? I want an apple device and am trying to spend a little less money so would like to opt for the Air over the pro but i'm not sure if it's powerful enough to learn SQL and a little bit of querying in python even as a beginner.

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

    What pc do I get for unreal engine?

    Posted: 30 Mar 2018 06:25 PM PDT

    I'm interested in learning unreal engine but my old PC can't run it. What's the best PC for this sort of thing?

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

    How to become a full-stack dAPP developer?

    Posted: 30 Mar 2018 05:19 AM PDT

    Disclaimer I am an avid Reddit reader though I have never actually posted anything before. I hope I didn't break any rules for this subreddit (I read the guidelines and I don't think I did!). I am posting this here because I am still a beginner, but if you think this post should be on another subreddit please, please let me know.

    Hi everyone. I am literally obsessed with blockchain technology and I love coding, so I thought I could reach out to ask for some help.

    My goal My ultimate goal is to become a full-stack dAPP/ blockchain developer (and one day, do a PhD as well). I have set an intermediate goal for myself which is to try and secure a job as a junior/paid intern full-stack dev by the end of September, which is when I am going to start looking for a job), possibly but necessarily at a blockchain start-up. I want to focus on Ethereum and Hyperledger. I wouldn't mind working from remote, if need to.

    A little bit about me - I am about to graduate with an arts/business first class hons degree from a mid-ranking UK university. I am about to start a part-time master's in Computing and Information Systems, this programme (I know I don't need to do a master's or a degree at all to become a developer, I am doing one because I would like to do a PhD focusing on blockchain technology, one day :) ).

    In terms of tech experience, I have done two internships in business tech at the same large financial institution (and I hated them) - I understand Agile pretty well though I have never actually experienced it directly.

    In terms of coding, I am currently finishing the Android Basics nanodegree from Udacity (I am doing it because I wanted to get comfortable with Java before starting my master's, and I am not spending anything for it because I have been awarded a free scholarship and I work better with a structured course). I have also been teaching myself some front-end dev, mostly from CodeAcademy, the FreeCodeCamp Front-End Certification free Udacity courses, and reading books like You Don't Know JS.

    For what concerns my experience/knowledge of blockchain technology, I am completing the excellent Introduction to Digital Currencies MOOC from the University of Nicosia, I have read a number of books on the topic (such as the Princeton one, Mougayar, Tapscott and Tapscott, Antonopoulos's Mastering Bitcoin, Casey and Vigna, the new Ethereum Blockchain Beginners, etc.), I am writing extensively about blockchain tech (in particular about Ethereum and Bitcoin) as part of my final year dissertation, and I am also a student representative at crypto recruitment company, which puts me in a good position for when I'll applying for blockchain technical jobs. I also have quite a few contacts in my field of interest (creative industries & blockchain tech) and outside, and networking at blockchain Meetups and events is also part of my job :) .

    My plan - please give me feedback/ suggestions :) My plan is to spend part of April, the whole of May, June, July, August and part of September coding full-time, while working no more than 16 hours a week doing non-tech jobs. That leaves me with approximately 20-24 weeks considering some existing commitments I already have), and I plan to code a minimum of 40 hours a week, and a maximum of 60, depending on the week).

    I want to be able to secure either an internship/placement or junior position (OR if all else fail, work as a freelancer). I want to be able to master the basics in a relatively limited amount of time so I can work doing something I actually care about/ which is relevant to my future career 25-30hours a week (or maybe full-time, I'll figure it out) whilst I complete my master's, rather than do a non-technical job.

    What resources I have available & plan on using * - please give me feedback/ suggestions on this as well! :) Unfortunately, I can't afford to attend an in-person, coding bootcamp, as much as I would like to. I learn really well under pressure, following a course/ structure, reading books to integrate my knowledge, giving myself daily and weekly *goals**.

    I have purchased three courses for less than £30, which I don't plan on necessarily finish by September. These are: - Udemy's Colt Steele's Web Developer Bootcamp: this is going to be my primary source to follow, and that's the only course I plan to finish ASAP. - Udemy's Colt Steele's Advanced Web Developer Bootcamp: which sections should I focus on primarily? - Udemy's Rob Percival's Complete Web Developer Bootcamp 2.0 - I want to use it to integrate me knowledge from the two courses above. - FreeCodeCamp (I don't care about qualifications, I just want to get comfortable with its algorithm challenges from the Front-End + Back-End qualifications + do some of the projects) - Coursera: I definitely want to finish the Princeton Bitcoin course once I feel more confident in my coding skills.

    Some guidelines I am following: - Blockchain Developer Practical Advice From Experts - Hiring the Ultimate Blockchain Engineer - p1xt - Get Job ready with 13 projects, 2 courses, and 10 books - Ossu's CS (This seems like an excellent source. I was particularly looking at its Core curriculum)

    Some questions - Which languages and frameworks should I prioritise to reach my goal? - Should I focus on becoming an alright full stack dev first, while working on blockchain-related projects on a side, OR try and get an entry level blockchain dev job? - What are the best free/inexpensive blockchain development learning resources + qualifications (even more costly ones) out there? (I like what's recommended by HowToken) - Which blockchain projects should/can I work on? - I want to refresh my maths skills. I haven't done much since college and I got the basics covered, but I want to improve as much as I can, and dedicate a few hours a week every week just focusing on that (even after I have found a job). Which sources would you suggest that I check out? I am just considering Ossu's CS curriculum (see above) + the OpenStax books

    Sorry for the incredibly long post. All help and advice is much appreciated!


    Edit: Yes, I am confused as heck. This is exactly why I am asking for help. I am not writing here to be judged. I just want advice on what resources I should use to become a full-stack blockchain developer. I am using resources on full stack web development because I want to be comfortable with languages like JavaScript before switching to dAPP development. I don't want to become a web developer.

    Thank you.

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

    Demorgan's Theorem flashbacks, I'm patting myself on the back.

    Posted: 30 Mar 2018 07:42 PM PDT

    Okay, so logic can be a pain. . . More often than not, people don't use it.

    I made it a point to read about the chapters in my Discrete Structures book.

    Taking a python class in udemy in my spare time and it just hit me. . . . . using if not(insert this here)

    Is the same logical result as DeMorgan's theorem for applying negative or "not" to a statement.

    I think I'm going to keep this book when Amazon asks for it back, I kind of like what I just discovered here. Plus, there is all of this stuff in it that I'm interested like Automata (TOTALLY not because of NiER . . .Maybe just a little ) or the legs of microprocessor driven spiders.

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

    AJAX/GET..confusion

    Posted: 30 Mar 2018 11:26 PM PDT

    I have two files: https://pastebin.com/KWTNgTZU and https://pastebin.com/kVd544cC

    I have to:

    1. Accept the data as JSON and turn that data into a table and put that table into the element whose id is 'getJSON'
    2. Accept the data as HTML and turn that data into a table and put that table into the element whose id is 'getHTML'
    3. Both tables need to be styled with a border, background color, and every second row a different color. Also ensure that the header at the top is styled with bold text and a different color than the rows of data in the rest of the table

    I think I can do part 3, it's just nth of type and inline styling.

    I guess I'm just lost with the 1 and 2. In my html file, line 84-85 I have something like

     // $("#getJSON").text(data[0]['SKU']); 

    But I don't know what I'm doing. Can someone guide me..it's just so hard compared to Java class since the instructor doesn't really teach anything, just shows code and says figure it out.

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

    [PHP/MySQL] I wrote a prepared statement to get the sum but I get two different answers

    Posted: 30 Mar 2018 10:55 PM PDT

    So I have the following PHP code:

    $stmt = $conn->prepare("SELECT SUM(person) FROM pass_events WHERE datetime BETWEEN CONVERT(?,DATETIME) AND CONVERT(?,DATETIME)"); // We count the number of entries between the begin date and the end date $stmt->bind_param('ss',$begin_date, $end_date); // "ss" refers to "string string", there is also (i)nteger and (d)ouble $result = $stmt->execute(); echo "Result: " . $result; 

    Where

    $begin_date = 2018-03-29 23:00:00:000 $end_date = 2018-03-29 23:10:59:999 

    When I run the query I should get 3. I copy/paste the query above right onto the SQL server (replacing the ? with the above values) and run it and I get 3 (as I should), but for some reason when I run the prepared statement above I get 1. What is going wrong?

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

    Git Rebase vs merge

    Posted: 30 Mar 2018 10:34 PM PDT

    Hello,

    First time poster here but I figured this would be a great place to get understanding on this. I have read in many places passionately arguing for both sides of the coin ( rebase vs merge) and I want to understand pros/cons of both during conflict resolution.

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

    Struggling with inFiles with Java Eclipse

    Posted: 30 Mar 2018 10:31 PM PDT

    Just to clarify, I am new to programming(2nd semester into programming)

    My project is I'm given an inFile with first and last names and five test scores. Then I have to use that info in the file to make it print to another file with the first/last name of the person, all test scores, the average of the test scores, then a letter Grade.

    So far, my program can read my objects(in the driver) then print them to an outFile with the names, tests, averages, and grade. Im wondering how can I make it so that my program reads an inFile or an existing one, then print it to another file with more information. Ex from my program:

    testData student1 = new testData("Jack", "Johnson", 85, 83, 77, 91, 76);

    PrintWriter outFile = new PrintWriter("classData.out"); outFile.println("First name Last name\tTest1 Test2 Test3 Test4 Test5 Average Grade"); outFile.println(student1);

    Instead of doing: testData student1 = new testData("Jack", "Johnson", 85, 83, 77, 91, 76); I need it to get the info from an inFile

    with what I have now, my outFile prints: First name Last name Test1 Test2 Test3 Test4 Test5 Average Grade Jack Johnson 85.00 83.00 77.00 91.00 76.00 82.4 B

    Any tips help since I've been watching tutorials, reading my textbook, and working on my project for 2 days straight and can't figure it out

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

    Communication between C# and webbrowsers (without port-forwarding?)

    Posted: 30 Mar 2018 06:23 AM PDT

    I have a C# application used all over the world, which essentially runs a java process. I would like to extend this program, and add a feature where people can read the process output from wherever they are using a web browser. (and possibly send input)

    My first thought was a WebSocket server which would run in the C# application, and the browsers would connect to it using javascript. However that would require port forwarding on every system running the server, and I haven't found a better solution to that than NATUPnP, which fails to do it's job on a significant number of computers.

    (And if that wasn't enough, I failed to create a successful connection between a C# webserver and javascript, but that's a whole other question)

    So what I'm asking is: 1. Is WebSocket my best option to do this? (best meaning stable, and not too complicated to do) 2. Is there a way to bypass the port forwarding issue? And if not, do you know of any more efficient ways than NATUPnP?

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

    Is there a better way to complete this question?

    Posted: 30 Mar 2018 04:16 PM PDT

    https://codepen.io/anon/pen/qoogwX

    I gave that as an answer during a Big 4 phone interview, but I unfortunately did not pass. The answer is correct though...

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

    Where could I find a long list of simple programming exercises for beginners? Sometimes I can't think of what to try coding next.

    Posted: 30 Mar 2018 10:12 PM PDT

    I'm looking for a list of simple things that a beginner might want to code, for example, start of with the basics like printing out a string, then asking for inputs... then something a little harder like writing a program that asks for a string or number and checks if its a palindrome... then something harder like asking for a username or password and depending on several rules, outputs if the password is correct or not... then something even harder....etc.

    I'm looking for a gradual progression where each new exercise lets you use something new like a new function or a new method. I've done a few exercises like checking which number is the largest from a few numbers entered by the user, counting how many vowels and consonants are in a string, a sum function (not using the built in one) that takes any amount of items, a multiplication function too, and a few other small/simple programs. Sometimes I can't think of what I could try next, and I thought I'd ask here.

    I'm currently learning Python, starting with Lua, and Java.

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

    [Java] Can someone help me zoom into a Mandelbrot Set?

    Posted: 30 Mar 2018 06:08 PM PDT

    First off; heres my program: https://github.com/StoopidMonkie/mandelbrotSet/blob/master/MandelbrotSet.java

    I'm writing a program for exploring the Mandelbrot set, it's a graph on the complex plane, the x axis is from -1 to 1 and y is from -1i to 1i. For every pixel, I check if the point belongs to the set by checking if it diverges to infinity, if it does not it is in the set, otherwise it is colored based on how quickly it is diverges.

    My question is; how would I zoom into this set? Most of the math is above me I'll be honest, so any help with this would be greatly appreciated.

    Here is the most relevant code

    hO is my horizontal offset which moves the graph left or right

    vO is the vertical offset

    s is the scale for zooming in

    I believe the math I'm doing when calculating the points is kind of pointless I feel like I should be working with imaginary numbers to zoom in, but as I said I'm really not sure, as I said I barely understand whats going on :x

    public void renderSet() { for(float x = 0; x < WIDTH; x++) { for(float y = 0; y < HEIGHT; y++) { int color = calculatePoint((x-w+hO) / (s * 4), (y-h+vO) / (s * 4)); buffer.setRGB((int)x, (int)y, color); } } public int calculatePoint(float x, float y) { float cx, cy; cx = x; cy = y; int i = 0; for(; i < iterations; i++) { float nx = x*x - y*y + cx; float ny = 2 * x * y + cy; x = nx; y = ny; if(x*x + y*y > breakPoint) { break; } } float ff = 0.0f; if(i == iterations) { return 0x00000000; } else { //ff = rand.nextFloat() * (0.02f) - 0.01f; return Color.HSBtoRGB((float)i / iterations + hueOffset, saturation, 1); //return 0xFFFFFFFF; } } 

    If anyone is interested in learning more about Mandelbrot Set, here's a couple of articles on implementing it that I found helpful.

    https://hardmath123.github.io/scratch-mandelbrot.html

    http://jonisalonen.com/2013/lets-draw-the-mandelbrot-set/

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

    [Java] Generate random number, and assign to integer array, and then print?

    Posted: 30 Mar 2018 06:15 AM PDT

    I'm working on this challenging assignment outside of my Java course and given this objective:

    "In a loop, generate a random party size, assign it to the waitingLine, and print it For generating the random party sizes, use the constants PARTY_SIZE_MIN and PARTY_SIZE_MAX to adjust the result you get when using the nextInt method

    I don't understand how to use the min and max values however in tandem with Random variable...

     public static int PARTY_SIZE_MIN =1; public static int PARTY_SIZE_MAX=5; Random myRandom=new Random(); int x = myRandom.nextInt(6); //max party size is 5 Scanner keyboard = new Scanner(system.in); System.out.println("Enter the number of parties in the waiting line: "); int lineSize = keyboard.nextInt(); int[] lineArray = new int[lineSize]; // made a new array to the size of the line input by the user for (int i = 0; i < lineSize; i++) { lineArray[i] = rand.nextInt(PARTY_SIZE_MAX-PARTY_SIZE_MIN)+1; //generate random numbers. upperbound-lowerbound, + 1 at end. 

    The numbers have to start a 1, not 0, which further complicates this... Any help is appreciated.

    edit: Updated my code

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

    No comments:

    Post a Comment