• Breaking News

    Friday, October 30, 2020

    Break From Coding learn programming

    Break From Coding learn programming


    Break From Coding

    Posted: 30 Oct 2020 05:16 AM PDT

    I have been learning Java for about 6 months now. I spent a good amount of time each day coding and watching videos. When I was taking a "break" from coding maybe an hour or two a day or on the weekends. I found myself thinking about coding and constantly watching videos of people coding stuff that were beyond my level. So finally, after about 6 months of this, i decided to take a full week off coding. No videos, no writing code, no coding homework, and no thinking about it if possible. After doing that, i found myself wanting to code badly. It's my new hobby and as much as I enjoy it. The break was nice and now im ready to get back at it. If anyone out there is feeling burnt out or just feels they need a break, do it. It's not going to hurt your learning. If anything, it is going to improve it. Relighting the flame so to speak!

    Just wanted to share my story.

    submitted by /u/Rythmic-Pulse
    [link] [comments]

    Recursion - Easily the best explanation ever!

    Posted: 30 Oct 2020 06:13 PM PDT

    Stumbled upon this gem of a video and YouTube channel. Highly recommended regardless if you're new to recursion or want to take on some challenging problems. Great visualization too.

    https://www.youtube.com/watch?v=ngCos392W4w

    I was very surprised that I could not find 1 single post on Reddit about this YT channel. Deserve more recognition imo. Peace.

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

    After 6 years, my first commit

    Posted: 30 Oct 2020 09:50 AM PDT

    I've been working on and off to learn code for the past six years. I got a job at a Tech company, started in Support and later moved to QA, where i had the opportunity to start getting involved with our automated QA engineering team. And today, after working for six years (on and off, with varying amounts of intensity/dedication), I finally made my first ever commit to a professional code base.

    So, for anyone out there who feels like they'll never make it...just keep on trying. Everybody has their own pace, and whether it takes you 6 months or 6 years, if you just keep on working at it, you'll get there

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

    If I want to learn how to code C++ how would I go about doing so?

    Posted: 30 Oct 2020 08:14 PM PDT

    I want to make a game in unreal engine, but I wanted to learn to code, so I thought I'd kill 2 birds with one stone, but I don't know how to go about this. Are there any specific tutorials or things that have help you guys to learn it?

    Edit; I have reconsidered my decision and decided to learn C# in unity, so if anyone has any info that would be helpful it is appreciated.

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

    What are the 'hello world' programs of your specific field?

    Posted: 30 Oct 2020 11:04 PM PDT

    For web dev:

    1. ToDo list

    2. Site with API integration

    3. Brochure Site

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

    How do I get better at problem solving with code?

    Posted: 30 Oct 2020 08:21 PM PDT

    I am at a beginner level in programming but understand a lot of the fundamentals. I like to practice on leetcode but even some of the "easy" problems I cannot complete. How do I get better at this aspect of programming? Thanks in advance!

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

    I have a question about the "<//>" thing. What is it?

    Posted: 30 Oct 2020 07:12 PM PDT

    What is "<//>"?

    What is it called, does it have a name? Where did it come from? Where was it first used? Why?

    Sorry if I have this on the wrong reddit, I couldn't fine anywhere better to put it. I also couldn't google it cus apparently google dislikes the "<" symbols.

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

    What made you interested to first start coding?

    Posted: 30 Oct 2020 06:35 PM PDT

    Currently a beginner and I'm looking for the passion to code. I wanted to hear some of your stories or experiences.

    I'm still searching for that passion and drive to actually start learning but the initial small spark is there.

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

    Little man computer printing letters

    Posted: 30 Oct 2020 03:05 PM PDT

    Hi all! I have an assignment to use lmc to add together and sum up numbers, then print "par" if the sum is and even number and "odde" if it's an odd number, but I don't know how to return letters in LMC. There's very little information to go around on Google

    Does anyone know LMC well enough to help me out?

    My code is:

     INP STA 99 INP ADD 98 STA 98 LDA 99 SUB one STA 99 BRP 2 Lda 98 OUT HLT 

    One DAT 1 Two DAT 2 SUB two BRP 14 ADD two BRZ 20 OUT odd HLT OUT par HLT

    Everything works except the out- part

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

    Need guidance on how to upload code to SiteGround (first time)

    Posted: 30 Oct 2020 11:45 PM PDT

    I developed a web app, purchased a domain, and know I need web hosting (I plan to use SiteGround), but am quite lost after that. How exactly do I go about uploading my code to SiteGround?

    Do I just go into the file manager and drag the folder?? Is it that simple?? That doesn't seem to work—I still get a "This site can't be reached" error when loading the site.

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

    Any good ebooks for these topics?

    Posted: 30 Oct 2020 11:13 PM PDT

    It's all about algorithm and programming.

    _

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

    [C++] How do i sort my vector by the lowest number to the highest without using the sort?

    Posted: 30 Oct 2020 07:23 PM PDT

    I have a vector that contains addresses. For example:

    fruits.push_back(0x1458A3C1); //40

    fruits.push_back(0x2458A3C2); //200

    fruits.push_back(0x3458A3C3); //15

    fruits.push_back(0x4458A3C4); //1

    In each one of these addresses its stored a random number. So when i read it, i have like, 40, 200, 15, 1.

    I need to order my vector fruits addresses from the address that contains the lowest number to the highest. What is the best way to do this? I know that sort orders it but only the specific vector stored values, so that wont work.

    Pls help.

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

    I'm starting to write a free book with intermediate software engineering topics

    Posted: 30 Oct 2020 04:25 PM PDT

    Hi,

    Today I launched the website for a book I'm writing called The Self-Improving Developer. It's for software engineers who are self-taught and are past the beginner level.

    It's going to have articles about topics such as reification, ASTs, Big O, covariance — that kind of stuff.

    I'm writing it in the open, so you can already read the chapters that I finished, including ones about guard clauses, generics, or hashing. The content will always be free online.

    The website: selfimproving.dev.

    My credentials are: CS drop-out, had to learn most things on the job later, got a degree in journalism, currently working in Silicon Valley, and have 15 years of professional experience explaining difficult things to smart people.

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

    How do I make a desktop icon that I can click to run a program instead of having to go through VS to run it?

    Posted: 30 Oct 2020 10:09 PM PDT

    Let me start off by saying I am very new. I wrote some code using visual studio. It's just a quick very basic thing that keeps score for a trivia game I play with my girlfriend. The only way I know how to open it is to open Visual Studio and then build the project and then run it. How do I make the project so that I can just click an icon on my desktop or something and it'll run?

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

    What to do when you lose motivation?

    Posted: 30 Oct 2020 09:36 PM PDT

    I really didn't know where to post this but I thought this might be a good place, however, if this does get taken down I completely understand.

    I'm currently in university studying CS and for this semester we have this group project wherein we build a mobile app. As a group, we had decided that we'd create an Android app, which would entail me having to learn Kotlin as well as how Android app dev is done. Initially, I was excited to learn a new programming language and how to create a mobile app (which I had never done before), and have been trying to follow along with tutorials on Kotlin and Android. The issue that I'm having is that I feel afraid/creating things for our app, and in general, I just feel incredibly slow at picking concepts up and haven't been able to contribute to my group project, while my other 3 group members seem to be flying - creating nice looking UI's and great code design and implementation of features, etc.

    To give context, I only knew one of the 3 group members from my time with him in a class we took, and these 3 know each other, and so it was only because I knew this guy that I was invited to be a member. For some reason, I just feel like I lose motivation because I'm fearful of what I do may not be as good as what these 3 put forward and I do feel an immense amount of guilt that I haven't been able to contribute much given I'm sort of the outsider here and have a sense of judgement placed upon me (which I already feel like they do so - again another thought that I should not entertain but my mind does so anyway).

    Perhaps what I'm asking is, what do you do when you feel afraid of coding, or maybe feel that you aren't competent, and how would you break that train of thought and actually gain motivation?

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

    Help desk ticketing app

    Posted: 30 Oct 2020 08:55 PM PDT

    I'm trying to learn any language to do this in for a job application. Basically they said if I can learn how to make something basic, they'd hire me. Weird situation, but I wanna do it. Is there a tutorial somewhere? It doesn't have to be fully functional and I could even use sql (but I think o need something else) I have an azure account. Sorry, this is a weird question

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

    Simple To Do List App in Python 3 Tutorial

    Posted: 30 Oct 2020 02:55 PM PDT

    Hi there,

    I have a YouTube channel where I post various coding tutorials that I mostly developed for my students (I teach middle and high school coding). Anyhoo, I recently posted a tutorial on how to make a simple to-do list using Python 3 and tkinter and thought I'd try sharing it here.

    Watch the Tutorial Here: https://www.youtube.com/watch?v=8qUJ9a_3zSQ

    Download the code here: https://raw.githubusercontent.com/wynand1004/Projects/master/To-Do-List/to_do_list.py

    I hope someone finds it useful.

    Keep on codin'!

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

    Why an .exe cannot be deleted while running?

    Posted: 30 Oct 2020 08:46 PM PDT

    In my logics everything is already memory mapped when an .exe is running and won't access the .exe in disk anymore. So why an .exe/.dll cannot be deleted while it is running?

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

    Self taught programmers, how do you keep yourself motivated when you get stuck in a programming concept/problems?

    Posted: 30 Oct 2020 10:53 AM PDT

    I have been learning JS on Codecademy and am stuck on Objects among other things. Every time I get stuck, I just want to give up.

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

    I have 2 vectors. One of them contains a food name, and the other the number of calories. I need to order the foods according to its calories from smallest to highest.

    Posted: 30 Oct 2020 08:30 PM PDT

    So i have 2 arrays:

    std::vector<int> fruits; std::vector<int> calories; 

    In fruits i have fruits category 1, that corresponds to oranges.

    2 corresponds to apples, 3 and 4 other fruits.

    So:

    fruits.push_back(0x1); //oranges fruits.push_back(0x2); //apples fruits.push_back(0x3); //etc.. fruits.push_back(0x4); //etc.. 

    And now i have the other vector, the calories that correspond to each food by order:

    calories.push_back(0x40); //oranges calories.push_back(0x26); //apples calories.push_back(0x30); //etc.. calories.push_back(0x14); //etc.. 

    I need to order the fruits vector from smallest to highest relative to its corresponding calories in the other vector calories.

    So that means fruits 0x4 would be the first element because it corresponds to 0x14 calories. Then it would be 0x2 because its 0x26, then 0x3 its 0x30, and only then in the fourth place 0x1 that is 0x40.

    How do i do this? Please help. Im not being able to do it using the sort.

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

    [Java} Need help applying catch to code

    Posted: 30 Oct 2020 04:38 PM PDT

    Code: https://gist.github.com/DaltonScar/0975a4a52ac130b2acce58099a7ebd57

    I need helping using catch for errors instead of loops. This is an assignment for my CS 1400 class.

    I don't know how to implement it. Online learning has been killing me and I don't know a way of absorbing the material better.

    Here is the assignment prompt.

    Body mass index is a measure of whether someone's weight is appropriate for their height. A body-mass-index value between 19 and 25 is considered to be in the normal range. Here's the formula for calculating body mass index:

    Implement a program that prompts the user for height and weight values and displays the associated body mass index.

    Perform input validation by making sure that the user enters positive numbers for height and weight. Use error handling to catch any invalid input.

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

    Absolute Beginner Question

    Posted: 30 Oct 2020 08:03 PM PDT

    Hi friends!

    I live in Missouri and they just passed a law recently that expands the expungement of felonies. This is awesome, obviously, because it lets current law-abiding citizens shed their felony branding. You can download the forms to request it off the internet (it's a PDF). The problem, though, is that the actual expungement process is intentionally complex and pretty hard to get.

    So you have to hire an attorney to get it. And that shit be EXPENSIVE. So I was thinking of setting up a system kinda like Turbo Tax, where you enter in all the data (where the offense was, what the offense was, who has records, etc.) and then it spits out the correct filled-out PDF for you and gives you tips on how best to request it and what to say in court.

    I'm open to paying someone to do it but I'd love to do it myself. Any idea where to start? I've got absolutely no clue but would love to hear from the experts!

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

    R programming language: does anyone have any experience with "javascript networkd3"?

    Posted: 30 Oct 2020 07:51 PM PDT

    Recently, I have been learning about Sankey Diagrams and have been trying to recreate them in R (https://rpubs.com/dmormandy/DV_Sankey).

    Here is my imaginary problem: I have a list of people with their first name, middle name and last name. They have common names and their names repeat. I am trying to make a 3 layer (each name is a layer) Sankey Diagram that shows how the names become more unique when you go to the middle name and last name. E.g. there are many "John's", but there is only one "John Claude Frank".

    Here is the fake data I created:

    library(networkD3) library(dplyr)

    name_data <- data.frame( "City" = c("Paris", "Paris", "Paris", "Paris", "Paris", "London", "London", "London", "Paris", "London", "Paris"), "First_Name" = c("John", "John", "John", "John", "John", "John", "James", "James", "Adam", "Adam", "Henry"), "Middle_Name" = c("Claude", "Claude", "Claude", "Smith", "Smith", "Peters", "Stevens", "Stevens", "Ford", "Tom", "Frank"), "Last Name " = c("Tony", "Tony", "Frank", "Carson", "Phil", "Lewis", "Eric", "David", "Roberts", "Scott", "Xavier") 

    ) From here, I understand that you need to create a "links" object and a "nodes" object which will be used to specify the relationships between the names. For the time being, I tried to create an additional column (in Microsoft Excel) that counts the total number of times each name appears in a given column, and then places that number beside the said name. But I don't think this is the right way to solve this problem.

    I tried to accomplish this in R, but I don't think I am doing it right:

    dats_all <- name_data %>% # data group_by( First_Name, Middle_Name, Last.Name.) %>% # group them summarise(Freq = n()) # add frequencies 

    I found this website over here and I am trying to recreate it with my data: https://ggforce.data-imaginist.com/reference/geom_parallel_sets.html

    library(ggforce) library(reshape2) name_data <- data.frame( "City" = c("Paris", "Paris", "Paris", "Paris", "Paris", "London", "London", "London", "Paris", "London", "Paris"), "First_Name" = c("John", "John", "John", "John", "John", "John", "James", "James", "Adam", "Adam", "Henry"), "Middle_Name" = c("Claude", "Claude", "Claude", "Smith", "Smith", "Peters", "Stevens", "Stevens", "Ford", "Tom", "Frank"), "Last Name " = c("Tony", "Tony", "Frank", "Carson", "Phil", "Lewis", "Eric", "David", "Roberts", "Scott", "Xavier") ) name_data$ID <- seq.int(nrow(name_data)) data <- reshape2::melt(name_data) data <- gather_set_data(name_data) ggplot(name_data, aes(x, id = ID, split = First_Name, value = value)) + geom_parallel_sets(aes( alpha = 0.3, axis.width = 0.1) + geom_parallel_sets_axes(axis.width = 0.1) + geom_parallel_sets_labels(colour = 'white') 

    I think I am getting closer, but there are still some problems. Could someone please show me how to me a basic Sankey Diagram in R (preferably where it shows the number of people at each level, something like this : https://i.redd.it/lrjdj45xrpo21.png)?

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

    No comments:

    Post a Comment