• Breaking News

    Tuesday, April 6, 2021

    [Opinion] Harvard's CS50 is an amazing course and wonderfully taught, but it's not a good first course to learn programming/computer science for someone with no background learn programming

    [Opinion] Harvard's CS50 is an amazing course and wonderfully taught, but it's not a good first course to learn programming/computer science for someone with no background learn programming


    [Opinion] Harvard's CS50 is an amazing course and wonderfully taught, but it's not a good first course to learn programming/computer science for someone with no background

    Posted: 05 Apr 2021 07:47 AM PDT

    I know Python and Java and have done quite a bit of Data Structures work and a few personal projects. I recently went through the CS50 content for it's introduction to C before tackling an OS course. I absolutely loved the course and how Malan teaches, but I really think that the pace is way to fast for someone with no CS background. There was even a Harvard student in one of the lectures that tried to ask how to keep up because everything was going so fast. I think most of the students probably took AP computer science or had some previous knowledge, or else they make use of the TAs and office hours to keep up.

    For self learning, I think this goes way too quickly and shouldn't be recommended as a first intro course. The lectures are good so you think you "get it" because it's all explained so well, but then the problem sets are much more difficult and I think a lot of people would get discouraged or give up if they don't have a solid foundation of some of the concepts, (like previous experience working with loops, functions, etc.).

    I just wanted to put this out there because I see the course recommended so much (and rightfully so). But for someone with no prior programming exposure, a gentler intro with a higher level language is probably a better start. For example, Georgia Tech's Intro to Python Programming course truly assumed no background knowledge, had a very gentle and thorough intro to all of the important concepts, and had a ton of built in exercises that started out very doable and gradually got harder. I never felt like I was in over my head. Something like that is going to be a lot less frustrating for someone learning on their own that may not have the option to ask for help when they inevitably get stuck.

    And damn, C is an entirely different beast...

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

    Feeling discouraged as a coding newbie

    Posted: 05 Apr 2021 05:49 PM PDT

    Hello, [24F] starting out my journey into programming.

    I recently applied to the CodingTemple bootcamp and am already feeling discouraged not even a week into the course. The source material just doesn't seem to make sense in my mind. I have no previous experience in coding or computer science so I'm learning all the terminology in real time as I'm learning the course material. I spent an entire weekend learning to navigate GitHub before classes even began and am still feel confused trying to upload my code onto the website. If I'm struggling so much at the very start of this bootcamp, I am concerned that this might not be the place for me to start or if SWE is within my realm of understanding. It seems that everyone has some level of understanding before starting this bootcamp, I am feeling lost.

    Any advice or suggestions from persons in a similar situation would be greatly appreciated .

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

    Why are people so aggressive on Stack Overflow?

    Posted: 05 Apr 2021 05:57 PM PDT

    Most of the time I ask something people just start lecturing me how nobody will help me write a code and I should research code on my own. When I end up on Stack Overflow it's because my research and abilities were not enough to solve something, so I start looking for help.

    Everyone gets so irritated to help, but that's the whole point of that website I think. It's not like I am asking how to clean my toaster. Sure, every once in a while there is this one person who reads the question and answers in a straight to the point code instead of preaching.

    Are there other less toxic places where noobs can ask for help?

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

    I'm 13 and I just got my first laptop. I want to build a website for blogs and stuff, Where should I start?

    Posted: 05 Apr 2021 11:33 PM PDT

    I have absolutely no experience with computers so I feel a bit lost and overwhelmed right now. Any kind of help will be appreciated. Thanks

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

    Experienced Programmer Struggling with Angular

    Posted: 05 Apr 2021 07:58 PM PDT

    As a backend and application software engineer with more than 10 years experience, I am struggling to learn modern web technologies. So I have worked with C++, Java, C#, Javascript, Python with sound design patterns but the modern web technologies like Angular (and probably React) are still very difficult grasp, they introduce terms that sound like actual technical terms I'm familiar with but mean something very different in Angular for example: heirarchy, views, router, decorator, directives, binding markup, etc.

    And so I tried learning from angular.io and watching youtube videos but I still have no idea where to begin reading Angular code. It's like a bunch of mishmash of typescript code that doesn't seem to begin or end anywhere. Does anyone have any good resource for learning Angular as quickly as possible, without all the setup? I just need to be able to trace a project from the starting point and go from there.

    Also why are modern web so complicated from the get go? There does not seem to be an iterative way of learning them, either you know everything or you can't do anything.

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

    GOOGLE SPREADSHEET: How to add wage bonus for every hour worked after xx-xx on workdays based on time in and time out columns??

    Posted: 05 Apr 2021 05:52 PM PDT

    Can someone help me try and figure this one out? I know spreadsheets barely classify as programming but I hope someone out there can help. All I want to know is how to add the 18-23 (Workdays only) bonus for every hour worked after 18 but max till 23 on my shifts based on the time in and time out columns. I also have 2 other bonuses like 23-6 (overnight shift on workdays only) and 14-23 (if Saturday), I managed to do Sunday and holiday as those two days give bonus the entire 24 hours of the day, the problem arises once I have to make it from a specific time to a specific time. I hope this wasn't too confusing, if you need me to explain better just tell me, I'll try to be more specific

    Gyazo screenshot of my spreadsheet to help understand

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

    [NEED HELP] Intrigued by setting up a Development Environment

    Posted: 05 Apr 2021 09:32 PM PDT

    As a CS Sophomore, I feel extremely guilty for still not being able to set up a proper Development Environment. The current way in which I develop made me realize I can't scale up my work meeting industry standards. I wanted to start with Web Development and being a very particular person, I wanted everything to be perfect before starting. I chose VSCode as my primary development IDE but I still find it difficult to start with using the same (I shamelessly use Notepad++ for now).
    With this, I would like to seek guidance by helping me out with any good video walkthroughs, written step-by-step tutorials of how to perfectly set up a development environment, using packet managers, etc.

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

    what abstraction would help here for the API request call?

    Posted: 05 Apr 2021 09:19 PM PDT

    https://pastebin.com/Gyxbahaa

    4 pytest functions.

    Kind of want to abstract out the API request but it has different end points. that said, I'll be writing out probably another 50+ tests so want to remove the repetitive code but not sure how to abstract that.

    API is similar to Spotipy API (spotify API). Maybe a class that with methods for various end points? would really appreciate some code review and ideas

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

    How to reduce algorithm from nlogn?

    Posted: 05 Apr 2021 08:16 PM PDT

    Any suggestions on what to read to learn this. It is probably easy but I am drawing a blank.

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

    Help - Can't figure out how to get whole numbers.

    Posted: 05 Apr 2021 08:15 PM PDT

    def quadratic_formula (a, b, c):

    d = b * b - 4 * a * c if d < 0 or a == 0: return None x1 = (-b + (d ** .5)) / (2 * a) x2 = (-b - (d ** .5)) / (2 * a) return x1, x2 

    if name == 'main':

    data = input().split() x = float(data[0]) y = float(data[1]) z = float(data[2]) (x1, x2) = quadratic_formula(x, y, z) print('Solutions to {}x2 + {}x + {} = 0'.format(x, y, z)) print("x1 = {}".format(x1)) print("x2 = {}".format(x2)) 

    My output for the following code is

    Solution to 2.0x^2 + -3.0x + -77.0 = 0

    x = 7.0

    x = -5.5

    How do i get rid of the decimal place and zeros in this code?

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

    How to write pseudocode for this ?

    Posted: 05 Apr 2021 11:30 PM PDT

     ifstream input("database.txt"); while (input >> un >> pwd)//begin matching process { 
    submitted by /u/BrightKnight0110
    [link] [comments]

    Aesthetic software for Html/css

    Posted: 05 Apr 2021 07:44 PM PDT

    i know this sounds silly but i have ADHD and am currently learning html and css. I have noticed Nicer looking code editors like the default input in code academy can keep my focus much longer than rougher (potentially better} software like notepad++. im sure once ive become proficient in both languages it will no longer matter to me but does anyone have suggestions for aesthetic software to learn on?

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

    How good/productive is it to learn four programming languages at the same time?

    Posted: 05 Apr 2021 07:42 PM PDT

    What's up guys! Hoping you are safe at home, I need some help and guidance.

    I'm currently in my third year of computer engineering, and I've only been passed so far Java and R (for applied statistics) and in fact everything that follows in my college career is with Java. However I'm in my internship I and working with database I'm working with PHP (due to the little time I have I'm working with Laravel). These would be only the programming languages of the university career.

    The big "but" is that the sector in which I am interested and where they offer me more work is using Python (although I do not pass it in the university career) and I have a little free time during the weeks.

    Would it be good to start learning Python? apart from dedicating myself to the other programming languages of the career?

    I really hope you can help me. Regards!

    PS: If you think it's a good idea, could you give me some tips to avoid stress/anxiety?

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

    How to horizontally center the actual cells in a table (css)

    Posted: 05 Apr 2021 07:20 PM PDT

    Title says it all, I'm not sure how to horizontally center the actual cells themselves (not the text within them) in a table.

    In context, the ultimate goal is to have the cells themselves formatted like a pyramid.

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

    Good computer science operating system principle books?

    Posted: 05 Apr 2021 10:50 PM PDT

    Taking a class rn but the teacher does not use a textbook and wants to know if there is any good book about the topics.

    Topics covered: Introduction to operating systems design and evaluation. Computer software systems performance, robustness, and functionality. Kernel structure, bootstrapping, input/output (I/O) devices and interrupts. Processes and threads; address spaces, memory management, and virtual memory. Scheduling, synchronization. File systems: layout, performance, robustness. Distributed systems: networking, remote procedure call (RPC), asynchronous RPC, distributed file systems, transactions. Protection and security. Exercises involving applications using, and internals of, real-world operating systems

    Thank you!

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

    I need to make a database and I don't have any idea of where to start [web development]

    Posted: 05 Apr 2021 07:04 PM PDT

    Well, I am making my first "big project" for my own: a calculator to rate "objectively" a tv series or movie in a offline page (I'm working with HTML, CSS and JS)

    So, i did all the design work, and the form and the inputs, and all of that. But now, i need one button that save this data in my computer and one additional page that read all this data and allows me to enter to that specific movie and change the inputs saved.

    What do I need to do that?

    I've searched something and it's too many info, I don't know where to start

    And, thank you for read!

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

    In C++ how do you know when to allocate memory for an object dynamically versus statically?

    Posted: 05 Apr 2021 01:55 PM PDT

    For example, when would you use

    MyClass myObj; 

    versus

    MyClass *myObj = new MyClass(); 

    ?

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

    Help with some Visual Basic Code

    Posted: 05 Apr 2021 10:27 PM PDT

    I have the following code in my program. This will create a 5x5 grid of buttons. I would like to name these buttons or make a way to distinguish between them later on in my code. How do I do this?

    Dim bytCounter As Byte For bytCounter = 1 To 25 Dim btnColour As New Button Me.Controls.Add(btnColour) btnColour.Height = 50 btnColour.Width = 50 btnColour.Name = "btnColour" & bytCounter btnColour.Enabled = False btnColour.Left = ((bytCounter - 1) Mod 5) * 51 btnColour.Top = ((bytCounter - 1) \ 5) * 51 AddHandler btnColour.Click, AddressOf BtnClick 
    submitted by /u/MightyAttacker
    [link] [comments]

    Can someone with cognitive impairment learn programming?

    Posted: 05 Apr 2021 07:32 AM PDT

    So, I have schizophrenia and, because of that, suffer cognitive impairment. I took a programming class in college and dropped out of the class because I kept failing. Should I try again or is it pointless? Currently, I'm in school for game art but want to fill my electives with programming classes to be a technical artist.

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

    Is web development too saturated? How can one stand out?

    Posted: 05 Apr 2021 04:51 AM PDT

    Imo web development is relatively easier to start learning compared to other paradigms. Can anyone provide tips on how to stand out in this field.

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

    Cs student desp needing help

    Posted: 05 Apr 2021 09:55 PM PDT

    hi guys, I am currently a computer science college student finishing up my second year. I know the basics of programming and can write simple code like print random numbers, or looping through linear data structures and yea.. I have taken a data structures and algo course and know the basics of how most work.. but I have trouble applying the concept [like coding with the data structure].....but I feel like I'm behind and really need to get better but idk how.. how do i practice? where do i practice? how do i practice for interviews? is

    algoexpert.io worth it?

    or how to crack the code interview?

    i would appreciate all tips, advice, anything insightful.could rlly use some guidance

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

    Update Product Quantity in Inventory During Checkout (PHP/HTML)

    Posted: 05 Apr 2021 05:35 PM PDT

    Hello all! I'm currently working on a cart program/page based out of PHP and HTML. My cart is working pretty well so far, but I wanna add an extra feature to it. When I select a quantity from my drop down list, which goes from 1-10, I want the quantity selected to be removed from inventory in my database table. So, if I click a quanity of 3 in my drop-down list for an item, that item has a quantity of 3 removed from the inventory table. I'm a bit lost on how to do this, and the code below is a snippet of what I've been trying to implement(the code is somewhat lengthy so I didn't want to post it all unless necessary). Anyhow, any advice and input is appreciated, thank you!

    <?php if(isset($_SESSION["shopping_cart"])){ $total_price = 0; ?> <table class="table"> <tbody> <tr> <td></td> <td>ITEM NAME</td> <td>QUANTITY</td> <td>UNIT PRICE</td> <td>ITEMS TOTAL</td> </tr> <?php foreach ($_SESSION["shopping_cart"] as $product){ ?> <tr> <td><img src='<?php echo $product["image"]; ?>' width="50" height="40" /></td> <td><?php echo $product["ProductName"]; ?><br /> <form method='post' action=''> <input type='hidden' name='ProductID' value="<?php echo $product["ProductID"]; ?>" /> <input type='hidden' name='action' value="remove" /> <button type='submit' class='remove'>Remove Item</button> </form> </td> <td> <form method='post' action=''> <input type='hidden' name='ProductID' value="<?php echo $product["ProductID"]; ?>" /> <input type='hidden' name='action' value="change" /> <select name='quantity' class='quantity' onchange="this.form.submit()"> <option <?php if($product["quantity"]==1) echo "selected";?> value="1">1</option> <option <?php if($product["quantity"]==2) echo "selected";?> value="2">2</option> <option <?php if($product["quantity"]==3) echo "selected";?> value="3">3</option> <option <?php if($product["quantity"]==4) echo "selected";?> value="4">4</option> <option <?php if($product["quantity"]==5) echo "selected";?> value="5">5</option> <option <?php if($product["quantity"]==6) echo "selected";?> value="6">6</option> <option <?php if($product["quantity"]==7) echo "selected";?> value="7">7</option> <option <?php if($product["quantity"]==8) echo "selected";?> value="8">8</option> <option <?php if($product["quantity"]==9) echo "selected";?> value="9">9</option> <option <?php if($product["quantity"]==10) echo "selected";?> value="10">10</option> </select> </form> </td> <td><?php echo "$".$product["ProductPrice"]; ?></td> <td><?php echo "$".$product["ProductPrice"]*$product["quantity"]; ?></td> </tr> <?php $total_price += ($product["ProductPrice"]*$product["quantity"]); // statement to update table quantity mysqli_query($con,"UPDATE `Inventory` SET `Quantity` = $row['Quantity']-$quantity"); } ?> <tr> <td colspan="5" align="right"> <strong>TOTAL: <?php echo "$".$total_price; ?></strong> </td> </tr> </tbody> </table> <?php }else{ echo "<h3>Your cart is empty!</h3>"; } ?> 
    submitted by /u/groovygrilldad
    [link] [comments]

    Can We skip Data Structures & Algorithm?

    Posted: 05 Apr 2021 09:17 PM PDT

    Hello everyone, I hope you doing great, So I just completed my 3rd semester of Software Engineering and I really struggled with Data Structures & Algorithm subject to the point I barely passed it. I saw bunch of tutorials on YouTube and tried to study my textbook but nothing was helping me.

    Is there any way I can skip this and if not what free resource do you recommend?

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

    No comments:

    Post a Comment