• Breaking News

    Thursday, January 28, 2021

    MIT Intro to Computer Science open on edX (Python) learn programming

    MIT Intro to Computer Science open on edX (Python) learn programming


    MIT Intro to Computer Science open on edX (Python)

    Posted: 27 Jan 2021 09:34 PM PST

    Introduction to Computer Science and Programming Using Python | edX

    Just watching the first few videos it's not as good as CS50x (very dry) and the course isn't as integrated (you must download/use your own IDE) but it starts off with Python so some may like it more (CS50x starts with C).

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

    Beginning web development

    Posted: 27 Jan 2021 04:13 AM PST

    I wasn't sure where I should post this, so I apologize in advance.

    I currently work ata a construction sites and I have basic html skills. I would like to change my career to web development, but i feel due to my age, I'm already behind and I will not get a job in web development. If this is the case, please let me know. I don't want to just learn something to face the harsh truth that self learning might not be a way to go.

    Also, are there any web development boot camps that are worth it and recommend?

    Where should I start to learn web development?

    How many hours should I be studying?

    Thank you

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

    Self-taught programmers, how long did you wait before applying?

    Posted: 27 Jan 2021 07:46 PM PST

    I know everyone learns at different rate but how long did it take before you started applying for jobs?

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

    Is C++ going to stay relevant?

    Posted: 27 Jan 2021 05:26 PM PST

    I'm trying to decide whether or not I should learn C++. I was thinking about trying python, I don't have experience programming. What languages have had the most success thus far with AI? I would also like to do game development. I was thinking of C++ just because of how universal it is and how much it's used for game development. But I'm wondering if y'all think python will be more relevant in the future?

    submitted by /u/Portue-Fortune
    [link] [comments]

    Do I suck, or is this normal?

    Posted: 27 Jan 2021 05:08 PM PST

    Hello! I am very new to the world of programming. I bought a course on Udemy a about 25 days ago. It's a 30.5 hour long course, highly recommended. Before that course I literally knew nothing about coding. I'm about 40% through the course. As I'm going through the course some exercises will pop up telling me I should use the knowledge that I've learned to solve certain, beginner problems.

    No matter how much I feel I understand a certain concept when it comes to solving even beginner level problems I just don't even know where to begin as far as which methods I should use. I have failed almost every single one I've tried. Even a few beginner ones on CodingBat.

    Is this a normal thing to be feeling/going through? Am I trying to do challenges way too early? Perhaps I should finish the course completely before I attempt even beginner questions?

    Thanks in advance for any tips or wisdom!

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

    Should I learn Java or C#?

    Posted: 27 Jan 2021 04:28 PM PST

    I have already learnt Python and I am looking to extend my knowledge of programming languages. I have narrowed it down to Java or C#, but can't decide which to commit to. Help?

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

    Low level/technical C++ projects for beginners?

    Posted: 27 Jan 2021 09:09 PM PST

    So I've been programming for a couple of years (Java, JavaScript mostly) and I wanna learn C++. I wanna get into some low level or technical programming (if you can call it that). After learning C++ (and maybe assembly) what would be some projects for beginners to make? By low level I'm thinking of things like compilers or operating systems obviously those are way out of my range, but anything you think would be "simple" would be great. I also know data structures and algorithms if that helps.

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

    What is “Programming to an interface” mean and what are the benefits?

    Posted: 27 Jan 2021 08:34 PM PST

    Can't seem to grasp the concept that well from what Ive read online, so I was hoping you guys could help me out.

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

    For those who ever hit a hump or roadblock, what did you do to keep going when life kept gitting in your way?

    Posted: 27 Jan 2021 06:05 PM PST

    I'm currently trying to push through the Odin Project curriculum, but lately I've been having self-doubts about becoming a programmer.

    I do enjoy coding, and I enjoy building things, and I have faith that I'm smart enough to work as a web developer for a living, but it seems like life keeps getting in the way.

    I feel like I've been at this path for about, two years now? More or less, on and off, and I still haven't gotten much progress.

    Long boring things down below:

    Last past summer, I tried traveling abroad while studying, and it didn't work too well. I often either ended up living someplace where I rarely ever had any peace quiet & privacy to concentrate on my work, or I did volunteer work in exchange for a private room and food, only to end up working either 12 hours a day six days a week, or virtually 24/7.

    I ended up spending a good chunk of that in tutorial hell with freeCodeCamp, and on online college classes that are RELATED to computer science, but isn't hands-on programming.

    Before that, I struggled to try and pursue this path while living with my father and little sister, but I quickly ran into personal issues with isolation, loneliness, depression, addictions, and the only way I could beat it was to go to the library every day with my financial aid money, which is a 30 minute drive one way.

    During that time the only coding I accomplished was some code-along projects with a udemy course and a few tiny Python scripts for one of my online classes, some of which I wrote to help me solve my discrete math problems quicker.

    Now I'm back with my family in the same situation, and although I'm feeling more grateful and optimistic since my time abroad, now that I have a better understanding of myself and the world, I'm also getting kind of tired of trying.

    I'm considering taking a carpentry apprenticeship and doing that for a living instead, but I'm concerned that it would leave me with no time to pursue coding, letalone find time for that, AND my desire to write my first book.

    I feel so close to a breakthrough, especially now that I'm on the Odin Project and just learned how to use Git and GitHub for the first time ever, but I just feel like I should have made more progress by now, and my money problems are starting to weigh down on me, and I really just want to get a carpentry apprenticeship and move out of my father's house and get my own.

    Still, I believe becoming a programmer would help me do a lot of the things I want to do, including traveling freely without being tied down to a job location.

    TL;DR I've been spinning my wheels in the mud for two years with nothing to show for and I'm considering giving up on it as a career and instead becoming a carpenter.

    • Am I being unrealistic with the expectation of freedom being a programmer will give me?
    • If I'm having financial problems and personal problems, should I focus on getting an easier career instead or use those problems as motivation?
    • If you were in a similar place at one point, what did you do to get out of it?
    • Is it normal to make virtually no progress in over two years?
    submitted by /u/ChromaLovely
    [link] [comments]

    Questions for Javascript Devs

    Posted: 27 Jan 2021 10:11 PM PST

    Any devs that have or are using the PERN stack (PostgreSQL, ExpressJS, ReactJS, and NodeJS) can tell me how easy is it to learn and what are the best steps to do so.

    Should i learn the basics of js and then move on to each individual technology until I've went through all of them and then try and build out a project?

    Or should I learn each, build a project or a couple, and then move on to the next?

    The goal is to use these skills to freelance while working on side projects.

    Another thing would be timeframe dependent on how much is put in, what can it take to learn the full stack?

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

    [Java] Need help debugging my implementation of Dijkstra's Algorithm

    Posted: 27 Jan 2021 10:28 PM PST

    Hello,

    I am trying to implement Dijkstra's algorithm and I need some help figuring what is wrong with my code.

    I am using the following algorithm as explained on MIT's video lecture on Dijkstra:

    while all vertices are not processed: u = getMin(unprocessed_vertices) addToProcessedVertices(u) for each vertex v such that there exists an edge from u->v with weight w: relax(u, v, w) 

    I am trying to use Dijkstra to solve the leetcode problem Network Delay Time


    My implementation of the algorithm is as follows:

    class Solution { public int networkDelayTime(int[][] times, int n, int k) { // Initialize distances array that holds data to go from k -> u int[] dist = new int[n+1]; for(int i = 1; i<dist.length; i++) dist[i] = Integer.MAX_VALUE; dist[k] = 0; // Build adjacency list ArrayList<int[]>[] graph = new ArrayList[n+1]; for(int i = 0; i<graph.length; i++) graph[i] = new ArrayList<int[]>(); for(int[] entry: times) { graph[entry[0]].add(new int[] {entry[1], entry[2]}); } // Build PriorityQueue that gets min vertex distance Comparator<Integer> c = new Comparator<Integer>() { @Override public int compare(Integer a, Integer b) { return dist[a] - dist[b]; } }; PriorityQueue<Integer> pq = new PriorityQueue<>(c); for(int i =1; i<dist.length; i++) pq.add(i); // Dijkstra while(!pq.isEmpty()){ int u = pq.remove(); for(int[] edge: graph[u]) { int v = edge[0]; int wt = edge[1]; dist[v] = Math.min(dist[v], dist[u]+wt); } } int max = 0; for(int i = 1; i<dist.length; i++) max = Math.max(max, dist[i]); if(max == Integer.MAX_VALUE) max = -1; return max; } } 

    This fails for some edge cases and I cannot figure out the mistake in my implementation.

    Can someone please help?

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

    Resources for learning about Neural Networks/Deep Learning

    Posted: 27 Jan 2021 09:02 PM PST

    Hey all, I have been looking for resources on learning Neural Networks and Deep Learning, but I wasn't really able to definitively find what resources are the best and how I can self-learn it. So is there any materials (e.g. books, videos, online courses, etc) about this topic? For me a hands-on approach, e.g. making projects with deep learning is more preferable over the mostly theory-based material I find regarding this topic. Perhaps this kind of material simply doesn't exist for advanced topics like this, but if there is then that would be great

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

    Working in data science already, what to do to enhance myself?

    Posted: 27 Jan 2021 11:15 PM PST

    I work in a start up for 9months with 1 other data scientist and 10 others. We do the whole data science process. I'm using SQL for the database, Python for preparing data and Docker/Python for deployment. I have limited programming knowledge before this. I want to get better at it and spend 3/4hours a week. I like to do flexible courses but prefer them with a real certificate (CV). Do you guys have suggestions for the next course to follow?

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

    How big of a mistake did I make?

    Posted: 27 Jan 2021 03:35 PM PST

    Hi everybody, I've been coding for about a year and am half way through a MS in data science. I recently got given an internship Python coding challenge, which involved iterating through a directory of tar and other files and extracting a specific value that came after a text, then doing some calculations on it. I managed to get an answer that to me seemed within reason - but as the file was so large and data so messy, no way to actually check for sure what the actual answer is.

    My problem is, that I achieved the above using two functions, one of which was called inside the other - but I imported modules within the functions rather than at the top.

    I have subsequently learned this is generally considered a no no according to PEP-8 and that all imports should be done at the top of a document.

    Anyway, I haven't heard back from them yet - but how egregious was this error? Would this be considered a deal breaker for a data scientist?

    submitted by /u/Aggressive-Ad-8237
    [link] [comments]

    App Academy Open - learn together

    Posted: 27 Jan 2021 04:33 PM PST

    Hey there,

    I'm currently working on App Academy Open and would love to join up with others who are working on it in their free time to keep ourselves accountable. Its much better to be able to bounce ideas off someone or ask for help on a homework/project. Hop into the Discord or feel free to PM me

    Discord | Private Message

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

    Is it ok to start your career as a Freelancer??

    Posted: 27 Jan 2021 04:28 AM PST

    I'm a software engineering student. I've worked on some freelance project and I can continue doing this. However, is it ok to do that for life and not have a Full-time job at all? I mean will I still be able to learn and grow my experience as a software engineer. Or should I instead start my career with a Full-time position and consider switching to a full-time freelancer later as most people do??

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

    System Design Interview Question - COVID Tracing App - I want feedback

    Posted: 27 Jan 2021 08:25 PM PST

    I recently got asked in a coding interview to design a contact tracing app for COVID that (1) lets users say whether they have COVID and (2) alerts all the user's contacts from the last 2 weeks about the test result.


    Curious to see your responses to my system design approach:

    I probed around to get the specs.

    • There are 150,000,000 assumed users of the COVID app.

    • Users can opt to get notifications for contact exposure within the last 1 week or 2 weeks and for direct contact or for indirect contact.

    • The user's phones automatically submit information about contact.

    • We do not need to immediately alert users. We can do it at the end of the day.

    • I asked what to do if we have regional events? Like, what if 200 people meet up in Central Park for some reason? Then each person registers contact with 199 other people, which turns in to 200 * 199 / 2 = 19,900 contacts to register. We should add an event processor and have a column for events so that this only comes out to 200 contacts (1 per person in the DB). He said it's a good consideration, but go ahead and look past this.

    I said you can have regional load-balancers that distributes inputs to servers that write data to databases. Each contact will have 2 pings to the server (one from each user's phone), so you can have the server standardize the input by sorting the user_ids and then updating the database with an entry (<smaller_user_id>, <larger_user_id>, ).

    Also check a read-only secondary copy of the DB so that you don't just submit the same contact info over and over, like if 2 people are chatting on a bench for hours. The interviewer said to assume we have an engine of sorts that prevents multiple spam entries like this.

    Graph databases are going to be too complicated (interviewer agreed), and NoSQL databases don't offer much of an advantage over SQL databases. They take up more space and it'd be harder to remove entries more than 2 weeks old since you'd have to scan every user_id or you'd have to index the times, in which case you might as well use SQL. I went with a SQL database - a table for the users and their metadata, then a table logging the contacts and their times.

    I said you can't shard the databases by region unless you also have a way to quickly lookup which databases a user is present in, but you can shard the databases by user_id.


    THIS IS WHERE I MIGHT'VE MESSED UP AND WOULD LIKE YOUR INPUT.

    Then at the end of the day, you should check for all the people who registered contact and what time they registered. Look up their direct contacts and fire the alert. For each direct contact, look up their contacts and start contacting the users who want updates within that time window and want indirect contact alerts. Essentially, this is a breadth-first-search style stored procedure.

    Also run a SPROC that deletes entries that are 2 weeks+ old and vacuums the database.

    Does that make sense?

    Is there a better way to do it or to setup the information to make this run faster?


    What do you do to prepare this for real-world deployment? I said test it in a small release first. Unit test, integration test, end-to-end test, and stress test it. Test a version of the app manually to make sure that people get alerts. Promote awareness of the app to the public. I generally think he liked the idea.

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

    Industry experts: what programming knowledge is or will be most in demand?

    Posted: 27 Jan 2021 08:01 PM PST

    I'm looking to start a programming diploma, but there are multiple concentrations available. I'm not sure which to choose, since my only criteria is finding a job (Canada.) What set of skills is most in-demand currently or is in rising demand?

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

    Are web dev jobs mostly freelance?

    Posted: 27 Jan 2021 07:59 PM PST

    I'm wanting to learn web development as a possible career path but am wondering if the job outlook is mostly freelance or if there are actual jobs where you can be a full time employee. I live alone on a single income so steady, predictable pay is very important to me.

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

    I’M SO STUCK IN THE CYCLE OF NOWHERE. I NEED HELP!!!

    Posted: 27 Jan 2021 07:18 PM PST

    Last year i joined coding bootcamp because I really wanted to learn something. I had been out from college for a long time. Thinking about going back to college for six years felt so boring and overwhelming. I came across a advertise on YouTube about a coding bootcamp and i did a little research on what it was how it worked. It was so interesting and I really thought I could pull if off and be able to code kn three months. After few weeks of thinking I decided to go check out a bootcamp near me so I went for a tour. When I went there they really made me feel like i can do it even though i had no prior coding knowledge. But Its been a year now and I am still on the bootcamp. I am intimidated by my classmates and i feel like a looser. In the bootcamp they do intense algorithm practice and I feel like a looser again and I loose all my hopes on becoming a coder. I did a huge mistake by joining the bootcamp early. Its not like I don't understand anything. I get all the logic and when it comes time to practice I make myself feel bad for not knowing the basics. I need some help how can I manage my stupid ego and learn how to code. Please if you have any suggestions. I want to learn but I don't know how to learn.

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

    How long does it take to be good at a programming language?

    Posted: 27 Jan 2021 09:23 PM PST

    Specifically Python because that's the one I have on my computer.

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

    Any suggested framework for desktop and web app comhination?

    Posted: 27 Jan 2021 09:18 PM PST

    I am trying to teach my self programming by just going at building what I need. And what I need is something that can connect a windows desktop app(onprem DB Connector) and a web app. The web app would have its own database (postrgres?) and the desktop would essentially act as a go between for the web database and an on-prem database. I know this has been done before but havent been able to find exactly what Im looking for and im guessing because I dont really know what to be searching for specifically and my searches have gotten wide results, nothing that matches what Im looking for.

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

    If you had a whole month to dedicate to learning coding, how would you plan your month?

    Posted: 27 Jan 2021 07:15 AM PST

    Ofc I understand I would be far from a master in a month(!) but still I would like advice for how to plan this month I wish to dedicate to really improving my coding skills.

    • What languages or skills would you focus on in terms of current demand/high employ-ability? I hear that JavaScript is very much in demand at the moment.
    • What tools would you recommend I use for my learning?
    • What targets would you suggest I work towards?

    My background is I have experience with Python that I need to refresh. I also have some commandline experience and some html/css experience.

    But I want to bring myself to a high level and create a portfolio.

    I fully understand that my learning would obviously go on long beyond this month, but I would appreciate any ideas others more advanced than me might have as to how I can make this month a really worthwhile program for myself.

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

    Xcode Swift(UI) Mac local user authentication

    Posted: 27 Jan 2021 11:37 PM PST

    Hey guys!

    I am working on a password manager for myself and I want to make a login screen so the user has to use TouchID or their mac password to see their passwords.

    My question is:

    1. How would I implement authentication for local users? So there would be a password field where the user would type their local password (the password they use to unlock their mac)

    2. How would I implement a TouchID login?

    3. (How would I implement an Apple Watch login where the user would press the side button on their Apple Watch to login?)

    So the user would be asked to login with TouchID or if this is not available or the user does not want to use TouchID then the user should be able to type in their local mac password to login to my password manager.

    I've checked google for so long and I did find some resources for singing in with TouchID on iOS and I did manage to make a TouchID login for mac, but that was not an ideal solution... This really frustrated me so I thought that I would ask you gods on Reddit 😇

    If I have forgotten any information or something is not clear enough, please comment and I will edit the post accordingly.

    I would really appreciate any help/guide in the right direction.

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

    No comments:

    Post a Comment