• Breaking News

    Monday, September 7, 2020

    I'm a history major who recently became a software engineer. Here's my story and best luck to all who are going through the same process 💪 learn programming

    I'm a history major who recently became a software engineer. Here's my story and best luck to all who are going through the same process �� learn programming


    I'm a history major who recently became a software engineer. Here's my story and best luck to all who are going through the same process ��

    Posted: 07 Sep 2020 07:13 AM PDT

    Warning: This is a 4000-word recount of my journey into software: Full Blog Post. It's very long and might not be interesting to strangers. But I benefited a lot over the years from Reddit and thought I'd just share my words here. Below is a gist summarizing my post.

    TL;This Is The Shorter Version ;)

    I first attempted to learn programming (with Pascal) at 16 and the experience scared me. I simply assumed that programming is something I could not understand. I did history for my BA and then a master's degree in international business and management.

    A decade later in 2016, under some stressful and desperate circumstances, I took a successful investor's advice and picked up Python. I used Learn Python the Hard Way 2 (which I later found out is highly unpopular here on Reddit for various reasons), Python for Everybody, CS50, MIT6.00.1 & 2x. I did some deep learning as well with Udacity.

    Even so, when I finally got a job, I settled for product marketing instead of asking for an opportunity in software (my employer knows that I could program already). This product marketing role paid very well and I enjoyed working with the people in my team. But it was never something that really made me feel fulfilled or purposeful. Having been in this career dissatisfaction for over 2 years, I decided to make my switch again and this time, in 2020, despite a lot of stressful uncertainties caused by events taking place in my personal life as well as the coronavirus pandemic, I made it. I do feel much happier with work nowadays and am happy to be part of an awesome team.

    It is challenging to start a career in software engineering without a background in a related university degree. It is certainly a rewarding path but, like my story suggests, we must have the conviction to work extremely hard, learn every day, set the right expectations, and continue re-making ourselves so that we could capture an opportunity when luck befalls on us.

    No matter what kind of career pivots we want to make, the key to success is to find the sweet spot between our passion and market demands through continuous learning and a lot of trials and errors. Follow not your fear but rather your instincts and gut feeling. If you knew in your heart that you could make it, with some luck, you will make it.

    I hope that despite the length, my blog post might resonate with some of you here 💙

    Edit 1:

    One fellow redditor voiced his discontent about humanities students venturing into computer science, saying that it might be naive for us to think that we could be engineers just knowing the syntax of one or two programming languages.

    I don't think many of us who made it think naively about this switch. I work hard every evening to make up for all the knowledge CS majors learn in their BSc. and MSc. degrees. It's not easy and I definitely can't spend my evenings and weekends chilling like some other colleagues do. But I made a conscious decision knowing the gap I would have to make up for and I am aware of what an engineer is.

    However, knowledge does not need to be locked by a piece of diploma or an ivory tower. Those who wish to learn will eventually master. That's all that matters.

    Edit 2:

    Thank you so much for the upvotes, awards, and kind words! And I am so happy my words put a smile on some of your faces. It's lovely to see so many of you sharing similar experiences!

    Having never been popular on a social network before, you and your comments make me feel special! 😆

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

    How to get started with freelancing using my Python coding skills?

    Posted: 07 Sep 2020 05:33 AM PDT

    I am not looking to earn full time with freelancing, I would be happy just to start earning.

    I want to start earning with my web scraping skills, which is the skill I'm confident about.

    1. Which website will be best for my skill?
    2. How to get started on the website?
    submitted by /u/Zangruver
    [link] [comments]

    Every time I attempt to learn code, I give up.

    Posted: 07 Sep 2020 03:45 PM PDT

    I know I want to learn programming, but at the same time, I'm fearful of if I'll be able to achieve any kind of lasting success in it. It feels like the journey from typing "Hello World" to being a Junior Dev who is expected to understand several languages, formats, APIs etc, is so long that I can barely see myself achieving it.

    How can I gain more confidence towards my pursuit of learning code?

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

    Java or c++ ?

    Posted: 07 Sep 2020 09:17 PM PDT

    Hi! I am completely new to programming. I want to participate in Programming Olympiads(ZIO/INOI/IOI) and competitive programming . I have been doing java for 10 - 12 days and tried c++ for a few days. I read that most people prefer c++ because it is faster and contains STL . However I am more comfortable with Java. Which language do you prefer(Why?)? Is it okay to do Java or MUST I switch to c++ ? I don't want to study both as that will waste a lot of time and I have less time as the examination is near . Thank you.

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

    Any suggestions on where to get lean six sigma yellow belt certification?(accredited)

    Posted: 07 Sep 2020 11:30 PM PDT

    Covid has slowed things down and my wife was recently laid off due to it. She's been struggling to find an accredited school online she can sign up for. Any advice? Thank you in advance :)

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

    I made my first useful thing!

    Posted: 07 Sep 2020 11:10 AM PDT

    I work on projects for myself most of the time and usually never look at them again after I'm done with them. I was thinking of ideas earlier this weekend and a Twitch bot crossed my mind.

    Turns out they're not even very complex to create. Once you're connected to the chat server, all you have to do is occasionally ping it to stay connected. Once you've done that, you can make whatever you want like any normal app.

    I decided to make a trivia game. Some notable features/commands it had were: Adding authorized users so it was used responsibly, changing the bot color (and some of the output text with /me), a flair store to purchase emotes with points you had won from the game, and a quantity of games to play at one time using !trivia [num].

    After asking for permission in a few streams and making questions for that game, I processes over 1,000 games of trivia, 30,000 user answers, and 200 transactions of user "purchases" from my points store in one day.

    Sorry for the long rant, I'm just over the moon people found something of mine useful and fun.

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

    I’ve read that to get a job as a software developer, you need to have a basic understanding of how HTML and CSS work. Exactly how much do I need to know?

    Posted: 07 Sep 2020 07:22 PM PDT

    I already understand how they work, and can write some code with them too. But doubt I could create anything past a simple blog site. By the way, I'm in high school and have mostly been working with Java and have started exploring Python.

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

    Why is one faster than the other? (python dictionaries)

    Posted: 07 Sep 2020 02:11 AM PDT

    Hello, I have two functions here. The first functions slow_dist() takes longer to create as compared to the fast_dist() fucntion. Can anyone help to enlighten me on why this might be the case?

    Slow:

    def slow_dist(textseq): unique = set(textseq) return {x: textseq.count(x) for x in unique} 

    Fast:

    def fast_freqdist(textseq): fd = {x:0 for x in textseq} for x in textseq: fd[x] += 1 return fd 

    Thank you!

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

    How is insertion sort's worst case running time Ω(n^2)

    Posted: 07 Sep 2020 10:11 PM PDT

    Should it not be Ω(n)? Was reading CLRS book where the author says

    "It is not contradictory, however, to say that the worst-case running time of insertion sort is Ω(n^2), since there exists an input that causes the algorithm to take Ω(n^2)"

    I understand that if the array is already sort you only need to iterate once through the array giving you the best case Ω(n).

    But how can this be true that worst-case running time can be Ω(n^2), if n >= n^2 is not true? Ω informally related to the >= sign because of lower bound and in no way does n >= n^2 become true.

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

    Round-off error (?) in Java cash register code

    Posted: 07 Sep 2020 08:34 PM PDT

    I am trying to create a program where you enter an how much you owe and how much you pay and then the code returns a JOptionPane message telling you how much of each bill/coin to give.

    Example: I owe 14.47 and I pay 20, the return statement will be "five: 1, one: 0, quarter: 2, etc."

    I pretty much have the code done however, for some reason the program will give one less penny than is needed. I've determined that it is a round off error, but I have no idea how to solve it or do it any other way.

    private double owed;

    private double paid;

    private ArrayList<Currency> currency;

    private double due = paid - owed;

    public CashRegister(double owed, double paid, ArrayList<Currency> currency)

    {

    this.owed = owed;

    this.paid = paid;

    this.currency = currency;

    due = paid - owed;

    }

    public String changeDue()

    {

    String output = "";

    for(int x = currency.size() - 1; x >= 0; x--)

    {

    double value = currency.get(x).getValue();

    int holder = (int)(due/value);

    if (holder >= 1)

    {

    due = due - (holder*value);

    output = output + currency.get(x).getName() + ": " + holder + "\n";

    }

    else

    output = output + currency.get(x).getName() + ": " + holder + "\n";

    }

    return output;

    }

    Essentially, the holder contains the amount of the bill/coin needed. It needs to be a whole number. I'm pretty sure that's where the error is, however it could also be the "due = due - (holder*value)." Please help as I am completely lost. If you know another way to truncate decimals or something lmk if you think that would solve the issue.

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

    Which path should I take?

    Posted: 07 Sep 2020 11:46 PM PDT

    Dear geeks of this subreddit, I just got brain-blocked and I need your help.

    Short life-story: I'm a 20-year-old student whose life just took a huge turn. I was supposed to be a military pilot but I recently suffered from hearing loss (non-recoverable unfortunately) which makes me incompetent for such a job. I'm still in the army and the college (aeronautics) though, and I plan to stay in it since it's a secure position and the salary is okay. However, I believe I'll have more free time available, and I'd love to do some side programming business.

    This is where you come in. I'd like to hear your opinions and recommendations on what kind of programming should I take on. The first language I learned was Lua and SQL (through a game Multi Theft Auto: San Andreas), and I was pretty good considering I was just 16 years old. I also briefly engaged in Unity (C#), and most recently I started learning web development, first Wordpress and then JavaScript with React and Node.js during Covid-19 lockdown. After 3 months of absence, I tried returning but there is just so much information I forgot and it demotivates me a lot.

    TL;DR I'm interested in learning something new, but I expect it to also be a profitable business in the future. Thank you!

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

    Java to JavaScript Regex?

    Posted: 07 Sep 2020 11:46 PM PDT

    So I have these Java Reggex BE validations and I need to place them in the front end for HTML Form Fields. Here are the Java Regex's:

    1) [\\p{L} \\p{L}\\d\\s\\(\\)\\-\\.,/]{1,49};

    2) [\\p{L}\\d\\s\\.'\\-()]{2,23};

    3) [0-9]{0,4};

    4) [\\p{L}\\d\\s.[/&@!#;,:-]]{1,7};

    5) [0-9]{5};

    6) [\\p{L}\\d\\s.[/&@!#;,:-]]{1,50};

    After some Googling, I placed them in my JS, like this:

    1) regex: /^[\p{L}[\p{L}\d\s\(\)\-\.,/]{1,49}]$/

    2) regex: /^[\p{L}\d\s\.'\-()]{2,23}$/

    3) regex: /^[0-9]{5}/

    4) regex: /^[\p{L}\d\s\._[/&@!#;,:-]{1,7}}$/

    5) regex: /^[0-9]{0,4}/

    6) regex: /^[\p{L}\d\s\._[/&@!#;,:-]]{1,50}}$/

    Am I correct? Or am I way off? Any help would do.

    Thanks

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

    If 2^32 = 4,294,967,296 bits, how can 2^32 be seen as 4GB if it is only 0.5GB?

    Posted: 07 Sep 2020 11:46 PM PDT

    2^32 = 4,294,967,296 bits

    4,294,967,296/8 = 536870912 bytes ≈ 5GB

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

    How to set up a staging branch in Git?

    Posted: 07 Sep 2020 11:31 PM PDT

    I'm really not quite sure how to do this and have sort of fumbled my way through. I'm not sure if this is right and would like some feedback.

    I'd like the following situations:

    I have 2 "main" branches - master and staging.

    I want all work to be done against the staging branch before it is merged to the master branch.

    So to that affect I want to be able to create "sub-branches" from staging which will then ultimately be merged to master.

    I'm not sure how to do that last part - how to create branches from the staging branch and push them up to the remote staging branch.

    Would anyone know how I need to set this up?

    Manby thanks in advance.

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

    Scientific Programming Bootcamp/Course?

    Posted: 07 Sep 2020 11:20 PM PDT

    I've seen growing classes/courses/bootcamp for web dev programming. Is there anyone know for scientific programming? things like numerical modeling, HPC, etc.

    Or this is should be done in proper CS/STEM college courses? and simply not doable with just a bootcamp.

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

    Is C outdated language?

    Posted: 07 Sep 2020 11:10 PM PDT

    Nowadays there are many high level programming languages making statements.

    Does anyone seeing C language making that much impact in the use case of programmers compared to other high level languages particularly in software development?

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

    Opinion on the course " understanding the weird parts of js " by Tony alicea on Udemy

    Posted: 07 Sep 2020 10:31 PM PDT

    Hey guys , I hope you all are doing well and are in good health . I have been learning web developement through the Angela yu full stack boot camp on Udemy , As of now I have a intermediate level understanding of js. I consider java script to be very important when it comes to responsive design so I wanted to dive deep down into the concepts and get a better in depth understanding so I am considering the Tony alicea course on Udemy .

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

    Help using python to make glitch art from png image files

    Posted: 07 Sep 2020 10:23 PM PDT

    Hello, I am wondering if someone could please recommend the best program written in python to manipulate png files to generate glitch art. I am basically looking for something like this: https://ucnv.github.io/pnglitch/ except written using python rather than ruby. I have browsed some python programs that are out there, but they do not seem to have functionality that is as in depth as that provided by the ruby code in the link.

    I'm also not against writing my own code, but I think I would need help understanding how to actually manipulate the filtering process and bypass the checksum process described in that link, which are things I currently know nothing about.

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

    Switching Gears, looking for suggestions/anecdotes/experience in complete system development

    Posted: 07 Sep 2020 10:20 PM PDT

    Hey guys,

    I'm looking to develop a comprehensive system which includes the following subsystems:

    • Webscraper
    • Database
    • Webpage

    As someone who has spent their entire career working in the embedded/microcontroller/installed UI space, a lot of the concepts involved here are novel to me and, rather than floundering and creating some Frankenstein-esque amalgamation that makes no sense and is completely inextensible, I'm looking for any suggestions/experiences regarding performing this task.

    My current weakness is strong. I have not even the proper vocabulary to express everything that needs to be done, but my current setup is as follows:

    • Python webscraper. Using mechanize and beautiful soup, I can navigate and parse the webpages that I need to gather data from. This data is then extracted, the raw HTML is saved for analysis purposes.
    • PostgreSQL database. I'm beginning to configure a database into which the data is contributed. As far as I understand, the webscraper has to link into the database. In order to avoid duplication of data, there should be some interaction where in the scraper can access and quickly query the database.
    • Webpage. This is where I'm entirely lost. Given that I have a database, I need to display it somehow. I imagine that this is no simple task in itself. What sort of development environment would I use? How can I simulate interactions? Am I missing a fourth entity that draws data from the database into reasonable queries that is consumable by the webpage? What terminology am I looking for? I've worked with webpages in the past, but only after having it configured for me using templates and Wordpress. None of my knowledge from that usage has helped me understand how I should now proceed, though I am open to utilizing a template in order quickly get the page off the ground.

    My imagination tells me that there's nothing new about this problem, and there's probably dozens of ways to skin this cat. I'm looking for your experience, suggestions, whatever it is, that can push me towards the right resources to explore in order to get this done.

    While the current data set is small, it will eventually grow much larger, so I need to keep extensibility in mind at each step. This will all be developed on GNU/Linux, so if there are certain tools to recommend, I'd prefer that it be available on this platform.

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

    Can I learn C# through ASP.NET CORE tutorials?

    Posted: 07 Sep 2020 06:33 PM PDT

    Hey guys, I'm a junior C# .net web developer and I'm trying to get better as a dev. I'm currently paying for pluralsight so they have two paths, C# fundamentals or ASP.NET CORE. I feel like I learn better by building interesting things especially revolving around web development and .NET.

    So my question is can I learn C# by going through several tutorials revolving around ASP.NET CORE or would it be better to just do C# fundamentals first even if it's boring lol Let me know any advice you guys have! Thanks guys

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

    How to solve this problem using python or any language?

    Posted: 07 Sep 2020 10:16 PM PDT

    In League, the group stage comprises 32 cricket clubs. This year, the following teams have qualified:

    ● Club (State)

    1. Rhino Hurricanes (Uttar Pradesh)
    2. Midnight Stars (J&K)
    3. Rocky Assassins (Delhi)
    4. Striking Sharpshooters (Delhi)
    5. Skull Fireballs (Goa)
    6. Blue Bombers (Haryana)
    7. Blue Geckos (Madhya Pradesh)
    8. Midnight Miners (Uttar Pradesh)
    9. Spirit Blockers (Andra Pradesh)
    10. Wind Kamikaze Pilots (Kerala)
    11. Retro Chuckers (Uttarakhand)
    12. Venomous Cyborgs (West Bengal)
    13. Quicksilver Ninjas (Sikkim)
    14. Alpha Blockers (Rajasthan)
    15. Retro Heroes (Haryana)
    16. Lions (Punjab)
    17. Raging Spanners (Himachal Pradesh)
    18. Poison Spiders (Odisha)
    19. Black Bullets (Uttar Pradesh)
    20. Thunder Commandos (Uttar Pradesh)
    21. Venomous Sharks (Haryana)
    22. Killer Stars (Nagaland)
    23. Tornado Geckos (Punjab)
    24. Knockout Busters (Madhya Pradesh)
    25. Muffin Racers (Maharashtra)
    26. Real Madrid (Delhi)
    27. Demolition Piledrivers (Rajasthan)
    28. Flying Xpress (Delhi)
    29. Silver Wasps (Uttarakhand)
    30. The Showstoppers (Delhi)
    31. Wolfsburg (Haryana)
    32. Black & White Gangstaz (Andra Pradesh)

    Our goal is to create a program application that randomly generates 8 groups with 4 teams each.

    Rules and Instructions

    1. Use the list of teams given on Page 1.
    2. Group names will be "Group A", "Group B", "Group C" and so on.
    3. A group cannot have more than one team from the same state.
    4. The teams marked in bold are last year super eight qualifiers. The first team of every
    5. group must be a last year super eight qualifiers.
    6. The program should be able to generate a fresh new list each time it is run.
    7. The program should output a list of teams under each group title.

    Pretty much solved here but

    ``` for _ in range(1, team_formed + 1):

     all_state = [] single_team = [] choosen_team = random.choice(new_team) choosen_super = random.choice(super_eight) for i in range(0, TEAM_SIZE): if i == 0: all_state.append(choosen_super.club_state) single_team.append(choosen_team) super_eight.remove(choosen_super) else: if choosen_team.club_state in all_state: for t in new_team: if t.club_state not in all_state: single_team.append(t) all_state.append(t.club_state) new_team.remove(t) break; else: single_team.append(single_team) all_state.append(choosen_team.club_state) new_team.remove(choosen_team) 

    ```

    The issue is sometimes it gives perfect result but sometimes

    4

    4

    4

    4

    4

    4

    4

    3

    Any suggested approach will be helpful

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

    I have a question about the frontend section

    Posted: 07 Sep 2020 06:28 PM PDT

    Hello fellow programmers, my question is do frontend developers do a lot of html and css or does a UI/UX person does it? I know it depends on the size of the company or job description and that also frontend developers need to at least understand how html/css work. I ask this because I do like html/css but I rather mostly work on JS or other parts of software development.

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

    What are the number of bytes returned by %x in C?

    Posted: 07 Sep 2020 09:58 PM PDT

    Let me give you an example:

    int a = 5; int b; printf("%x, %n", &a, b); printf("%d", b); printf("%100x, %n", &a, b); printf("%d", b);

    Forgive me if I have made some syntax error, I'm new to this language and please point it out. Now my question is what should be the output in the second and fourth printf function? I know that 2 hexadecimal characters is 1 byte and an integer is given 4 bytes space. But if I'm specifying different field width for the same number then will the no. of bytes be different for the respective field width ?

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

    Any recommendations on the best or preferred Udemy course to get started with C#?

    Posted: 07 Sep 2020 05:59 PM PDT

    Any previous experience of recommend course to get started with C#?

    Thanks

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

    No comments:

    Post a Comment