• Breaking News

    Wednesday, February 5, 2020

    I wrote a small study guide for new programmers, "How to Learn How to Learn How to Program", to prevent issues like tutorial hell and coding fatigue. learn programming

    I wrote a small study guide for new programmers, "How to Learn How to Learn How to Program", to prevent issues like tutorial hell and coding fatigue. learn programming


    I wrote a small study guide for new programmers, "How to Learn How to Learn How to Program", to prevent issues like tutorial hell and coding fatigue.

    Posted: 04 Feb 2020 03:40 PM PST

    Hey all, I'm a relatively new programmer and wanted to suggest a few ways to prevent common issues we see on the subreddit.

    Despite how well-resourced, structured, and informative /r/learnprogramming is, we see the same phenomenon: a disproportionate amount of noobies, like myself, wanting to program but not wanting to work very, very hard.

    So I wrote a little guide that packages the work you do programming as part of a small and simple process you can replicate over and over at any level of proficiency.

    I'm posting this because, thus far, it's been the only thing helping me avoid bad practices and keep good ones (technically, and mentally). We're all different, and we all have different capacities for coding off the bat, but a lot of what prevents "the next step" in our careers seems to be discipline.

    So, here's a little primer.

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

    How do I get out of tutorial hell?

    Posted: 04 Feb 2020 09:39 AM PST

    You know when you get the concepts but you don't understand how to implement anything without a tutorial, or are hopping from tutorial to tutorial, language to language trying to figure out what the hell you want to do?

    I'm stuck there and can't get out.

    I've tried w3schools, codecademy, udemy , YouTube etc etc and I can't get myself to stick to a language or do something with it. I end up forgetting most of it a week or two later and have to relearn everything from scratch.

    I just need advice on how to get out of it and start doing something.

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

    How I Got Started with Angular and TypeScript

    Posted: 04 Feb 2020 11:46 PM PST

    Learning Angular isn't the easiest thing in the world. It takes a while to learn it. However, once I understood the basic architecture of Angular, creating apps with it became easier. In this article, I'll show how I learned Angular and TypeScript without knowledge of either. ....
    https://blog.soshace.com/how-i-got-started-with-angular-and-typescript/

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

    Beginner at web development (HTML, CSS, JAVA) Need some guidance

    Posted: 04 Feb 2020 11:13 PM PST

    I've been trying to learn web development for awhile and I've been running into problems that I think can be solved with some guidance. It would be nice to have someone that has a job/experience as a web developer or software engineer that can guide me towards the right direction of things to work on learning or building. Help me learn the basics , build projects and become a decent at coding HTML , CSS and Java!

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

    How do you start a side project?

    Posted: 04 Feb 2020 11:07 PM PST

    I'm kinda lost on making my own side project that I can put on my resume. I was wondering how people go about that. I just been learning a bunch of programming language, but I'm not applying it which results in losing my knowledge in a particular language.

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

    Need to build a function using an array that can display the first n numbers in the fibonacci sequence. [C]

    Posted: 04 Feb 2020 10:59 PM PST

    I am completely new to C programming and somewhat new to programming languages in general, so bear with me. I am currently in a C programming class and we just learned about arrays. Basically, for our homework we must create a calculator program in which the mathematical operations are represented by their own functions outside of main. One of these functions must give the user the first n numbers in a number sequence, so I chose the fibonacci sequence.

    I understand how I could complete this function without using arrays, but I genuinely have no idea where to start. Is it possible to have the user input set as the array size? If so, how would I be able to set the array values without setting any values in the array? Should I just give the array a large size and hope the user doesn't want to input a higher value?

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

    [C] Why is #define PUT_BYTE(p, v) (*(char*)(p) = v) != #define PUT_BYTE(p, v) (*(char*)p = v)

    Posted: 04 Feb 2020 10:47 PM PST

    I am having trouble understanding why these two macros are different.

    It seems it is necessary to put the parenthesis around p.

    #define PUT_BYTE(p, v) (*(char*)p = v)

    Gives an error:

    error: lvalue required as left operand of assignment #define PUT_BYTE(p, v) (*(char*)p = v)

    I have no idea why it is complaining. It seems like putting parenthesis around something shouldn't change anything.

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

    What's the best way to create a test PostgreSQL database on my Linux PC for developing a web app?

    Posted: 04 Feb 2020 10:44 PM PST

    I'm trying to contribute to an open source web app, but when I run the compiled backend executable, it wants a PostgreSQL connection on localhost at a port I'm supposed to specify. Is there a way to create a test database on Linux while not exposing the port anywhere outside my computer and not having a database daemon running when I'm not programming?

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

    What do I need to learn for this tutorial to make more sense?

    Posted: 04 Feb 2020 10:41 PM PST

    Hi everyone I'm just now getting into learning web dev/programming and I thought I would start with HTML. I've seen Derek Banas channel promoted quite a bit, so I just started watching this tutorial:

    HTML 5 Tutorial - Derek Banas

    I'm about 5 minutes into the tutorial, so I apologize if my post is premature, but I'm having a hard time following what he's talking about. It seems this tutorial is geared towards people who already know the terminology he's talking about. Do you have a recommendation for a complete beginner? Like maybe a glossary or something like that? This makes me so frustrated lol, I have no idea where to start. But I appreciate any help!

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

    What are some must know things and tips for a beginner programmer who decides to jump to Linux which may make their beginning experience easier?

    Posted: 04 Feb 2020 10:37 PM PST

    Need some advice to beginner linux and similar distro user and make their life easy

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

    Are you looking for a python project?

    Posted: 04 Feb 2020 06:45 AM PST

    I'm new to programming and I've been working on a project for a few weeks now; a friend of mine had an idea in mind for some years but could not find the time to put in it, so, since he knew I was trying to learn to programming, he offered me to work on it.

    Is a model to simulate the chemical evolution of galaxies, or rather, the conversion into python of an old fortran code about that.

    lately I have been struggling to keep the pace and I thought that if I worked with someone I would have more motivation, if you are learning python and looking for a project we can work together :)

    if instead you don't have time but you have experience and willing to give me some tips, I post here the repository:

    https://github.com/Red1408192/StarDeep

    submitted by /u/Red_-_192
    [link] [comments]

    I got the foobar challenge from google and my solution cannot pass the hidden test. Can you please take a look at it. Thanks

    Posted: 04 Feb 2020 09:41 PM PST

    There's some unrest in the minion ranks: minions with ID numbers like "1", "42", and other "good" numbers have been lording it over the poor minions who are stuck with more boring IDs. To quell the unrest, Commander Lambda has tasked you with reassigning everyone new, random IDs based on her Completely Foolproof Scheme.

    She's concatenated the prime numbers in a single long string: "2357111317192329...". Now every minion must draw a number from a hat. That number is the starting index in that string of primes, and the minion's new ID number will be the next five digits in the string. So if a minion draws "3", their ID number will be "71113".

    Help the Commander assign these IDs by writing a function solution(n) which takes in the starting index n of Lambda's string of all primes, and returns the next five digits in the string. Lambda has a lot of minions, so the value of n will always be between 0 and 10000.

    Languages

    To provide a Java solution, edit Solution.java To provide a Python solution, edit solution.py

    Test cases

    Your code should pass the following test cases. Note that it may also be run against hidden test cases not shown here.

    -- Java cases -- Input: Solution.solution(0) Output: 23571

    Input: Solution.solution(3) Output: 71113

    -- Python cases -- Input: solution.solution(0) Output: 23571

    Input: solution.solution(3) Output:

    71113

    My solution: https://www.codepile.net/pile/yo3XZBpQ

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

    Trying to understand how to remove a vertex from a adjacency list based graph in Java.

    Posted: 04 Feb 2020 09:22 PM PST

    Here is the code.

    I have a few questions.

    adjVertices.values().stream().forEach(e -> e.remove(v)); 

    To me it looks like it's iterating through the values (which are arraylists) of the map and removing vertex v from each of the the value lists. Am I correct? If that is true, would this code also work? I'm more used to iterating through a map through keySet() istead of whatever this is.

    for (vertex key : adjVertices.keySet(){ adjVertices.get(key).remove(v); } 

    Last question is what is the purpose of this?

     adjVertices.remove(new Vertex(label)); 

    Why can't I just write adjVertices.remove(v)? Creating another vertex just to remove it seems unnecessary.

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

    Need some logical advice [Java]

    Posted: 04 Feb 2020 08:39 PM PST

    So I'm working on an assignment where I need to read a series of data from text file, parse that data into usable chunks and then use the appropriate chunks to create a series of objects that will be stored in an array to be read back out into a new file.

    as an example of the format of the data in the file:

    4 WTB_saddle,1234567890,33.00,25.58,false 26inTube,1234567891,7.00,5.58,true seatPost,1234567892,17.00,15.21,true carbonHandleBars42cm,1234567893,47.00,5.58,false 

    the first line with just the number '4' on it indicates how many items the file is suppling data for. with each line after that supplying the data for the item itself. each item would be read in like so:

    partName -- partNumber -- listPrice -- salePrice -- saleStatus.

    but how can I get the program to see the first time and treat it differently from the rest? I thought I could do an if/else block and just check if the array the data is read into is length 1, but that would cause it exit the loop as soon as it read the 4.

    Can I read each line into a String array, then take array[0] as the control variable for the number of items to create, and just parse each string after that splitting it on the ',' and casting the resulting substring to the data type I need for the objects? Or am I over-thinking this and making it more complicated then it needs to be?

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

    Coding bootcamp... full-stack or data science track?

    Posted: 04 Feb 2020 08:19 PM PST

    Hello all,

    I'm highly considering attending HackReactor at Galvanize's coding bootcamp in Austin, TX. That being said, their full-stack course has relatively good reviews and job placement (some good years, some bad). A year or two ago they added a data science track as an alternative. Knowing that the industry is somewhat oversaturated with full-stack devs, is the data science track worthwhile?

    A little backstory: I'm a self-taught web developer and have an intermediate proficiency in JS and am with other front-end technologies. I've always been interested in data science but felt the full-stack program was a better bet in terms of landing a job (I am a college senior in a non-tech major).

    Any advice or comments on the status of how the industry is hiring right now, or comments on data science programs within bootcamps are greatly appreciated!

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

    Programming a Samsung Gear?

    Posted: 04 Feb 2020 08:15 PM PST

    Does anyone have experience programming a Samsung Gear 2? I've never done a project with a smartwatch before but this is what I want to do:

    Detect the gesture of a dumbbell curl at the gym, and once finished curling start the timer on the watch to time a set.

    Anyone have any advice on how to pull this sensor data from the watch or other tips?

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

    What is pop?

    Posted: 04 Feb 2020 04:27 PM PST

    On mobile, I meant, OOP

    From what I understand, I'm supposed to make everything an object, with some minor exception. Element selections, and global variables for example

    Is that correct?

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

    Color Codes appear to have vanished?

    Posted: 04 Feb 2020 08:07 PM PST

    Hello all,

    I am a new programmer, and I have been using PyCharm. When I first started, different types of code (such as variables and "if", "or", etc.) would be highlighted in different colors.

    Here is an image of the problem I am currently facing: https://ibb.co/4P644vR

    As you can see, my code is now monochromatic. However, I don't remember changing any settings. This makes coding particularly difficult for me, as I am quite new; it would be very useful to have my good ol' colors back :)

    Does anybody have any pointers that may help to resolve this issue? Thanks in advance.

    Edit: I also no longer get a dropdown box when typing that provides suggestions for my code. These two issues arose at the same time.

    Edit #2: For those wondering, I am using the community version of PyCharm.

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

    [Rust] Trying to compile the "migrations_macro" dependency in a Rust project throws the error "ld: cannot find -lpq"

    Posted: 04 Feb 2020 07:43 PM PST

    I'm currently trying to run Lemmy (https://github.com/dessalines/lemmy) on my home PC so I start contributing to the backend. I'm on openSUSE Tumbleweed with all the latest packages.

    Running ./install.sh at the root of the repository, I get the following error when compiling the Rust source code with cargo run:

     Compiling migrations_macros v1.4.1 error: linking with `cc` failed: exit code: 1 | = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" [...] = note: /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: cannot find -lpq collect2: error: ld returned 1 exit status error: aborting due to previous error error: could not compile `migrations_macros`. 

    I have both postgresql and libpq5 installed as preliminary searches online yielded those as possible causes of the error, but I'm still getting the error.

    I'm admittedly not very familiar with Rust and have so far only really worked with higher level languages. I would appreciate any help with solving this problem so I can get Lemmy compiled.

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

    How much javascript do i need to learn to start web dev projects?

    Posted: 04 Feb 2020 07:43 PM PST

    I know practice is the best. But how much javascript do i need to do to actually make something. I only know basics like variables, objects, loops, if else, whatever else is on the freecodecamp basic javascript section.

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

    Looking for partner to practise problems with

    Posted: 04 Feb 2020 07:41 PM PST

    Hey all, I am looking for someone to practise codeforces problems with in order to get better at them. I am able to solve A and B but struggle with C (div2) so looking for someone with similar skills. HMU if anyone is interested :)

    submitted by /u/va_-
    [link] [comments]

    [bash/shell]is it possible to use "exec" to add a user to sudoers?

    Posted: 04 Feb 2020 07:13 PM PST

    Hi,

    exec is able to run in the command line. so is it possible to use "exec" to add a user to sudoers?

    thanks a ton

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

    ASP.NET

    Posted: 04 Feb 2020 07:11 PM PST

    Can anyone give me a good suggestion where I can learn ASP.NET? I'm trying to find good tutorials, but the ones I'm finding seem to use out of date versions of Visual Studios, so it's hard to follow along.

    I'm trying to create a simple webpage with a text-box and submit button.

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

    Picking out a Data Structure Solution

    Posted: 04 Feb 2020 07:03 PM PST

    Hey everyone,

    I'm in the process of parsing out ideas on a data structure for a "voting app" build.

    So far I've came up with the conclusion of using a heap. (I'm not sure if this will work)

    The initial idea is to have the candidates name and being able to move the data up and down the heap based upon votes (Likes & Dislikes).

    Overall I need a data structure that is dynamic, adds data from the bottom and can move up and down based upon votes.

    Any thoughts or advice would be highly appreciated.

    Thank you

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

    No comments:

    Post a Comment