- I tried for years to learn programming and never get off the ground. At the beginning of Covid I started to dabble with Game Dev and it all FINALLY clicked. Today I learned that I'll be assigned some custom scripting work at my dayjob (IT Consulting) as a direct result of what I've taught myself.
- Let's learn and teach Data Structures and Algorithms to each other ?
- Automated code editing in hundreds of different HTML files?
- How would you go about unit-testing a large switch/case translating an enum to a string?
- NEED HELP GUYS
- Trying to code a live TV menu for a dispensary but don't know where to start, any advice appreciated.
- Studying Computer Science but want to integrate biology or working with animals
- I feel like everyone is better than me and can't come up with ideas.
- Programming courses (pirple)
- Question regarding storing directed, labeled graph data in c++.
- How can i handle the data between components in the following example? using ReactJS
- How would you split this function in Backend? (Too many different responsibilities in my Controller)
- I have my first assignment and I can't even open the file, please help!
- Whats the best way to use text data so that it can be used in program but user cannot view or edit it?
- [C] building a binary tree given data.
- Is it possible to get in software engineering without finish my not CS related degree?
- How to make a href into a button push?
- How does brainstorming exactly work?
- Framework for building a dynamic SPA WebClient in C#
- [C] Looking for help with optimizing my code
- How long did it take you to love coding?
- How does nonblocking IO work without blocking something?
- I want to serve different private files to multiple users using MERN
- Asking senior programmers: How do I become a competent programmer?
- Compute the centroids of a cluster (Python)
Posted: 30 Mar 2021 11:18 AM PDT TL;DR: Title. When I tell you I tried for years... I mean YEARS. My first attempt to learn this stuff (basic "Hello World") was in 2010. And for a decade, about every 18 months I'd try again and the effort would always flounder. There's a different threshold for everyone on what it means to "get it" but for me that feeling was absent time after time. In an unrelated effort, I decided I wanted to learn Unity and dabble with Indie Game Development. I was originally intending to actively avoid the "coding" part but there just is no way around it when using Unity. After committing to another attempt to learn this stuff the basic concepts finally started to reveal themselves. I was STUNNED. Learning finally started to happen. I think for me, the reason is that I had something I was interested in and I could visually see my changes applied (change this number, square get bigger!) ... that really helped for some reason. Fast forward a bit and I started to look into some more intermediate C# concepts as well as some industry best practices (SOLID Principles and all that). I still have a lot to learn, but I was able to lightly demonstrate my skills to my day job managers and they were thrilled. Today I found out I'll be on some customer assignments that will allow me to use what I've learned. (This is very exciting for me personally as it will lead to more enjoyable work, work hours and opportunities). I made a few videos with a bit more detail on exactly why I think I was successful (see my YouTube in my bio) but I'll also try to sum up the points here.
I hope this helps you guys. [link] [comments] |
Let's learn and teach Data Structures and Algorithms to each other ? Posted: 30 Mar 2021 03:13 AM PDT Basically what I'm asking is -Im trying to learn DS and Algo but it feels like it's not working out. So if possible somebody else also learning. Then we can learn something together and teach it to other person. This will allow to have a better understanding over what we learn and work further on DSA Let me know if you are interested ! [link] [comments] |
Automated code editing in hundreds of different HTML files? Posted: 31 Mar 2021 03:14 AM PDT from the first HTML file, at line 43 to line 55 I copy then at the second HTML file at line 43 to line 50 I paste. Now I have to open the third HTML file and repeat, then the fourth, just over a hundred times. Always the exact same line numbers. Is there a way to speed this up, just designate every single HTML file in a directory and have them all done in one go? [link] [comments] |
How would you go about unit-testing a large switch/case translating an enum to a string? Posted: 31 Mar 2021 02:03 AM PDT
[link] [comments] |
Posted: 30 Mar 2021 09:27 PM PDT I really want to get into coding properly, I'm already a bit familiar with MatLab, python and Java. When I say I'm a bit familiar I just know how to do the basics, although I'd say my best is matlab. Can anyone of you recommend some good coding tutorials to help me improve? Thank you guys. And I truly appreciate anyone's help. Will try to get back to each one of you individually. Thank you again. [link] [comments] |
Posted: 30 Mar 2021 05:50 PM PDT I work for a dispensary in Canada and recently redesigned our menus, the only issue being that when a product runs out, I need to manually edit it off the image file and upload a new one to the usb stick, then plug it into the TV. Figured there would be some way to automate it. I'd have to do the following: - Read our inventory list from our POS provider or read an excel sheet containing the stock levels. - Place png files in certain spots if the item is in stock - Automatically transmit to the TVs (Samsung smart TV). I'm thinking some microcontroller hooked into the tv (Just needs to display a png file or webpage) I understand the general process behind how to make this work but I don't know what language(s) I should use for this. The cleanest solution would most likely be a webpage that reads a list sent to it, then adds or removes rows with pictures based on our inventory. [link] [comments] |
Studying Computer Science but want to integrate biology or working with animals Posted: 31 Mar 2021 03:37 AM PDT Hey! So as the title mentions I am currently pursuing a bachelors degree in CS and am interested in animals , their behavior and maybe biology or zoology. Is there a career that might integrate both of programming and working with animals or biology? I do not want to drop out of my current uni program as I already payed huge amounts of money for it so I figured I might just integrate what I seem to interested in with what I am studying. Any comments are much appreciated! Also sorry if this is the wrong sub. [link] [comments] |
I feel like everyone is better than me and can't come up with ideas. Posted: 31 Mar 2021 03:33 AM PDT I went to programming courses for c++, c# and arduino but after all of this, I feel like im stuck and don't know what to do next. I am only 13 years old, and I feel like everyone is better than me. I see youtubers who say they are techleads, senior software engineers and they talk about stuff I don't understand like mongodb, mean stack, etc. And I just feel like I don't understand anything and I get discouraged. After some time, I come up with an idea, but I don't bother doing it because someone else did it, and there are tons of people who did it better than me, so why bother. And so I wait until I get a never before seen idea (but that never happens) and I remain in this loop of doing nothing. I got this mindset from TechLead (youtuber), and I just don't know how to get out of it. I really enjoy programming and would like to get back into it, but I just don't know how. Any help is appreciated. [link] [comments] |
Posted: 31 Mar 2021 02:59 AM PDT Hello, I have learned a little C++, Matlab, Processing, and Javascript in my college course (Engineering) and thought it might be good to broaden my knowledge in programming languages and proficiency. I was looking for some online courses (ideally that would supply some sort of proficiency certificate) and came across pirple. From what I have read online there is such a huge split in opinions, some saying that it's a scam and horribly done, others saying it was really good. Would anyone here recommend doing a course on pirple, or have any other online course recommendations? Thank you and have a great day :) [link] [comments] |
Question regarding storing directed, labeled graph data in c++. Posted: 31 Mar 2021 02:57 AM PDT Hi there, Currently I'm trying to store a graph database from a file into memory. Currently I'm using an adjacency list. The data is provided as follows: Vertex | edgelabel | Vertex 123 2 4 123 5 31 12 5 3 What I'm trying to do is save it in a CSR representation (compressed sparse row), but I'm having trouble understanding how I could transfer the data from this file to a CSR representation in memory. Could anyone maybe help me out here? [link] [comments] |
How can i handle the data between components in the following example? using ReactJS Posted: 31 Mar 2021 02:55 AM PDT I have 2 dropMenus : Clients and Sites for each client, there is sites related to him I fetched list of clients to the dropdown Menu.. I would like to select Site (2nd dropdown Menu) only if the dropdown 1 is given (the value will be used to fetch data of second dropdown) ClientSearch component : https://cdn.discordapp.com/attachments/244238416248569857/826755051200577536/unknown.png How can i pass data between components in the following case : https://cdn.discordapp.com/attachments/244238416248569857/826755171543416862/unknown.png https://cdn.discordapp.com/attachments/244238416248569857/826755239058997288/unknown.png [link] [comments] |
How would you split this function in Backend? (Too many different responsibilities in my Controller) Posted: 30 Mar 2021 10:49 PM PDT Hi, I am creating a backend for my website using Net Core. The thing I am struggling with is the best way to split functionality across layers. I currently have a UserController.cs with a Create function here is what this does:
My question is what would be the best way to split this. Which layers would password checking and password hashing fall under? What would be your approach? I'm thinking to create this as business logic code but not sure what .cs this would fall under. My architecture I am aiming for is layered, currently I have:
[link] [comments] |
I have my first assignment and I can't even open the file, please help! Posted: 31 Mar 2021 02:19 AM PDT Yes I am a total noob! I am doing a course (2021 Complete Python Bootcamp From Zero to Hero in Python) and am trying to do the first assignment. This involves downloading the notes from github, I have done this and the file is a .ipynb. The course hasn't really said what I need to do with it. He mentioned I could work in the notebook, but my pc doesn't seem able to open it. What am I missing?! [link] [comments] |
Posted: 31 Mar 2021 02:19 AM PDT I am doing a project where I need to generate receipt numbers, but these numbers need to be updated time to time. Right now while testing I am putting the value in a .txt and doing all the work from there. What would be the best way to achieve what I want to do? I want to access it from my program but users cannot access or know about the text data. I thought about storing it in the database but I think there is a better way to do it. [link] [comments] |
[C] building a binary tree given data. Posted: 30 Mar 2021 10:31 PM PDT So let's say I have a data.txt that has CEF@H@@B@@GA@@NJ@@K@@ and I wanted to build a pre-order binary tree. I get the gist of how it should be done using left and right pointers but I'm having trouble actually doing it, my code just seems way too complicated for something seemingly simple and it doesn't even work. [link] [comments] |
Is it possible to get in software engineering without finish my not CS related degree? Posted: 31 Mar 2021 02:15 AM PDT Hi everyone! I'm here to ask you something... I'm a mid 30's electromechanical engineering student in his last year of undergrad (I know mid 30's is not usual but I got big gap working in different continents)... For personal reasons I'm not going to be able to finish it, I have no other study credentials but programming skills, the courses I took in colllege and speak 3 languages fluently... Now I have to redesign my career and start working (any further studies would be certs, self-learning or slow pace college)... I have electromechanical products design experience (2+ years) and sys admin and cyber security experience (1~2 years)... I'm thinking switching to software engineering or cyber security... Is it doable? What should I do to reach that goal? Thanks in advance for any advice, I need all the support as I can get, these are difficult times for me. [link] [comments] |
How to make a href into a button push? Posted: 31 Mar 2021 02:11 AM PDT So I'm doing this This is a column in a table This is the form I want to emulate. I'm really new to HTML, how do I make the row HREF emulate the button press POST? [link] [comments] |
How does brainstorming exactly work? Posted: 31 Mar 2021 02:10 AM PDT Hey guys! The problem is I have no idea which apps to create. Not even clue. How do you guys make your apps? How do you know what to make? [link] [comments] |
Framework for building a dynamic SPA WebClient in C# Posted: 31 Mar 2021 01:57 AM PDT Hey everyone, first time poster here. Tell me if I'm doing anything wrong please. I have been trying to find a way to build a web client that is
I have looked at:
Now I have some experience with Angular for example, but web development is still rather new to me. Is there an obvious solution I haven't figured out yet? Thanks for any help! [link] [comments] |
[C] Looking for help with optimizing my code Posted: 31 Mar 2021 01:44 AM PDT Hi, I have an assignment from Numerical mathematics. I have to show that when using an ODE solver, the global error decreases with decreasing step size until a certain step size is reached. Then the round-off error takes over and when decreasing the step size further, the error will actually increase. I have a very simple ODE and I'm using the Explicit Euler method. The code itself works fine, but it takes very long to compute. For the round-off error to show, I need to go to very small step sizes, e-10 and smaller, which means that even for a small interval, such as <0,1> there's a lot of computations to be made. Here's the code itself. I have set 'rep' to 64 and the code has been running for over 24h now. I have successfuly finished the computation for rep=38 (which went for hours), but the effect of the round-off wasn't showing yet, so I had to decrease the step size further The thing is, that my professor didn't mention anything about it being so time consuming and most of my classmates have already finished the assignment. So I suspect, I'm doing something wrong, which makes the code run very slowly, but I can't figure out what is it. Any advice is greatly appreciated. [link] [comments] |
How long did it take you to love coding? Posted: 31 Mar 2021 01:32 AM PDT Ive been studying coding for a few months now and it's been really hard to love coding because I feel so dumb every time and it takes me so long to understand something. While I enjoy it sometimes, its frustrating most of the times. What keeps me motivated is the fact that one day ill be able to build something just from my home but itll take so long to get there, if I ever do at all. Did you guys enjoy it straightaway or what did you do to make it more enjoyable? [link] [comments] |
How does nonblocking IO work without blocking something? Posted: 30 Mar 2021 09:36 PM PDT I am working with concurrency and use a lot of what's considered to be "nonblocking IO", as in I tell the program to open a file or a database connection and give it a callback to execute when it's done. I am confused about how that works though - even though it doesn't block the main application thread, it's got to block something, right? When I initiate a non-blocking IO operation, is there a thread being spawned that runs the operation, blocks on the information, and executes the callback? If so, it's not really non-blocking so much as "blocking a less important thread". [link] [comments] |
I want to serve different private files to multiple users using MERN Posted: 31 Mar 2021 01:12 AM PDT First, I am a newbie with bad English. So, I will create users(my clients) with username and password, I will give username and its password to them, when they open my site, they will login and will be served with their order(photos and videos) in folders, it should be private of course. I have no idea how to do this, I know basics of MERN, I am willing to learn more if I have to, I have time. Please Help me just with the idea, how to do it. [link] [comments] |
Asking senior programmers: How do I become a competent programmer? Posted: 31 Mar 2021 12:57 AM PDT Hi all, I know this post is long, but I really do believe that it could be very helpful for other people in similar situations as me, and it's long because I asked this question many times but never quite got a specific answer, so I though ok, then I need to formulate it more specifically, so here it is. Background: I'm a junior self-taught dev (1 year), currently in my first year of college (CS). Lately I've been evaluating my progress. I started from 0, no CS background whatsoever, was always great with computers but nothing more than that. Right now I'm interviewing for junior positions with a few good offers on the table. My "tech stack" right now is MERN. But in the past year I have tried every major programming language that you can think of. C/C++, Java, Kotlin, C#, Rust, Go, Python, PHP, Swift, you name it. I did this, mostly to just see what's out there, but also to scratch an itch. And that itch is called JavaScript. Now is that my itch or have I inherited it from what others are saying about JS and the whole ecosystem around it? Maybe both. Still, I have this constant thought in the back of my mind: I'll never be a true programmer as a C++ one or a Java one. And yes, I know that this may not seem apples to apples, you may say that all these languages do very different things, and rightfully so, but bear with me. Let's take a desktop app for example: you can do it with QT and C++ or with Electron and JS. The complex, highly capable, "true" programmer would do it in C++, whilst I, the hobbyist, wannabe programmer would do it in Electron. But I don't want to regard myself as that (hobbyist, wannabe etc.), still I do because I keep seeing the memes and posts about how JavaScript programmers just hack things together in the form of working software, but in actuality the code is probably bad, buggy and the program is slow, unoptimized and whatever other things are wrong with it. I think you get the point. And so, sometimes I think, well maybe I should just switch to another language, a proper, smart-guy language. And then I do switch for a while, and sure enough I understand it, I can see the progress I'm making with it and life is good, but then I think again: "But this just seems to be a more cumbersome way of achieving the same result I could've gotten with JS". Or is it? See, what I don't know, and what the subject of this post is, is how much does the actual language impact how good of a programmer you can become? Personally I want to be great, I want to develop a deep understanding of my craft, I want to be able to create stuff and add value to this field that I'm so passionate about. But I actually do not know if the language I work with can and will become a barrier. Let me give you an example. Two equally smart, equally "qualified" students start two similar jobs, as backend devs. One works with JS (Node) and one with Java. Their progress is the same (both are doing equally good at their jobs). After three years the first scenario repeats and they are both once again considered for the same backend dev position, but this time, they're not completely similar (one was a Java dev for 3 years and one worked with JS, of course). So in order to decide, we evaluate their general understanding of backend development. That could mean systems design skills and other key factors an employer would look for in a competent backend developer. In other words, we can somehow accurately measure the breadth of their understanding in their respective field. Would the Java dev always come out on top just because he was using the "proper"* technology for the job and so, the NATURAL path this took him on allowed him to develop a more complex understanding OR, from a certain point forward the language and ecosystem you are working in matters less and what naturally comes next is an understanding of some more general principles, approaches, techniques whatever you want to call them, which you can then implement irregardless of what technology you are using. * Presenting Java as the "proper" technology was a reference to how people commonly bash JS for the fact that they consider it has no place on the server. IN OTHER WORDS, god I bet you're sick of me by now, can the language/tech stack I choose to start my career with, hinder what I could've become and what I could've learned, just based on some "natural" path each technology takes you on? And if so, what would you advise me to do in order to ensure that I become a competent professional who is good at his craft and who has what it takes to develop great software? (Again, you can develop great software both in Java and Node, and sure, they have their strong use cases, but when we talk about a grey area, when the decision between the two is a coin toss, would one be objectively better than the other?) Also what technologies would you recommend for me to learn in order to get to the level I want? Being a beginner I'm not concerned about what I will end up doing later in my career, so I'm open to learning what, in your experience, is a good starting point to make sure you develop a great general understanding early on. Some may say, well starting with C++, getting a few jobs, bla bla would be great, after that you have the fundamentals and you'll be able to learn anything. Others may say that about Java, or even JS. So i'm curious what would be the most popular answers in regards to this. THANK YOU! DISCLAIMER: This post is not so much about JavaScript, but more of how some technologies and languages are perceived by purists as being lesser, and wether or not there is truth to those opinions. [link] [comments] |
Compute the centroids of a cluster (Python) Posted: 31 Mar 2021 12:53 AM PDT Hello all 👋 It's been some time that I am stuck with this question : Imagine you have 2 lists (this is just an example the lists can have any values) datapoints = [(1, 1), (2, 2), (3, 3), (4, 4), (5, 5)] I want to use the list "classifications" to slice datapoints per cluster : datapoints_0 = [(1, 1)] to be able finally to compute a new centroid per cluster centr = [(1,1), (3.5, 3.5)] This is the result that I should get. Any idea how can I solve this please ? Thanks in advance BR [link] [comments] |
You are subscribed to email updates from learn programming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment