• Breaking News

    Thursday, May 20, 2021

    Failed 2 comp classes - dad is a 15+ developer - feeling like a failure 24/7 - I want to continue learning and move forward but my brain cannot take much longer :/ learn programming

    Failed 2 comp classes - dad is a 15+ developer - feeling like a failure 24/7 - I want to continue learning and move forward but my brain cannot take much longer :/ learn programming


    Failed 2 comp classes - dad is a 15+ developer - feeling like a failure 24/7 - I want to continue learning and move forward but my brain cannot take much longer :/

    Posted: 19 May 2021 01:17 PM PDT

    First year college, failed 2 classes. 19 years old, is my computer science career sealed?

    Hey everyone, currently writing this after a miserable day. Failed both my finals for my college class and now have a 65% (D) in both.

    I am a freshmen community college student, majoring in computer science. This is my second semester. My first semester I got an A in my programming class, A in English and 2 B's on my other classes which landed me comfortably at a 3.46 gpa. Basically I did for the first time ever, good.

    This has been the first time in my life I had actually been able to do something and change my life around. I'm trying to keep this short as possible to not bore anyone since everyone has a sob story, but for the first time I actually felt happy, my parents were proud, life just seemed so perfect to what it was once in my terror years in highschool at home with family life and getting into trouble in school.

    However second semester comes, and I screw it up like everything I do. I took 2 programming classes, a math class, and 2 general education classes. I was doing great at first, but the last few months have slowly fallen and spiraled down. Issues with parents, with myself, financial issues, everything. I managed to land 2 Bs for my math and general Ed class, an A for one of them and got my 65% for one of the classes and another D for another.

    My gpa will be sitting around a 2.9 What do I do? Am I screwed? I read online that after failing some classes transferring to a state college or university is unlikely and I'm scared beyond comprehension. Everything I ever told and promised myself and my parents down the drain. What's worse is that if I want to apply for a computer science major for a state college after my 2 years, will my chances be lower because of the specific grades for computer science related classes?? I know I can retake the class and it replaces the old grade in the GPA, but it still appears on your permanent record and am shitting myself that these will be permanent taints that will haunt me in my life

    I am genuinely just so terrified. I was starting my life off so good and I thought I could change but it seems as if the battle is in winnable. I am 19 and just really in need of some advice, words of wisdom, reality checks etc. I've been learning and want to continue learning on my own and make projects and ideas with programming but without the bachelors it seems as if getting a job anywhere will be impossible. I want to have the bachelors and more but it seems as if I cut my path and ended it by failing the classes I needed to prove to be able to even be considered to try and get a bachelors.

    - UPDATE 5/19

    My father just asked if there was anyway he could see my grades, my heart dropped and the world seemed to have ended. I do not know what to do or what to do with my life. It feels as if i am at rock bottom and any escape will be acceptable at this point. my brain feels like its gonna explode from all the possible scenarios and outcomes playing in my head: getting kicked out, never making it in life ever, turning out like my parents said i would if i continue down my path of being me. if my dad sees my two failed classes i am as good as dead. he is a programmer for 15+ years and seeing me fail 2 computer science classes not because of my inability but because of my stupidity and incompetence will certainly seal the deal on how we views me, guiding me and advising me, or even worse kicking me out. my step father and my relationship has always been filled issues since i can remember and i just dont know what to do since the only time they were ever proud of me was when i was doing great this year in college and now i messed everything up. my finanical aid covers my college because of my finanical situtation being bad, so retaking the classes will be paid for and what not but it just rlly scares me on what i do now as far as maybe housing (if they decide to kick me out for the 2 fails).

    i promised myself and them i would do perfect, and i was, i would even sometimes brag about how well i was doing because for the first time i felt valuable and like an actual person with meaning, and a one and a half month stump lead me down a spiral of negativity and hatred that i cant escape even till right now.

    What do I do? I truly love learning and want to learn more about programming and continue down the road learning more and more, but college this year because of Covid has been weird in its ways and just doesn't feel like I expected. I really want to spend all summer creating a portfolio and starting again with all the knowledge i have gained. this past year of dipping my feet into the world of computer science has rlly stresse dme out because i feel that with all the time i spent i should be able to have something to show for it and i just feel like a fuck up. I guess all I rlly want is to hear some life experiences or advice and criticisms because In a way it makes me be not so hard on myself. I just feel so lost and worthless, people are all over the place taking insane classes getting crazy grades and I'm here struggling every single day driving myself mad at home inside 24/7. i am terrified how my parents will react, if i will be kicked out, if in their eyes my career or future or i guess potential of me being anything is done and that i have just proven to them i am the same fuck up as i was all my teenage years and now. I'm just so terrified of my future, it eats me alive every day

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

    how long does it take to learn how to make a decent website?

    Posted: 19 May 2021 06:04 PM PDT

    I've been teaching myself programming for the past couple weeks. I've been studying html5 and CSS. Today I finally decided to see what I could do and to my surprise with a bit of trial and error, I could format the page nicely and display information in a coherent way, and provide a nav bar with links to pages within the website.

    That seems like the function of many many websites. I have notes on forms, I'm sure I could figure that out. At that point it seems like all I'd need to do is learn how to make it pretty with CSS and I'd have the ability to make pretty respectable websites, right? I feel like I'm missing something or are basic websites just kind of easy?

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

    Google is providing tons of awesome resources.

    Posted: 19 May 2021 01:12 AM PDT

    Google is providing tons of learning resources especially for the web developers out there. Check it out. Hope you find something awesome and useful stuff to refine your web-dev skills. Cheers!!

    https://web.dev/learn/

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

    np.where().Can someone explain me this piece of code?

    Posted: 19 May 2021 11:22 PM PDT

    ad=np.array([[ 0., 15., 0., 7., 10., 0.], [ 15., 0., 9., 11., 0., 9.], [ 0., 9., 0., 0., 12., 7.], [ 7., 11., 0., 0., 8., 14.], [ 10., 0., 12., 8., 0., 8.], [ 0., 9., 7., 14., 8., 0.]]) np.array(np.where(ad)) >>array([[0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5], [1, 3, 4, 0, 2, 3, 5, 1, 4, 5, 0, 1, 4, 5, 0, 2, 3, 5, 1, 2, 3, 4]]) 

    What does this np.array (np.where(ad)) do?

    Why do I get this 2* 22 shaped array?

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

    Which programming language should I learn?

    Posted: 19 May 2021 10:21 PM PDT

    Hello. Now I'm learning Javascript but in two years I will have a final exam on which I must write a algorithm and programm in one of chosen of this language: Python, C++, C, Java and Pascal. I don't know which language should be the best and most valuable. Can you recommend me something?

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

    YouTube channel recommendations?

    Posted: 19 May 2021 03:15 PM PDT

    The other day I watched a video on YouTube about the fast inverse square root algorithm that was implemented in quake 3 and thought it was really interesting! Can anybody recommend any channels that make similar content, sort of pop comp sci/ comp sci entertainment if that makes sense. Thanks!

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

    Accelerated C++ Exercise 4-0 Program Only Freezes

    Posted: 19 May 2021 05:49 PM PDT

    Using VScode on Windows. I am expecting the program to actually run and ask the user for the inputs instead of freezing. By freezing, I mean the terminal stuck in place until I cancel the program.

    I don't think it matters if I post the code here, since it is not easily runnable (it is multi file, but here's the code anyway if you want to see what the program looks like: https://pastebin.com/2MAJEKGc), and I copied the code correctly from the book, so the problem should not be the code. There are 4 different .cpp files and 3 different .h files, and I used the command g++ main4.cpp grade.cpp median.cpp Student_info.cpp and then typed .\a, and it freezed the terminal until I pressed Ctrl + c to kill the program. What did I do wrong, and how can I fix this?

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

    Recommended resources for learning C# & Angular web dev?

    Posted: 19 May 2021 09:05 PM PDT

    Can you recommend a good resource for learning C# web dev with Angular? Thank you.

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

    Do frontend developers hand write code nowadays?

    Posted: 19 May 2021 04:16 PM PDT

    After learning html css JavaScript, Feeling a little discouraged with all of the other technologies out there that dont require code. Why learn to code when you could just use wordpress or convert adobe xd to code. I get there are certain things you cant do with templates and such but is it really worth all the effort to learn to code from scratch?

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

    [Java] Help inserting numbers into a JFrame

    Posted: 19 May 2021 06:04 PM PDT

    I need to make a JFrame that changes colors randomly using threads, the problem is that I also need it to print random numbers over the colors, I have this code that I found but I don´t know how to insert the numbers.

    Main Class:

    import java.awt.Container; import java.awt.GridLayout; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JFrame; public class CajaColores extends JFrame { public CajaColores(int pause, int cuadricula) { setTitle("Caja de colores"); Container cp = getContentPane(); cp.setLayout(new GridLayout(cuadricula, cuadricula)); for (int i = 0; i < cuadricula * cuadricula; i++) cp.add(new CBox(pause)); addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { System.exit(0); } }); } public static void main(String[] args) { int pausa = 500; int cuadricula = 8; if(args.length > 0) pausa = Integer.parseInt(args[0]); if(args.length > 1) cuadricula = Integer.parseInt(args[1]); JFrame frame = new CajaColores(pausa, cuadricula); frame.setSize(800, 800); frame.setVisible(true); } } 

    Color Class:

    import javax.swing.*; import java.awt.*; class Cbox extends JPanel implements Runnable { private static final long serialVersionUID = 1L; private final Thread t; private final int pause; private static final Color[] colors = { Color.black, Color.blue, Color.cyan, Color.darkGray, Color.gray, Color.green, Color.lightGray, Color.magenta, Color.orange, Color.pink, Color.red, Color.white, Color.yellow }; private Color cColor = newColor(); private static Color newColor() { return colors[ (int)(Math.random() * colors.length) ]; } @Override public void paintComponent(Graphics g) { super.paintComponent(g); g.setColor(cColor); Dimension s = getSize(); g.fillRect(0, 0, s.width, s.height); } public Cbox(int pause) { this.pause = pause; t = new Thread(this); t.start(); } @Override public void run() { while(true) { cColor = newColor(); repaint(); try { Thread.sleep((int) (Math.random()*pause)); } catch(InterruptedException e) {} } } } 
    submitted by /u/Emxyz94
    [link] [comments]

    Where do I find compilers?

    Posted: 19 May 2021 11:57 AM PDT

    I'm trying to do the cs50 course but it says I need github and I don't really wanna pay for an account(if I have to, bing says I do) So where do I find compilers and do they also cost money?

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

    JDK on M1 Mac?

    Posted: 19 May 2021 08:08 PM PDT

    Hey all,

    I was recently teaching myself Java (on Windows) with Graham Mitchell's "Learn Java the Hard Way." I took a break over this past semester and now I'm looking to get back into it on my MacBook M1. MacOS and programming are both fairly new to me, so I'm not sure how exactly to proceed here.

    The guide says to download from https://www.oracle.com/java/technologies/javase-downloads.html. But... the guide is dated, the author admits to not owning a Mac device, and I see no mention of M1 either in the guide or on the Oracle page.

    Can I download the JDK from here or should I go elsewhere? Should I expect my workflow to be affected if I use a different product?

    Thanks!

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

    Best way to handle redundant information in XML?

    Posted: 19 May 2021 08:07 PM PDT

    for example, the device id="1" information shows up twice

    <root> <group1> <device id="1" name="test"/> </group1> <group2> <device id="1" name="test"/> </group2> </root> 
    submitted by /u/RandleQ
    [link] [comments]

    Struggling with finding the smallest word in a TRIE

    Posted: 19 May 2021 05:48 PM PDT

    Hello everyone.
    Sorry in advance for any English error that I may commit.
    I have a school project for university and I have to use a trie to index words and have multiple functions to do multiple things.
    I'm coding in C.
    I have done a recursive function to find the biggest word in the trie and it is working.
    Here's the function:

    int BiggestWord(ELEMENT *P)

    {

    if (!P) return -1;

    int Alt_max = 0;

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

    Alt_max = Biggest(BiggestWord(P->V[i]), Alt_max);

    return 1 + Alt_max;

    }
    'Biggest' is just a function that returns the biggest value between two values.

    Now for the smallest word function. I was thinking about how to do it and tried to do check when the word ended looking for 'NULL' after every Element.
    Here is my attempt:
    int SmallestWord(ELEMENT *P)

    {

    if (!P) return -1;

    int Alt_min = 1;

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

    {

    if(P->V[i] != NULL)

    {

    SmallestWord(P->V[i]);

    Alt_min++;

    }

    }

    return Alt_min;

    }

    I can't find a way to make it work.
    I also thought about trying to, after every word, point that there's the end of a word, and then try to go through every branch of the trie and find the smallest word.
    It's my first half-year coding and I'm finding some difficulties trying to learn it.
    If anyone could help me by giving me hints or trying to give me clues of where to go I would appreciate it very much since this is a very important project I must finish and do well.

    Also, my data structures are the following:
    #define MAX_VECTOR 26 // 26 letters of the Alphabet I'm using
    typedef struct ELEMENT

    {

    int occurrences_word; // this is used for counting number of occurrences of a word

    struct ELEMENT *V[MAX_VECTOR];

    } ELEMENT;

    typedef struct TRIE

    {

    ELEMENT *root_trie;

    int num_words;

    } TRIE;

    Thank you in advance to everyone that contributes to helping me out
    Regards

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

    need help with int object is not subscriptable

    Posted: 19 May 2021 11:39 PM PDT

    inputted_data = int(input())
    for i in range(inputted_data):
    inputted_data_2 = str(input())
    l = len(inputted_data_2)
    if l > 10:
    print(f"{inputted_data[0]}{l-2}{inputted_data_2[-1]}")
    else:
    print(inputted_data_2)

    .
    i want to input word "localization" and get "l10n" as output
    but getting a - TypeError: 'int' object is not subscriptable

    someone explain please

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

    Anchor Linking Workaround on Cargo 2? (Website link at end of post)

    Posted: 19 May 2021 07:39 PM PDT

    Hi y'all, I've only been working with Cargo 2 for about a year to a year and a half now and am getting into light CSS coding. I'm an artist and recently I've been working on a project that has eight pieces in an installation and the documentation is comprised of too many photos to scroll straight down the page; so, I've tried to implement anchor linking to each work.

    The problem is, anchor linking is not native to Cargo II. I've stacked a set of 10 pages to be one continuous page and linked all points at the top of the page, including redirects at each point to move back to the top of the page. However, clicking on each link results in a separately loaded page that is not stacked.

    Is there a way to work around this problem in the CSS code? And is stacking a good idea or will it make it more complicated to achieve anchor linking?

    My page on my website for reference is (https://samschneider.net/Barbies-Malibu-Dreamhouse-1) would love to chat with anyone who knows about customization in Cargo 2 specifically. Thanks!

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

    Need help with javascript

    Posted: 19 May 2021 11:13 PM PDT

    I am completing the performance task for APCSP and I am using javascript on code.org. I have selected a dataset from the database and I would like to get all the information from a row instead of a column. In the data tab of the block programming, it provides me with a

    getColumn("Periodic Table Elements", "Name");

    I was wondering if there was such thing as a

    getRow("xxxxxxx", "xxxxxxxx");

    or something of the sort. I don't know how to get the information from a row instead of a column.

    thanks for any help

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

    MPI/parallel computing revision question

    Posted: 19 May 2021 11:07 PM PDT

    In my revision for my Parallel Processing exams, I came across a question that I had no idea how to even begin.

    The code:

    https://ibb.co/sC53sR9

    The prompt:

    Consider a parallel job comprising 320 copies of this program running on a small multicore cluster.

    The question:

    • Suggest improvements to the program to make it more efficient, and explain whether it will contribute to performance increase.

      • Suggest change in hardware that will improve task performance.

    From my PoV, the program is already concise as it is. Reduce/scatter-gather won't guarantee to work either because we don't know what doLotsOfWork does. Maybe we can set it so that only RootProcess send the "done" Bcast.

    *Edit: spelling

    submitted by /u/macai-politik
    [link] [comments]

    Finished my first year of college, how can I keep developing my C++ skills?

    Posted: 19 May 2021 01:22 PM PDT

    Took 2 programming classes this past school year on C++, my question now is how can I keep developing my C++ skills? I don't want to just forget everything I learned about C++ so what can I do?

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

    Python list comparison troubles :(

    Posted: 19 May 2021 11:04 PM PDT

    Hi everyone!

    I don't think I understand how my lists are working or being accessed. Can anyone see what I am doing wrong here?

    def myFunc(list1, list2, list3): bigList = list1+list2+list3 for index, a1 in enumerate(bigList): for a2 in bigList[index+1:]: # do some comparisons etc. list1.remove(a1) 

    This results in an occasional error: list.remove(x): x not in list

    I am struggling to see what is happening here. I understand what the error is telling me, I'm just not understanding why x (or a1 in this instance) is not in the list... it appears to me as if it really should be in there. The way I see it, the function takes in three lists and adds them into one big list to be able to cycle through all items. When a certain comparison is made, I need that item to be removed from the passed in list.

    I tried to concatenate the lists in the function call, but that appeared to just create a temporary new list and I couldn't actually update list1, but rather the temporary list.

    I've also tried placing all the a1's I need to remove into a removeList and then removing them at the very end of the function; still occasionally got the same error.

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

    Understanding x86 and ARM

    Posted: 19 May 2021 10:58 PM PDT

    I've recently decided to start learning how to program for ARM products. When I was looking up articles on the differences between ARM and x86, I stumbled across this article, that mentions that no processor in the modern day is actually running x86 natively-it's running ARM natively and then decoding the x86 instructions provided to it. Is this true? Does this mean ARM CPU's don't use a decoder while x86 does?

    I'm also under the impression that basically, when writing for ARM, the only difference is you have to make sure you use an ARM-specific compiler. Is this correct? Any good suggestions for reading material would be greatly appreciated.

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

    Civil Engineer to being... well something in the tech world.

    Posted: 19 May 2021 10:30 PM PDT

    Hello hope everyone is doing well. I graduated last year with my degree in civil engineering. Since my junior year of college I kind of already knew it wasn't necessarily what I wanted to do... but I stuck it out because I figured I'd try the industry out and also I'd be able to get a degree anyways.

    In the time since graduating I've more or less validated my thoughts and feelings that it really isn't for me. I do not enjoy it and I'd much rather do something else. Now programming and coding is something I've always been intrigued by but never dipped my toes into it. I know basically zero about it (even matlab I don't know). There is a crazy crazy amount of information out there and I simply don't know where to get started...

    I've come across a couple free resources on coursera, freecodecamp, and The Odin Project. Yet... I'm feeling as lost as ever (as lost as when I was choosing my major lol). I sort of understand front end development (html css js, basically the way a website is presented and whatnot, though if I'm thinking about it wrongly do let me know) but I know there's an abundance of other things! There's AI, machine learning, QA, project management, and frankly I don't know where to start! I don't know what I'd even like to do. I also thought Python would be cool to learn, based on my very very limited knowledge.

    If someone could guide me in a way, that would be great. Thank you so much!

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

    Background in mechanical engineering. Switching careers to software engineering or data scientist. Bootcamp vs 2 year diploma in computer engineering

    Posted: 19 May 2021 04:16 PM PDT

    Hi there. I'm from Canada and I have a bachelor's degree in mechanical engineering currently looking for a career change. I began learning to code earlier this year. I thought taking a 2 year diploma in computer engineering technology made sense because I would get to learn about computer hardware components alongside software. Recently, I've been told that computer engineering is more jack of all trades where computer hardware and software are concerned and that I would be better off time and money-wise focusing on 1 or 2 specific aspects in software.

    I'm still not fully sure what I want to do in software so I thought giving myself 2 years is plenty of time to test the waters and figure out what I like and what job opportunities come my way.

    I am currently self learning through Coursera and free materials online. Should I spend 2 years on a diploma or join a Bootcamp program focusing on a particular discipline?

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

    No comments:

    Post a Comment