• Breaking News

    Wednesday, September 30, 2020

    I made use of programming for the first time in my daily life. It helps to reduce manual tasks so much! learn programming

    I made use of programming for the first time in my daily life. It helps to reduce manual tasks so much! learn programming


    I made use of programming for the first time in my daily life. It helps to reduce manual tasks so much!

    Posted: 29 Sep 2020 07:57 PM PDT

    I was creating 100s of folders, it was not possible to create each folder and write their names.

    Then, I got a video where Programology explained that u could use "md folder_name" command to generate multiple folders. But, writing 100 of such "md folder_name1", "md folder_name2", was not possible to do.

    So, what I did was wrote a C program to generate the names. It finished in few seconds.

    Programming saved me from wasting time. I know this is a simple task, very simple task, but saved my 30 minutes of time, and 1 hour of headache.

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

    How to move away from tutorial hell

    Posted: 29 Sep 2020 01:27 AM PDT

    Hi, I am 36 years old, and programming has been my hobby for a long, long time. I would like to turn that hobby into a job, but I don't know how. I have some mediocre knowledge, but I have no ideas, and I don't know which way to go. Whether web, or mobile or something else. I feel totally lost. I have half the knowledge behind me and a bunch of unfinished tutorials and courses. Did anyone have a similar problem and how did they solve it, because I obviously don't know how to solve it. When I choose a language and start learning it and practicing, I immediately have thoughts in my head, you will never find a job with this, did I choose well and so on, and I give up and move on to another. For example, a friend sent me an old MacBook Pro, the first thing I did was install XCode and started reading Swift tutorials. The language thrilled me, and then I read that Apple is switching to new chips, said I would never raise money for a new Mac and stopped. Is there any suggestion on how to get out of this, because I'm tired of doing hard physical work for 300 euros a month, and I'm wasting my time reading tutorials that I won't finish. Thank you and sorry for the long message and my bad english

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

    I have very basic Python knowledge. Is there a roadmap I can follow so I can learn what is needed to pursue a CS master's degree without a programming related degree?

    Posted: 29 Sep 2020 07:56 PM PDT

    As the title says I want to know if someone can give me or help me build a roadmap of the things I need to dominate (which languages, topics, etc...) to pursue a CS master's degree without having a programming related degree. I'm a very motivated guy, I've been learning Python by myself for approximately 7 months I think I like it and i'm willing to put in the hard work. I would appreciate it a lot if you could help me with this please!

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

    Step by step guide to becoming a modern backend developer

    Posted: 29 Sep 2020 07:35 AM PDT

    How accurate do you think this roadmap https://roadmap.sh/backend is

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

    How do i learn data structure and algorithms ?

    Posted: 29 Sep 2020 11:47 PM PDT

    I am a second year in computer science our college teaches this subject in a boring and uninteresting way almost as if memorization is what you need do it. I am really interested in this topic and thus i was wondering if you guys knew any really good/fun/interesting resource to learn this from ?

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

    Looking for a suggestion on automating browser tasks

    Posted: 29 Sep 2020 11:53 PM PDT

    A lot of the work I do involves basically just clicking radio buttons under different categories. Clicking and scrolling for hours at a time is not only painful for my hand but also inefficient since I get paid per submission, so the faster I do things the more money I make.

    I was considering picking up AHK but I wanted to check it there was any other suggestions before I dedicate to learning it. I'm basically just looking for a way to be able to go into "work mode" via a keyboard toggle that locks AHK (or whatever I use) onto the webpage, then from there hitting a specified hotkey would select the radio button of my choice (e.g. 1 on number row for the first radio button), and then going to the next set of radio buttons/checkboxes where I could use the same hotkey as before, just this time for the new selection of buttons (so I can reuse the same hotkeys.

    The only reason I mention "locking on" to the page is because I'd like the scroll to be centered on each task before automatically scrolling all the way to the next one after the final button has been pressed for the previous task. I have 5 tasks per page and the height of each one differs because it uses embedded forum content so it varies a lot in height, which I worry would make it a little annoying for me to get working properly with AHK because I'm not sure how well it handles tasks like this.

    I'm basically a complete beginner with actually writing code. I've dabbled a lot in building other people's code from github and can follow basic tutorials so I'm not an absolute beginner with no knowledge on anything. I'm mostly looking for suggestions on what I should use for accomplishing the described task. A lot of my tasks will be completely different from one week to the next, or change slightly between days, so something that's quick to get running and quick to customize once I learn the software would be preferred.

    I've considered doing something like a Greasemonkey script but I'm not sure if it would be appropriate for something like this. I'm probably going to end up sharing these scripts with my co-workers so Greasemonkey would at least make sharing a lot easier.

    Thanks in advanced :)

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

    It's not much but it's my first program with an if-else statement. What would you add/remove?

    Posted: 29 Sep 2020 12:01 PM PDT

    alert("Heyyo, this is a program I made to test whether you are of legal voting age."); var userAge = prompt("Please enter your age: "); if (userAge >= 18) { alert("Congratulations! You may vote this November :)"); } else { alert("I'm sorry. Please come back after you turn 18"); } 
    submitted by /u/jaysuchak33
    [link] [comments]

    Help please

    Posted: 30 Sep 2020 12:27 AM PDT

    #include <stdio.h>

    #include <cs50.h>

    int main()

    {

    int n;

    for (int i = 0; i < 10; i++)

    {

    n = get_int("Numbers ");

    }

    if ( n < 20 )

    {

    int j = j + 1;

    }

    else ( n > 20)

    {

    int z = z + 1;

    }

    printf("There are %d numbers below 20\n", j);

    printf ("There are %d numbers above 20\n", z);

    }

    when i try to run the program i get the error as "undeclared identifier 'j' and 'z'' im extremely new to coding and i could really use some help

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

    Looking for language-switching resource

    Posted: 29 Sep 2020 07:27 PM PDT

    I'm looking for a website that lets me pick the language I know and the language I want to learn, and compares their syntaxes so that it's easier to transition.

    Anyone remember what this is called? I can't seem to find it with my Google-fu.

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

    How can you organize big project files [need Tips]

    Posted: 29 Sep 2020 11:22 PM PDT

    I feel i'm losing focus trying to build an online application using python.. The problem i encounter is can't find the file in a short time.. I dont know what tricks used for naming and organizing all of files / directories

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

    Is the struggle common?

    Posted: 29 Sep 2020 11:03 PM PDT

    Hello everyone I am new here.(Joined 30 seconds ago) Before going to university I decided to learn coding. But it is a struggle for me. I dont know what I want to be. I want to work in game industry because games helped me a lot when I have mental health issues. So I want to do the sane for other people. I started to learn python in 2018 but never followed after "helloworld" section. In 2020 I started to take things seriously and found an online course in Alberta University. It was so hard and I dropped it in 6th week. It was hard to understand semantics and logic with simple videos. Even though I did understand I was struggling to program ehat I asked to. I can figure out what I need to do but couldn't solve the puzzle. So I quit. Then I went and learn godot engine. It was simple but I realised that to learn the thing I copy from what I learn in the video I need to understand how to code. Now I start to practice python with that famous 6 hour long tutorial in youtube. It helps but I start to couldn't figure answers to these questions. I feel frustrated. I started to code because I have no talent in sketch and wanted to create my own world. But I don't think that I can't do it with out lessons and other students. Can someone please give some advice? I know I wrote a lot and maybe you guys see this type of posts everyday. I just want to know should I change my directions to design or learn java or just get rid of this dream. Thanks for anyone who read this until the end.

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

    Why doesn't it work?

    Posted: 29 Sep 2020 10:24 PM PDT

    s = [1, 2]

    while s[-1] <= 1000:

    s.append(s[-1] + s[-2]) 

    for number in s:

    if number % 2 != 0: s.remove(number) 

    print(s)

    Somehow it keeps numbers which obviously have a remainder when divided by 2.

    If I check for it equalling 0 and append those numbers to a new list that's fine and correct. I know it's trivial but I can't seem to figure out why this way doesn't.

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

    Join Thousands of coders in our toughest coding competition ever!

    Posted: 30 Sep 2020 12:46 AM PDT

    Do you feel the need to polish your competitive coding skills?

    Well, here is a chance for you to showcase your skills and test yourself!

    Check out for the registration link and rules->https://practice.geeksforgeeks.org/contest/geek-a-thon

    P.s. - The registration and competition is free to enter and participate in! So what's the harm in giving it a try?

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

    Mac vs Windows

    Posted: 30 Sep 2020 12:05 AM PDT

    Hi guys, I am new to programming and am confused whether to get a Mac or windows. Which is better for programming??

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

    What do you think is a better framework/language to learn for mobile development? Flutter and Dart or Kotlin?

    Posted: 29 Sep 2020 08:17 PM PDT

    Since I am new to the programming scene, I would also like to know the benefits of each framework/language. (I don't mind if it's Android or iOS)

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

    A really underrated YouTube channel I found recently

    Posted: 29 Sep 2020 11:58 PM PDT

    Hi all, this is my first post here.

    I'm usually just lurking but I felt I had to share this the good people of this subreddit. I recently started a job at a software company and was, as you could expect, very lost at first, so I had to relearn pretty much everything I once knew about Java. Thus, I did what most people would do and looked up some tutorials. What I was looking for was a series of tutorials that starts at 0 and works its way up from there.

    After a lot of searching for the right source, I finally found a (at least imo) criminally underrated YouTube channel. His name is Bro Code and I urge anyone who wants to start learning to program to pay him a visit. I think he is super chill and his tutorials are very fun to watch. He even incorporates memes into his videos, so what's not to like? I can only attest for the quality of his Java tutorials, but I'm sure his other stuff is just as good.

    Finally, this is not a self-promotion. I am in no way affiliated with this channel, just someone who was a programming noob and wants to give back to a guy who helped them immensely. It would be very nice of you guys to stop by and maybe help him grow his channel a bit, since he currently sits at just under 2.5k.

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

    Which language do I start with? Or do i follow my school's schedule?

    Posted: 29 Sep 2020 08:10 PM PDT

    Hello Redditors! I am taking computer science (big data) in university, and the only things i know about programming languages are their names, so i am looking to start ahead of my school so i don't fall behind. The languages i will be learning are Java, C++ and Python. Which one do i start with? Or do i follow my school? I have searched up abit and was told that C++ is the most complicated one(is it?), but its good to start with it as I will sail through Java and Python if i were to learn C++. I am as a noob as one can be as I did pure academy studies in my High school. Thank you so much for your time, if you manage to read my post haha :D

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

    One week interview prep plan?

    Posted: 29 Sep 2020 08:09 PM PDT

    Hey! I have this upcoming interview for a company that I REALLY REALLY WANT to work for, it's a junior full stack developer position, located in North America. The company is an established startup with 100+ employees and they are growing really fast.

    I want to work really hard to secure the job and Im wondering if you have any good strategy to prep for technical interview within a week? Like how many questions you will do per day? What resources? I have around a week to prep for it. So far I've been using Algoexoert only and I completed all the easy and medium questions, and I'm trying to go through the hard questions. Should I keep doing new questions or should I roll back to the ones I've done and just review the problem solving strategy by topics?

    Thank you in advance!

    submitted by /u/Donut-Maximum
    [link] [comments]

    Question about Breadth First search and time complexity

    Posted: 29 Sep 2020 04:04 PM PDT

    I am going reviewing for my exam and want to make sure I have a concept correct but would also appreciate how I could explain it in more detail.

    The question asks to explain BFS analysis including if it is Complete, Optimal, the Time Complexity and Space Complexity.

    My Answer:

    "It is a complete search since it finds every node in the "tree" until it reaches it's goal. In a frontier, the nodes are FIFO. It is not optimal unless the cost is one per step, otherwise it is finding every node at a level "n" before moving on to the children of that row. The space complexity is high because it must store all of the nodes mentioned before until the goal is reached. The time complexity is also high. O(b^d+1)" where "b" is the branching factor and d is depth. So for every row down it takes exponentially more time to complete that row"

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

    Is the browser console an interface with the web api?

    Posted: 29 Sep 2020 11:20 PM PDT

    Is that how to think about it, does that make sense?

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

    what is the best advanced .net c# and xamarin book?

    Posted: 29 Sep 2020 11:19 PM PDT

    I am a software programmer working on xamarin, I am looking to learn xamarin along with c# in advanced level.

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

    What is the difference between Dynamic Programming and Memoization?

    Posted: 29 Sep 2020 11:05 PM PDT

    The CLRS book describes them as two different things, but I read different things online. What is the difference between the two? I thought Dynamic Programming meant to use prior solutions for later subproblems to be more efficient, but memoization seems to do the same thing as well, you are reusing memos as needed?

    Also, why can memoization only be applied to a top to bottom recursive Dynamic Programming approach only? If it is about using "memos" repeatedly to solve subproblems as you solve the bigger problem, which an iterative approach can do or a bottom to top approach can do as well. Thanks for anyone that can help clear up the confusion.

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

    Javascript array map converting strings to numbers

    Posted: 29 Sep 2020 04:48 PM PDT

    Hello,

    I have a data array in a JSON file that has the following format:

    "data": [ { "year": "2020", "period": "M08", "periodName": "August", "value": "259.918", }, { "year": "2020", "period": "M07", "value": "259.101", } 

    I'm trying to chart this data using an API that requires the following formats:

    time: YYYY-MM-DD, value: Number

    I'm trying to map the data array and format it correctly for the API, but I'm having trouble with formatting the data correctly. This is what I have so far:

    //Place array into map and format let mapArray = data.map(x => { return { time: x.year + "-" + x.period.replace(/M/g, ""), value: x.value }; }); //Places map into graph areaSeries.setData(mapArray); 

    I was was able to format the year and period into the correct YYYY-MM format, but the value fields aren't showing because I think the values are stings and not numbers. How can I map these strings into numbers?

    Thanks a lot

    Edit:

    It looks like value format isn't the issue, but an issue in the way I'm using the array.map method.

    x.year + "-" + x.period.replace(/M/g, "") 

    I think the above operation might be causing it to return only the first object from the array, and I might have to find a way to parse the date into a new array so that M is removed and the year is appended before calling the array.map method.

    Edit 2:

    Chugging along, I learned to create a new date array in yyyy-mm-dd format using the forEach array method:

    let dateParse = []; data.forEach(function(dateRead){ dateParse.push(dateRead.year + dateRead.period.replace(/M/g, "-") + "-01")}) 

    I'm able to print the array and it looks fine, but for some reason the chart API I'm using doesn't like it and just prints invalid.

    let mapArray = data.map(x => { return { time: dateParse, value: x.value }; }); const areaSeries = chart.addAreaSeries(); areaSeries.setData(mapArray); 

    Going to keep playing with it.

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

    Priority Queue with Two Priorities

    Posted: 29 Sep 2020 10:37 PM PDT

    Hi everyone,

    I want to implement a priority queue using a heap but with two different priorities. What I mean by that is I want to store pairs of wins and losses and be able to have a removeMaxWins function and removeMinWins function that are both O(logn) time.

    I'm thinking of doing this using two different PQs, one max-oriented to store pairs by priority in order of wins and one min-oriented to store pairs in order of minimum losses.

    Where I'm getting stuck is on how my delete functions are going to work. I was thinking if I have a removeMaxWins function I could remove the first node and store the pair as a temp value so that I could find the corresponding value in the min-oriented PQ and remove it - but this would be O(n).

    Is there a better way to do this? Thank you!

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

    Why can I make instances of functions in C#?

    Posted: 29 Sep 2020 10:08 PM PDT

    I'm a very new C# programmer and a new programmer in general, I used C++ before this and I was wondering why in like unity I can make instaces of the function I made like I can do

    public Example example; 

    how does this work and is there anything else I should know about C#?

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

    No comments:

    Post a Comment