• Breaking News

    Saturday, February 12, 2022

    What have you been working on recently? [February 12, 2022] learn programming

    What have you been working on recently? [February 12, 2022] learn programming


    What have you been working on recently? [February 12, 2022]

    Posted: 11 Feb 2022 09:00 PM PST

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Girlfriend seeking Valentine’s Day assistance.

    Posted: 11 Feb 2022 02:12 PM PST

    My boyfriend is a programmer and I want to do something bold, but in a way that shows him that I care about what he does too. I googled and watched videos to learn, but I'm sure I have errors.

    https://imgur.com/a/v0ouKci

    Edit: Thank you to everyone who gave me critical feedback. I really appreciated it and actually learned a lot from reading your suggestions! I didn't expect to enjoy learning this as much as I have, but it's been a lot of fun! 😊

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

    Where do most people give up in learning code?

    Posted: 12 Feb 2022 06:07 AM PST

    Html and CSS I thought were pretty fun even when I barely knew anything. Javascript though was the first time I saw some code/concepts that made me really question if I'm sinking my time into something that I cant actually accomplish.

    So I'm thinking the languages like Javascript, Python, C++ are where most people stop?

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

    Put together a YouTube playlist for anyone wanting to learn python

    Posted: 12 Feb 2022 05:28 AM PST

    Planning to learn python over summer and I've been putting together lots of tutorials on YouTube, i feel like its a pretty comprehensive list of videos best watched in order, it repeats a lot of the same stuff but i thought that might help reinforce a lot of the learning epically with OOP, anyways take a look and tell me what you think or let me know if you found it helpful!

    Ultimate Python Playlist - YouTube

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

    When do we use str() or float() or int() functions during programming? What is the use of changing an integer to floating point or to string?

    Posted: 12 Feb 2022 02:47 AM PST

    I'm basically new to python and learned about this conversions just today but I'm confused as to why would it make sense to convert an integer to a string or vice versa. Just why?

    UPDATE: Thanks for everyone's explanations. Now, I realize their applications.

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

    What can I write with 500 lines of code ?

    Posted: 12 Feb 2022 07:37 AM PST

    I just started to learn programming, chose C++ to better understand how memory works and all that stuff (doesn't matter), one of request from university I'd like to apply is describe a program you've wrote which contains 500+ lines of code. And I have a question what could it be? Like what program I can write to fit in it?

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

    I have a bad habit of running away when things get difficult in programming(college). Please share your advice and tips

    Posted: 12 Feb 2022 07:24 AM PST

    I am in semester two of computer science and retaking my level 1 course Intro To Programming(Java). Failed it in the first semester. Over the holiday break I did good practice, and currently taking the popular Java course by University of Helsinki aside from my college courses . God that course teaches so well.

    Anyways, I have improved my ways of learning, by doing lots of research on google and YouTube when it comes to better understanding concepts (for example creating an object of a class, get/set methods etc). I know it sounds simple but I lacked such basic problem solving abilities before.

    My concern is, once things start getting more difficult in my next Java course in college (OOP) I am worried about hiding again. I know this field is all about problem solving and I am determined to become a good problem solver, but sometimes old habits can kick in. Things will inevitably get more difficult as the semesters go on and I enter the next semester.

    What are your thoughts on tackling things when they get difficult instead of running away? I must become a good problem solver. No excuse why you all can but I can't.

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

    Am I crazy?

    Posted: 11 Feb 2022 04:42 AM PST

    Am I the only one who likes to space out my code and I'm triggered when my co-workers/classmates don't?

    Like they will write

    int myFunction(int a,int b){ if (a!=0){ a=a+b;}} 

    and it stresses me out inside and I go back later to space it out like

    int myFunction(int a, int b) { if (a != 0) { a = a + b; } } 

    And I also space all the elements in "blocks" by skipping lines between functions, loops, comments, and I hate it when people don't 😭

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

    SQL: statement help with consolidating many records into one, using baseball dataset and issues with players playing for different teams within same season

    Posted: 12 Feb 2022 07:16 AM PST

    Expanding on the title, there are multiple records for a playerid where that player played on multiple teams within the same season. The dataset has a TOT value in the team attribute which I'm thinking I can just take that record vs cleaning the data manually. Any help would be great and also learning experience for me.

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

    What is the worst bug, you found in a code review?

    Posted: 12 Feb 2022 01:10 AM PST

    The most unintuitive thing that I found was, using () operator for object data transformation.

    The most complicated bug I found was in-propper threads synchronization, which was making deadlock on a high load.

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

    I need a Javascript mentor

    Posted: 12 Feb 2022 07:45 AM PST

    Hey folks! so I've been trying to learn Javascript for weeks now and I still don't get it, it's complicated and hard to grasp and I don't know how to approach learning it cuz it feels like I'm not going anywhere with it.

    Can someone please be my mentor, I just need someone to help me with what should I learn and maybe suggest some resources because I'm burning out.

    I would really appreciate weekly check in.

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

    What are the initializers for parameters for this expression?

    Posted: 12 Feb 2022 07:10 AM PST

    Apologies if this is a basic question, I'm quite new to C++.

    Say I've got this declaration

    void mystery(int x, int y = 10, double d = 11.2);

    What will be the initializers for parameters x, y, and z when expression mystery(5, 8.9) is evaluated? Will it even compile, since there's two values?

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

    Using IDEA jre for Android studio

    Posted: 12 Feb 2022 07:45 AM PST

    Hey, so I have IDEA installed with the jdk and jre associated, is it recommended to keep the IDEA and AS jre's (and or JDK) seperate or can I use the one installed with IDEA. If the latter is possible, how would I go about doing that?

    submitted by /u/sapnu-pu-as
    [link] [comments]

    Trying to scrape a webpage, but cannot get the "location"

    Posted: 12 Feb 2022 05:12 AM PST

    I want to scrape this webpage https://www.trustpilot.com/review/www.nzymes.com

    In particular, I'm having problems with scraping the location of the reviews.

    I've tried the following code:

    source_ = requests.get("https://www.trustpilot.com/review/www.nzymes.com").text res_ = BeautifulSoup(source_).find_all("article") for i,t in enumerate(res_): tag = t.find("p") text = tag.get_text() location = t.find("span", class_="typography_typography__QgicV typography_weight-inherit__iX6Fc typography_fontstyle-inherit__ly_HV") print(location) 

    But it keeps printing the review number, which seems to have the same class as the location? How do I get the location only?

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

    The Odin Project vs FullStackOpen vs Leon's 100devs course for web development?

    Posted: 12 Feb 2022 06:18 AM PST

    What course would you recommend? I've heard the FSO jumps into React pretty quickly and assumes previous js knowledge so should I do FSO after TOP? Heard some good reviews of the 100devs too but just split rn. Or perhaps some course on udemy (Colt Steele, Jason S, etc.)?

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

    Removing/Leaving out Duplicates help

    Posted: 12 Feb 2022 09:47 AM PST

    Okay, so I need to have the program read through a vector of a text file. What I am looking for is what departments work in a specific building. For the life of me, I cannot figure out how to loop through to where it will ignore duplicates (there are 3 departments but multiple occurrences in the file). I have to make it so it's universal, so I can't just have it search for the departments. If someone could help me out, explain like you would a toddler almost haha, I'm trying and have been past week. This is just killing me. This is what I have at the moment which gives me the full list of the buildings departments, including repeats.

    case '6': system("CLS"); cout << "Building A Departments\n"; cout << "==========================\n"; for (int i = 0; i < EmployeeList.size(); i++) { if (EmployeeList.at(i).bletter == "C") { dname = { EmployeeList.at(i).dept }; } cout << dname << " \n"; } cout << "Enter your selection (99 for menu, -999 to exit): "; cin >> selection; if (selection == '99') { displaymenu(); } else if (selection == '-999') { system("CLS"); } break; 
    submitted by /u/VegetableLibrarian31
    [link] [comments]

    Help me choose a beginner project for Uni assignment

    Posted: 12 Feb 2022 05:52 AM PST

    The assignment: we are working in groups to create an escape room. Each person has to come up with a puzzle that involves technology, which could be anything from coding to playing with raspberry pi etc.

    I would like a create a puzzle that would work as a minigame on a computer. The problem is I'm not sure what should I create that would fit well with the escape room theme. I can't just simply create a snake clone or Mario clone. On the other hand I would also like for it to be something I can put somewhere (like on a website) and build on in my spare time after the assignment is finished to hopefully turn it into something more substantial - like proper browser game, something I can show off in my linkdin profile.

    I am also wondering what language should I use. I have beginner to intermediate experience with HTML, CSS and Python so I could use Py Game to create something. On the other hand I heard it's not straightforward to put a game one a website using Python and that Java Script would be better suited for that. I need to learn Java Script down the line for my web module anyway, so I was thinking perhaps I should start now and create this game in JS?

    So to sum up: any ideas on what puzzle/game should I create and which language should i use?

    Thank you and sorry for my bad English.

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

    What Freecodecamp course should I do first?

    Posted: 12 Feb 2022 09:28 AM PST

    I have very limited/no previous coding knowledge, so would be starting from scratch.

    Not sure which Freecodecamp course to start with?

    If any of you have any suggestions related to this or even of other websites then responses are appreciated!

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

    Ideas for website project for school

    Posted: 12 Feb 2022 09:12 AM PST

    Hey, I would like to make a website for my school project, It's my second year and I wanted to make something simple as a car rental website but my professor told me that it's an overused theme and that I should look for something else.

    Can you please suggest me ideas of simple services or any ideas for website?

    I appreciate your help!

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

    Quadratic Probing question

    Posted: 12 Feb 2022 09:10 AM PST

    I have 5 numbers, and my question is: is this the correct hash table for these numbers, using the +1, -4, +16 method.

    Numbers: 5,8,22,30,36

    [] , [8] , [22] , [30] , [36] , [5] , [], []

    Thank you, i have no idea.

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

    Removing return true/false in bool functions

    Posted: 12 Feb 2022 09:03 AM PST

    So, usually instead of checking for a condition and returning true or false based off that condition, you would just return the condition instead:

    if (condition) { return true; } 

    vs.

    return condition; 

    However, I have something similar to the code below and cannot figure out how to convert it to return some condition rather than returning true/false. I've heard it's not great practice to return true or false, but can't seem to figure out how to avoid that with something like this code.

    I tried stringing all the return values together with an || between them, but that didn't work. The problem is, I need to check for a condition, then if that's false, not necessarily return false, but check for other cases as well. If I take the condition out of the if block and just return the condition, the function will either return true or false, but I need to check for other conditions.

    Any help would be greatly appreciated!

    I switched some variable names to make the code more "general" and easier to understand, so it's not in the context of the exact thing I'm working on, so if it doesn't make a whole lot of sense, that's fine, I just need to figure out how to remove these return true/falses and still get the correct functionality.

    (Hopefully the formatting's ok!)

    bool is_less(const Thing& a, const Thing& b, const std::string& key) { if (a.get_val(key) == key && b.get_val(key) == key) { if (a.is_highest_rank(key)) { return false; } else if (b.is_highest_rank(key)) { return true; } else if (a.is_second_highest_rank(key)) { return false; } else if (b.is_second_highest_rank(key)) { return true; } else { return a < b; } } if (a.get_val(key) == key && b.get_val(key) != key) { return false; } else if (a.get_val(key) != key && b.get_val(key) == key) { return true; } return a < b; } 
    submitted by /u/CastleDasher
    [link] [comments]

    I wanna learn how to make custom maps for the game hitman 3.

    Posted: 12 Feb 2022 08:42 AM PST

    How should I go about learning this with no prior coding knowledge? I am guessing I need to know more than just C++ I know this is a faraway goal but you have to start somewhere

    submitted by /u/Typical-Assistance-8
    [link] [comments]

    Tips on writing a personal statement for a software developer course

    Posted: 12 Feb 2022 02:40 AM PST

    I have to write a 500 word personal statement to apply for a software developer course.

    I'm looking for some tips on how to structure this, what I should include/exclude etc.

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

    When should I start looking for a job

    Posted: 12 Feb 2022 08:30 AM PST

    I've spent the last year learning to code (with some help from udemy courses). People told me that language doesnt matter and I choose java. Learned the basics and oop. Then learned some javascript. Now im learning sql and after that im gonna start learning spring. Should i learn spring and then do some projects for my portfolio before I apply for job interviews or should I start looking for internships now? Also I'm finding backend more interesting but most job offers I see with java are for fullstack web developers. Should I just go with it and switch down the line in some field I'm more interested in?

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

    Just for the sake of understanding I was trying this out. An array is a pointer, so the last + 1th index of the array should be a '\0' (NUL) character, right? Why is it not showing up in my program?

    Posted: 12 Feb 2022 08:25 AM PST

    #include <stdio.h> #include <cs50.h> int main(void) { int arr[5] = {0,1,2,3,4}; for (int i = 0; i < 6; i++) { printf("%i\n",arr[i]); } } 

    Result:

    0
    1
    2
    3
    4
    32766 (I was expecting this to be the NUL character)
    If I print it in character format (%c), I see nothing and then some strange character

    Any explanation is welcome!

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

    i want to start studying backend development.

    Posted: 12 Feb 2022 08:20 AM PST

    Hi guys, I want to start studying backend can you advise me how to start and suggest me tutorial for php, Laravel ,MySQL....

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

    No comments:

    Post a Comment