• Breaking News

    Thursday, March 1, 2018

    Would anyone like to code some projects with me? learn programming

    Would anyone like to code some projects with me? learn programming


    Would anyone like to code some projects with me?

    Posted: 01 Mar 2018 08:23 AM PST

    Hi everyone!

    I have built up a good coding foundation over the last two years by taking various online courses and a part-time CS degree, but the one thing I've lacked are fellow coders for support – most of my friends are in different industries.

    I finally decided that it was a good time to get into open source so am reaching out to Reddit to see whether anyone would like to join me on this adventure.

    My focus is currently on Javascript but I am also interested in C#, Java, SQL, .Net and open to much more than that. I'm especially into web development.

    I'm looking for 2 or 3 coders like myself with a good foundation but limited practical experience who are extremely keen to learn and can dedicate at least 30 minutes to an hour a few times a week to contribute to our projects.

    I figured it would be cool to challenge ourselves with some very basic in-browser JavaScript projects and eventually build up to something more complex, so I plan to start with;

    A hangman game, A Pong Game, Tetris,

    These games already exist a hundred times or more, but no doubt the best way to learn is to try to figure out ways to do it ourselves with our existing knowledge and research before comparing to what's out there. We can also include our take on things.

    We will also support ourselves with sharing courses and resources in order to reach our common goals.

    We can critique each other's code and expand our network of coding friends and mentors.

    We will set up WhatsApp/Skype group and subsequent projects will be put to a vote.

    Does anyone fancy joining in?😊

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

    Good beginning game development programs?

    Posted: 01 Mar 2018 05:51 PM PST

    I'm not a super experienced programmer, but I'd like to start getting into some game development. What kind of programs/compliers are good ones to get started with? Thanks in advance :)

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

    Anyone trying to learn web design?

    Posted: 01 Mar 2018 09:39 PM PST

    I have just started learning web designing. I am done with basics of HTML CSS and JavaScript and wanted to learn with someone. Anyone interested?

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

    Does anyone want to practice and learn code with me?

    Posted: 01 Mar 2018 03:52 PM PST

    I recently saw a post about someone wanting to find a few people to code projects with them. I noticed a lot of the responses were beginning coders wanting to learn together so I thought I would attempt to start a group for that!

    I'm currently on my second degree my first was in fashion design my second will be in CS. I'm still getting my feet wet, but I have a pretty good understanding of C++, and HTML (if that's even useful anymore).

    If anyone wants to join me on my coding journey, and just have a group of people to learn from and ask questions let me know. I'll eventually post a discord link or something. Happy coding!

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

    Isn't it too late for me to try again to learn any skill in 31?

    Posted: 01 Mar 2018 03:25 PM PST

    I was struggling with myself to learn any language in last decade . I don't know if it's my IQ or my laziness but every time I fail :-/

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

    Can 2D arrays be used as 1D arrays?

    Posted: 01 Mar 2018 02:07 PM PST

    edit: Not sure if the title is the right way to ask the question.

    edit 2: Nevermind, I got it, the grid[0].length refers to the 1st array and prints it's length value. The only question I have now is, if it can print the length value, why can't it print the value. for example, if it's grid[5] in an array of {4,7,3,6,8,1,3}, why doesn't it print 1? Does it always need to be said with grid[0][8]?

    How is this possible?

    The 2D array lenght for grid is 9. So grid.length = 9

    Min = 1

    Max = 9

    private static boolean checkValues(int[][] grid, int min, int max) { for (int row = 0; row < grid.length; ++row) { for (int col = 0; col < grid[0].length; ++col) { if (grid[row][col] < min || grid[row][col] > max) { return false; } } } return true; } 

    I'm confused about the following part:

    for (int col = 0; col < grid[0].length; ++col) 

    grid is a 2D array so how can it use grid[0].length?

    What does grid[0].length mean?

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

    I want to get the second most recent entry in a SQL database?

    Posted: 01 Mar 2018 02:58 PM PST

    I have a simple table, that has weight_id, weight, and date_added. What I want to do is subtract the most recent entry from the one from the day before. I can't figure out how to get the second most recent entered. Is there a query I can perform to be that specific? Or is it a little more complicated?

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

    [C++]Two quick 101 question about NPC management for a game

    Posted: 01 Mar 2018 09:36 PM PST

    Apologies if this question has already been asked, I wasn't able to find anything in the search, and when I try to use Google for just general internet, nothing seems to help. It's really an embarrassingly simple question but for some reason I am just stuck.

    Basically, I am making a simple text game. The player can move around different areas (think Zork - "You are in a clearing", "you are on a forest path" type setup), and there are a number of NPCs that also move freely around the game world.

    So the first question: would it be a good idea to have a vector of NPC classes, where each NPC class has a "location" variable? And if I wanna see which NPCs are on the same location as the player, I would just iterate through the vector and select which ones share the same location as the players?

    Second question: if I wanted the NPCs to be able to interact with each other, would I keep the same 'master vector', or would it make sense to give each location its own vector, and then move NPCs between vectors when they walk around the map?

    My gut tells me the single vector is probably the best idea but I just wanted to see what people said about the other way I thought up.

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

    Is reverse engineering tutorials an effective way to learn?

    Posted: 01 Mar 2018 09:07 PM PST

    I have had a lot of trouble learning Django in the past, I found a tutorial that is finally making sense (and I'm getting no errors FINALLY). I want to do the tutorial, and along the way tweak little things here and there to get an understanding of what does what.

    The docs just simply do not help me, so this is my only real chance at learning it.

    Do you think this method is effective?

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

    You have learned HTML/CSS/PHP/SQL basics a long time ago. But now you want to learn the new ways of doing things in those languages and new concepts. Where do you look?

    Posted: 01 Mar 2018 11:45 PM PST

    You have learned HTML/CSS/PHP/SQL basics a long time ago. But now you want to learn the new ways of doing things in those languages and new concepts. Where do you look?

    Do you update your knowledge from certain kinds of websites? Or do you buy books? Etc.

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

    Synchronizing a class across multiple projects.

    Posted: 01 Mar 2018 11:44 PM PST

    I have a class, let's call it "Effect", that exists in three different places. In my main C++ project, in JSON notation for deserializing, and in an editor written in C# where I perform tests.

    If I change the class in one project, I have to manually edit the others to ensure they stay in parity. This seems like a common enough problem that someone may have come up with a solution already.

    So how do I ensure that all three versions of the class stay synchronized?

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

    Anyone want to collaborate In doing some Python basic projects ?

    Posted: 01 Mar 2018 01:07 PM PST

    I am completely novice in Python... took 2 python programming online course so I think my book knowledge is decent enough. But no python programming experience... I want to start writing python code for very basic projects and learn along the way while actually coding .... Starting from doing mathematical calculations to making some games.... We can take very basic projects from online specially the ones taught by universities and do coding ourself in collaboration.... we can have sync up everyday or alternate day to discuss progress... I am looking for someone who has .zero programming experience and would like to start from scratch... zero programming means who doesn't even know any other language....

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

    Can anyone explain what is happening in this code? C# - Visual Studio

    Posted: 01 Mar 2018 11:40 PM PST

     using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Text.RegularExpressions; namespace ConsoleApp7 { class Program { private class WnB { private static int s_Id; public int[] W { get; set; } public int B { get; set; } public int Id { get; private set; } public WnB() { Id = s_Id++; } public override string ToString() { return "[" + Id + "] " + "W={" + string.Join(",", W.Select(v => v.ToString())) + "}, B=" + B; } public int Total { get { return B + W.Aggregate(0, (a, v) => a + v); } } } private class Datum { public int[] X { get; set; } public int Y { get; set; } public bool Test(WnB wnb) { return Y * (Multi(wnb.W, X) + wnb.B) > 0; } public override string ToString() { return "X={" + string.Join(",", X.Select(v => v.ToString())) + "}, Y=" + Y; } } public static void Main(string[] args) { var data = new[] { new Datum {X = new[] {-1, 1}, Y = 1}, new Datum {X = new[] {0, -1}, Y = -1}, new Datum {X = new[] {10, 1}, Y = 1} }; WnB wnb; int i = 1; for (wnb = new WnB { W = new[] { 0, 0 }, B = 0 }; data.Any(datum => !datum.Test(wnb)); wnb = data.Aggregate( wnb, (curWnB, datum) => { var nextWnB = datum.Test(curWnB) ? curWnB : new WnB { W = Add(curWnB.W, Multy(datum.Y, datum.X)), B = curWnB.B + datum.Y }; Console.WriteLine(datum + " begets " + nextWnB); return nextWnB; })) { Console.WriteLine("Round #" + i++); } Console.WriteLine("Total=" + wnb.Total); } private static int[] Add(int[] a, int[] b) { return a.Zip(b, (x, y) => x + y).ToArray(); } private static int[] Multy(int a, int[] b) { return b.Select(v => v * a).ToArray(); } private static int Multi(int[] a, int[] b) { return a.Zip(b, (x, y) => x * y).Sum(); } } } 
    submitted by /u/Draco_Black
    [link] [comments]

    Trying to break my Main into 2 Methods - Basic Java

    Posted: 01 Mar 2018 04:05 PM PST

    public class HWtest { private static String userName; private final static String universityName = "Harvard"; public static void main(String[] args) { // // // I want 2 Methods : // 1) CheckArgsInputs (below) // // Checks input has been entered if (args.length == 0) { System.out.println("Zero inputs detected"); } // Checks only 2 inputs have been entered else if (args.length!=2) { System.out.println("Must enter exactly 2 inputs"); } // Removes blank inputs and checks if valid else if (args[0].trim().equals("") || (args[1].trim().equals(""))){ System.out.println("Input Invalid! No characters entered"); } // This prints out only valid inputs else System.out.println(args[0] + " " + args[1]); userName = args[0]; System.out.println("Hi " + userName + "."); // // 2) Check university input == "Harvard" // //Prints if Harvard is entered if (args[1].equals("Harvard")) { System.out.println("University Verified"); } else { System.out.println("You must go to Harvard!"); } 

    } }

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

    [linux] why does "copy" have a man page if it's not a command?

    Posted: 01 Mar 2018 11:32 PM PST

    "copy" has a man page but when I try to use it, it tells me command not found. why? The man page is listed as 7pg91 what does that mean?

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

    One tool I've found helpful to keep me motivated

    Posted: 01 Mar 2018 07:41 PM PST

    One tool I've found to be super helpful in terms of keeping me motivated I spent most of my day learning NodeJS and ended my day refreshing myself on Array methods. Turns out I spent 7 hours in total programming and I have a goal to do at least 4 hours a day.

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

    [linux] why doesn't the cp command work on an empty directory?

    Posted: 01 Mar 2018 10:58 PM PST

    I know that adding -r makes it copy recursively and that'll work but is there a reason why cp . ~/backup won't work even if my current directory is empty?

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

    Are any of the books in the "code your own games" bundle on humble bundle good for beginners?

    Posted: 01 Mar 2018 10:27 PM PST

    I have dabbled in a little bit of coding using gamemaker I watched a few videos but didn't get very far. In the new bundle they have I saw they had one for gamemaker but buying it gets you a lot of other stuff with it and thats not including the stuff you can get if you go to the next teir.

    So I was wondering as a beginner programmer with very little knowledge would any of these books be useful to me?

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

    How relevant are Mathematical Proofs in Programming

    Posted: 01 Mar 2018 10:16 PM PST

    I am currently taking a math class for CS and the first classes are all about mathematical proof. I was wondering how relevant proofs are, and how often have you guys used them in your day to day job?

    Thanks

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

    [C++]Returning vector from a function(Radix Sort)

    Posted: 01 Mar 2018 10:10 PM PST

    i am trying to implement radix sort but couldn't get it done,when i run the code i got segmentation fault (the reason behind this is maybe i am not returning the vector correctly)

    code

    i think the problem has occur at line no.16 or 32

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

    Which JavaScript course would you separate from the others?

    Posted: 01 Mar 2018 05:00 AM PST

    Which course you found as most complete, quality and really worth to be recommended?

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

    [Machine Learning] Trying to make material strength predictions in Graphlab/Turi create

    Posted: 01 Mar 2018 09:59 PM PST

    I am doing a miniproject on a huge datasheet on steel with various parameters like heat treatment, process temperature, type of alloy etc. with the aim of predicting material strength. I am writing in Python using the Graphlab/Turi Create library for machine learning. My model makes fairly accurate predictions now (around 89% accurate) which is all well and good, my only question is what now? How can i actually put the trained model into use? I am looking for some type of code which takes an array of input parameters and outputs an array of the model predictions, but so far no luck. Does anyone have any clue on how to achieve this or something similar?

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

    My Visual C# Pizza Pricing Discount Program, am I making correct use of the WHILE statement?

    Posted: 01 Mar 2018 09:54 PM PST

    Hi all,

    I'm making this program where you order multiples of a type of size pizza and then it configures a discount and returns the values back to you.

    I thought that using "WHILE" would be good here. Unfortunately, my program will not compile and I do not understand why. For the most part I think the logic is sound.

    Can anyone please tell me where I am going wrong?

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PizzaPrices { class Program { static void Main() { string[] sizeString = { "S", "M", "L", "X" }; double[] pizzaPrices = { 6.99, 8.99, 12.50, 15.00 }; int x; double pizzaCount; string pizzaCountString; string userChoice; double discount; double discountPercent; double pizzaTotal = pizzaPrices * pizzaCount; double realTotal; Console.Write("Which size pizza?"); userChoice = Console.ReadLine(); Console.Write("How many pizzas?"); pizzaCountString = Console.ReadLine(); pizzaCount = Convert.ToInt32(pizzaCountString); x = Array.BinarySearch(sizeString, userChoice); if (x < 0) Console.WriteLine("{0} not found.", userChoice); else Console.WriteLine("{0} will be {1}", userChoice, pizzaPrices[x]); while (pizzaCount < 1) { discount = 0; realTotal = pizzaTotal - discount; Console.WriteLine = ("{0} pizza is normally {1}. With {2} discount it is {3}", userChoice, pizzaPrices[x], discount, realTotal); } while (pizzaCount > 1 && pizzaCount < 2) { discountPercent = 0.15; discount = pizzaTotal * discountPercent; realTotal = pizzaTotal - discount; Console.WriteLine = ("{0} pizza is normally {1}. With {2} discount it is {3}", userChoice, pizzaPrices[x], discount, realTotal); } while (pizzaCount > 2) { discountPercent = 0.20; discount = pizzaTotal * discountPercent; realTotal = pizzaTotal - discount; Console.WriteLine = ("{0} pizza is normally {1}. With {2} discount it is {3}", userChoice, pizzaPrices[x], discount, realTotal); } } } } 
    submitted by /u/fatandhilarious
    [link] [comments]

    HOMEWORK HELP [C#] [Syntax Error]

    Posted: 01 Mar 2018 09:51 PM PST

    I'm getting a syntax error on MarkToGrade, could anyone help me out? Here's the code:

    public static void Main() { // declare variables int inpMark; string lastName; char grade = ' '; // enter the student's last name Console.Write("Enter the last name of the student => "); lastName = Console.ReadLine(); // enter (and validate) the mark do { Console.Write("Enter a mark between 0 and 100 => "); inpMark = Convert.ToInt32(Console.ReadLine()); } while (inpMark < 0 || inpMark > 100); // Use the method to convert the mark into a letter grade grade = MarkToGrade(); (THIS IS WHERE THE ERROR IS 'MarkToGrade') // print out the results Console.WriteLine("{0}'s mark of {1} converts tpo a {2}", lastName, inpMark, grade); Console.ReadLine(); } // Method: MarkToGrade // Parameter // mark: call by value parameter to be converted to a letter grade // Returns: the corresponding letter grade public static char MarkToGrade(int mark) { char letterValue; // multi-alternative If statement to determine letter grade if (mark > 0 && mark < 50) letterValue = 'F'; else if (mark >= 50 && mark < 60) letterValue = 'D'; else if (mark >= 60 && mark < 75) letterValue = 'C'; else if (mark >= 75 && mark < 85) letterValue = 'B'; else if (mark >= 85 && mark <= 100) letterValue = 'A'; else { Console.WriteLine("***Error - invalid mark"); letterValue = 'X'; } //return the letter grade back to Main return letterValue; } 

    }

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

    No comments:

    Post a Comment