• Breaking News

    Wednesday, November 21, 2018

    What are some things that you feel aren't emphasized enough for beginners? learn programming

    What are some things that you feel aren't emphasized enough for beginners? learn programming


    What are some things that you feel aren't emphasized enough for beginners?

    Posted: 20 Nov 2018 08:46 AM PST

    Things that will have a huge positive effect if focused on early, and/or a huge negative effect if ignored early on, things like that?

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

    Data Structures and Algorithms: What is there to know?

    Posted: 20 Nov 2018 11:10 AM PST

    I've been doing front-end development for 3-4 years now. Mostly been working with a popular Microsoft Platform and doing customization's using JS, HTML, CSS. I worked with a start up for 6 months where I built the front-end (jquery) and did the backend in Ruby on Rails. I've also built another app in Angular for this Microsoft tool but it's mostly a crud app, make rest calls, display data, provide form, submit data, make get calls, display reports in Datatables, etc etc.

    Anyways, in all that time I've never had to "know" Data Structures and Algorithms. Either way, what am I missing here and why are they important. I'm confident I could pick up most languages and build a web site, app or whatever but whenever I see posts of "essential skills developers need" I usually see "data structures and algorithms". I mostly learned programming from YouTube tutorials and not CS / Engineering. Is there a big gap in my knowledge and if so what should I know?

    Thanks.

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

    8 hour car trip tomorrow: any programming YouTube videos/podcasts that stood out to you?

    Posted: 20 Nov 2018 03:58 PM PST

    I would like to listen to YouTube videos or podcasts on cool topics in our field. Ideally they are interesting enough to keep me stimulated without looking at a screen. I haven't found or heard of any podcasts at all so those would probably be preferred.

    I am a full stack developer so I am open to anything coding/technology related!

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

    Started my first real project on github, need tips and general information

    Posted: 20 Nov 2018 09:14 PM PST

    Hello everyone, I have been learning computer graphics in c++ for the last couple of months, all the projects I did didn't really have a point and were just made for learning perposes.

    But recently I started making a useful project (but it's main purpose is still learning) and I pushed it to github today.

    so I'm looking for general things that I should know about, I know the basics of git and such but I rarely use github and I have no information of it.

    Also if someone can review the repository and tell me the bad things (all the way from the code to the README) that will be greatly appreciated!

    Here is a link to it

    https://github.com/AbdullrahmanAlzeidi/ArabicGraphRenderer

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

    Wes Bos' React for Beginners - $20 with 7 people - Group Deal (Black Friday Sale)

    Posted: 20 Nov 2018 11:24 PM PST

    [HOMEWORK] Why is my undecorated window not "draggable" even after writing code that, according to Google, should work?

    Posted: 20 Nov 2018 04:22 PM PST

    Forgot to mention this is Java

    This is the class which you can run because I deleted all references to my other classes.

    I decided to try using an un-decorated frame because I personally think it looks better. I've tried Googling this for a long time, but I can't find any solution that works for me. Currently, I have two methods: One of them takes my mouse location and then the other is called to actually set the location. I've set an action listener for mousedragging onto the blue jPanel. When I press on it and drag, I know the methods are getting called because it's printing out X values, but the window doesn't actually move.

    I talked to my teacher about it and he thinks that I should do it a different way, but I really feel like this should work considering almost every link online tells you to do it this way.

    Thanks in advance for any help.

    EDIT: Main parts to look at are the two methods at the top and panel_1 because this is where I would think the problem is.

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

    [Homework] Humiliating SQL Question

    Posted: 20 Nov 2018 10:58 PM PST

    A company maintains its employee data in two tables, Employee and Employee_UIN. Write a query to print the unique identification number (UIN) and the name of employees whose age is less than 25. Sort the output by the alphabetical order of employee's name.

    If there are two or more employees with the same name, then sort the result by ascending order of their ids

    I only have issue with the bold sentence. How do I detect duplicates and apply it to if else logic to order by clause ?

    Employee table

    Name Type
    ID (PKey) Integer
    Name String
    Age Integer
    Address String
    Salary Integer

    Employee_UID table

    Name Type
    ID (PKey) Integer
    UIN String

    EDIT, my attempt that was rejected as incorrect by hackerrank

    Select Employee_UID.UIN, Employee.Name from Employee_UID JOIN Employee On Employee.ID = Employee.UID.ID Where Age<25 Order By EMPLOYEE_UIN.UIN, EMPLOYEE.NAME ASC 
    submitted by /u/xxxMrBOBxxx
    [link] [comments]

    camelCase vs under_score, which ones do you prefer and why?

    Posted: 20 Nov 2018 09:36 AM PST

    Personally always found underscored_variables much easier to read, but would love to hear your camelCase.

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

    How exactly do you download an open source program's source code?

    Posted: 20 Nov 2018 10:20 PM PST

    I am BRAND NEW to programming so I apologize for the stupid question. I have tried looking this up on google and I have not really been able to find a straightforward answer. Maybe I am looking in all the wrong places. I was just wondering how exactly I can download an open source program's source code, like Audacity for example. Where would I go to get that? Is the website Github? If so, how do I use it because I do find downloading from that site a bit confusing? Thanks!

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

    How to get over being overwhelmed by the amount of technology / frameworks I might need to know and which one to 'pick'?

    Posted: 20 Nov 2018 10:12 PM PST

    I get anxious trying to decide what I want to invest my time in (as a student cs major) and exactly what 'stack' I want to learn.

    Any tips on picking something that is valuable? Or once I learn one stack / framework, is it easy to switch?

    Thanks!

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

    Java library assignment

    Posted: 20 Nov 2018 07:57 PM PST

    public String toString() {
    //0. Ulysses. Joyce, James. : 1/1
    String libraryRep="";
    for(int i=0;i<books.length;i++){
    Book pointerBookBoi = new Book();
    pointerBookBoi = books[i];
    libraryRep += i + ". " + pointerBookBoi.getTitle() + pointerBookBoi.getAuthor().toString() + ". : ";
    }
    return libraryRep + statusString();
    }

    I am working on a library assignment for CS152, I have a book object and an author object, this method is supposed to return a string of all the books in the library in the format I have commented. I keep getting a Null pointer exception method, I can't figure out how to call books[i].getTitle() (a method from my book class), or anything like that. My apologies for my horrible explanation.

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

    Non-profit wishlist for projects

    Posted: 20 Nov 2018 06:52 PM PST

    Hey everyone. I seem to remember there being a website where non-profit companies have a wishlist of projects they would like built. I thought I saw it in the FAQ for this forum, but can't seem to find it anymore. Am I just crazy or does a site like that exist?

    Thanks in advance.

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

    [C] How can I reassemble elements of a tokenized string while restoring the delimiting characters?

    Posted: 20 Nov 2018 08:49 PM PST

    Hi everyone,

    I'm working on assignment dealing with message queues. What I'm required to do is take input such as "write 1 message content message content" and use that input to write a message to the message queue. I have to tokenize the input, since the string "write" is how I determine which action to perform (I also have a "read" and "exit" action) and 1 (or whatever digit) is used to determine the type of the message. The remainder of the string then becomes the message to be sent.

    I've successfully tokenized the string into a 2d array using a space character as a delimiter. Each element of the array is one of the strings. I've been able to successfully use the tokenized elements for the first two functions. My issue now is finding a way to recompile the remaining strings into one single string which makes up the message to be sent. I must also, obviously, find a way to replace the spaces between the separate strings.

    I've considered using snprintf() but this requires the separate strings to be specified within the parameters of the function call. Since the remaining message could be varying in length, this doesn't work.

    Does anyone have any ideas for this?

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

    Declaring python functions after calling them vs before?

    Posted: 20 Nov 2018 08:44 PM PST

    Going from Java to python is an experience to say the least. I'm creating just a basic console menu and was doing this:

    while True: print("Enter Option") print("Option A") print("Option B") temp = input() if temp.capitalize() == "A": optA() if temp == "Q": break 

    I was declaring my function optA() after that statement and was throwing a reference error. Is this always the case in python? Do I have to declare my functions first in the class or can I do it like java and call a function that is declared somewhere else?

    e.g in java: public class Option {

    public static String temp = ""; public static void main(String[] args) { Scanner in = new Scanner(System.in); do { System.out.println("Enter A : "); temp = in.nextLine(); if(temp.equalsIgnoreCase("A")) {optA();} } while(temp.compareToIgnoreCase("Q") != 0); } public static void optA() { System.out.println("You picked Option \t" + temp); } } 
    submitted by /u/thehunter699
    [link] [comments]

    Introduction level Java question

    Posted: 20 Nov 2018 08:27 PM PST

    I've begun my first Java tutorial on codecademy to try and get a head start on next semester and as I was messing around I found that when I print

    my variable awesomeLevel * 2 it equals 242 (awesomeLevel is equal to 121 so this makes sense)

    However when I change it to print awesomeLevel * '2' it equals 6050

    It seems to be multiplying by 50 but I was wondering if anyone could explain why? I realize this is very basic so thank you for helping me start my journey :-)

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

    [C++] Stopping "while" loop after 4 inputs

    Posted: 20 Nov 2018 12:28 PM PST

    Hi,
    I've started learning programming couple of weeks ago and I got a homework to edit "while" loop in such way that program stops after 4th input. The exact instructions are commented out at the top of the code. Can you give me some advices on how to do this? Thank you in advance!
    https://pastebin.com/iX5AJV7q

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

    Trying to understand Alpha beta pruning

    Posted: 20 Nov 2018 11:37 PM PST

    I'm trying to understand alpha beta pruning. According to this algorithm https://imgur.com/a/ORUz1MG, to me it seems like the node that has a 5 should have a 10 https://imgur.com/a/uIJq8Ul since max(alpha,5) =alpha since alpha = 10. But according to this algorithm https://imgur.com/a/tFGH0eZ ,it seems like it should be indeed 5. What's the difference between the two algorithms?

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

    SQL, Databases, Dashboards and API's

    Posted: 20 Nov 2018 05:32 PM PST

    I'm a beginner to intermediate programmer, mostly front end stuff looking to get a better understanding of pulling data from API's and joining it in cloud SQL services such as azure or AWS. Does anybody know of some good introductory resources that could help with this sort of thing, feeling a bit overwhelmed with how it all joins together.

    Thanks in advance

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

    How do you talk about a project in your resume that is technically a group project, but in reality you did the entire project by yourself?

    Posted: 20 Nov 2018 11:21 PM PST

    My group mates were just not very good programmers, and they wrote scripts that were too buggy or slow to use. Granted, out of about 3000 lines of code they contributed about 200 lines, but I feel that putting it as a group project is under selling myself :(

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

    How to do a breadth first search of an adjacency list?

    Posted: 20 Nov 2018 11:17 PM PST

    Say I have a graph and the adj list is represented by

    Map<V, ArrayList<V>> adjList; 

    This has all the vertexes and then an ArrayList containing all the nodes it is directly connected to (the ones it shares an edge with).

    My question is, how would I go about finding every single vertex that is reachable from a specific node in my adj list?

    public MyGraph<V> connectedGraph(V origin) { //returns new graph containing only vertexes reachable from origin } 

    Thank you to anyone who takes their time to help!

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

    What's wrong with this Python code?

    Posted: 20 Nov 2018 11:04 PM PST

    So I'm trying to make my own Python code for a program that finds the factors of a number. Still relatively new to Python, and so I can't figure out what's wrong.

    #This is a program designed to find the factors of a given numberfactors = list()numberinput = int(input("Enter a number: "))#Defines the function that will take a number and print its factorsdef FactorFinder(numberinput):print("The factors of ",numberinput,"are:")for divider in range(1, numberinput + 1):if numberinput % divider == 0:factors.append(divider)elif numberinput % divider == 1 and numberinput % divider == numberinput:print(numberinput," is a prime number")

    FactorFinder(numberinput)print(factors)answer = str(input(("Find the factor of another number?"))

    def FindAgain(answer): #Defines a function to ask whether to repeat the processif answer == "yes" or "y" or "Yes" or "Y":FactorFinder(numberinput)elif answer == "no" or "n" or "No" or "N":print("Okay, see you later")return:

    FindAgain(answer)

    Edit: Here's the error code:

    File "C:/Users/mirak/.PyCharmCE2018.2/config/scratches/scratch.py", line 17

    def FindAgain(answer):

    ^

    SyntaxError: invalid syntax

    Process finished with exit code 1

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

    How to self learn low-level system programming?

    Posted: 20 Nov 2018 07:08 PM PST

    I'm a bootcamp graduate that started his career in front-end development and eventually transitioned to a back-end Java Developer. I'm interested in learning about system level programming and was wondering what is a good place to start as a self-taught dev. I feel like this is something folks learn primarily through a CS degree and there doesn't seem to be much talk about people self-learning. Is this typically a harder field to break as a self-taught developer?

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

    I wonder if I'm ready to read SICP (The Wizard Book)?

    Posted: 20 Nov 2018 04:54 PM PST

    I've made a lot of small programs, and just last night I implemented a Singly Linked List (well, according to /u/desertfx, a stack) and today I'm planning on making a trie, if I finish the Qt for Beginners video series (recommended, although the instructor has a funny accent :P). Do you guys and gals think I'm ready for SICP, also known as the Wizard Book? Or should I learn Scheme first, then study SICP? Thanks a lot.

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

    How to create a Wiki?

    Posted: 20 Nov 2018 09:07 AM PST

    I would like to create a Wiki at my workplace. Could someone please recommend a good book or a site that could help me build a wiki site from beginning to end? I would like to use the wiki project to learn programming.

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

    No comments:

    Post a Comment