• Breaking News

    Sunday, August 1, 2021

    Learn something. Make something. learn programming

    Learn something. Make something. learn programming


    Learn something. Make something.

    Posted: 31 Jul 2021 06:06 PM PDT

    I just wanted to share a quick tip someone shared with me when I started my programming journey. It might help you if you're feeling discouraged or overwhelmed with the plethora of things that you have to learn in order to be a real programmer.

    First of all, programming is not about building things out of nothing. It's not magic. It's a process.

    Second, you don't have to be a genius or a brainiac to be a programmer. If a five-year-old child can build his/her own Minecraft mod, so can you.

    Third, when it comes to the amount of time it takes to learn something, everyone is different. Some get things right away, while some take longer. You don't have to be a fast learner. Instead, focus on being an efficient learner. Understand how you comprehend information. Learn to ask questions. Know what kind of learning styles best suit you.

    And finally, take your time. Seriously. I come across a lot of people who want to learn to program but rush through the fundamentals, thinking they understand everything, and then wonder why they can't remember to do something so basic. As I said, everyone is different, so don't be ashamed because a concept hasn't sunk in. It's ok. Keep at it and it will. And don't move on until it does.

    When you learn to build a house, you just don't pick up a hammer, wood, and nails and start building, do you? No. There are steps, things that you need to keep in mind. You need to have a plan. You need to learn how to pick up the fucking hammer.

    When you are learning, constantly ask yourself this one question: "Do I know this?" If yes, prove it. Make something, anything. If "no," relearn it and then build something.

    Learn something. Build something. That's pretty much it folks. Thanks for your time.

    Bonus: I want to recommend this terrific book about the learning process and how we can improve comprehending advanced concepts.

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

    How do I get started with Data Structures and Algorithms?

    Posted: 31 Jul 2021 07:13 AM PDT

    I want to learn DSA but don't know where/how to start

    Can anyone please suggest some (free) resources from where I can Learn it

    You can suggest some good Paid resources too but Not too expensive cause I don't have money :')

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

    List of free VPS/places where you can host your code for free.

    Posted: 31 Jul 2021 08:56 AM PDT

    These are the websites i've come across in my programming journey where you can host your code for free. Thought would share it with you all:u/

    1. AWS - you get 1 year of free EC2 server
    2. Oracle - gives you 2 AMD VM with 1 core and 1 GB of RAM each, plus up to four ARM VM with a total of 4 core and 24 GB of RAM, forever. Thanks for the suggestion u/pm-me-your-nenen! Click here to read their full comment with more info.
    3. Linode - they give $100 credit on joining & lowest tier is $5/mo. So you have 20 months free. As pointed out by u/TheRevTastic, free credit is only good for 60 days, sorry :(
    4. Heroku - lifetime free for 1 app. It is not exactly a full fledged server but rather a hosting place for your code.
    5. PythonAnywhere - lifetime free for 1 app. Again, just a code hosting place & not a VPS, but this time only for Python.
    6. Netlify/Vercel/GitHub Pages/Cloudfare - Good place to host static websites. Not exactly sure how many allowed in free tier. Thanks to the commenters for suggesting the latter 3!

    These are great for starting out into cloud hosting without paying anything, enjoy!

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

    What exactly is the difference between a js property and a js name?

    Posted: 31 Jul 2021 11:50 PM PDT

    I wanted to declare an empty object and add properties later.

    I found this example online:

    Object.defineProperty(object1, 'property1', { value: 42, writable: false }); 

    At first I thought this method was adding a name ("value" or "writable") to the object, but these parameters imply that they are two different things. I thought objects have just a name and a value, so what's the property part? I guess I thought name and property were the same.

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

    As a guy who recently started programming, how should I approach the learning to not give up quickly?

    Posted: 31 Jul 2021 04:28 PM PDT

    Hello reddit, desperate times call for desperate measures. I recently started learning C++ (first programming language) and I've hit a brick wall where nothing makes sense to me anymore. I rarely watch YT tutorials, main resource I use right now is this site https://www.learncpp.com/ . It felt great at the beginning, I did all the assignments very quickly and understood everything. Right now I am just stuck at the quiz in chapter 10. Arrays, pointers, enums are just something I struggle heavily with. I have clinical depression and coding was a great way to focus on something productive for me and I would really like to one day know even a little part of it. Why did I pick a hard sticky language like C++ as my first? Well, I like game development a lot, only part really that interests me a lot regarding programming. Maybe one day I could even work as a dev, but let's not focus on that. I just want to get motivation somewhere, do you guys know any resource that might be helpful for someone like me?

    I was looking for some quiet and beginner-friendly community to join in, maybe something along those lines. I don't go to any university and didn't do any courses previously. My motivation is at an all time low for coding and maybe I can get back into it and at least finish all chapters on this site that I am learning from. Books are super not my thing, even more so for something like programming (for me to learn, I need to do/write myself, can't really focus on books and rarely learn anything large from them). Thanks in advance for any help.

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

    How much Javascript knowledge is required to be a front end developer?

    Posted: 31 Jul 2021 11:03 AM PDT

    I started studying HTML/CSS/Javascript earlier this month and it seems like there's an infinite amount of knowledge to be acquired. I know there is no strict answer to my question and it may vary based on the company/person, but I want to know in general how much knowledge of Javascript is required to be employable.

    Can people with front end jobs go through The Odin Project with no issues? Or will they struggle on some projects? Would it be possible to gauge how much knowledge is needed to be employable?

    I'm struggling with the foundations section of The Odin Project (especially the project assignments) and cannot finish most projects without taking a look at someone else's code. I know I'm far from being employable, but I just want to get a general idea of what's required to work as a front end developer.

    It's not like martial arts, where a black belt in jiu-jitsu shows that you are a master at it. There's no belts in programming. Maybe certifications? Are they worth it? Are they valued to employers?

    How would an employer even test someone's knowledge in Javascript?

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

    Is there any websites, subreddits, discord servers or any place I can go to contribute to open source projects?

    Posted: 31 Jul 2021 08:58 PM PDT

    Looking for more projects to contribute to. I have experience with HTML, CSS, and JS

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

    HACKATHONS

    Posted: 31 Jul 2021 12:51 PM PDT

    So I'm doing btech computer science and I'm in 1st year. I get pretty nervous sometimes because everyone in my college is doing really great(happy for them), i get nervous because I'm not doing anything, I'm not that good in coding. I started doing competitive coding but left after doing it for a week. But now i really want to do something because i wasted my 1st year. I'll be in 2nd year next month and will do the best in it. Please suggest me something. How can i improve my skills? I'm not that good in coding, should i still participate in hackathons? Which is the best place to participate in hackathons?

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

    How does Single Responsibility Principle exactly work?

    Posted: 01 Aug 2021 12:06 AM PDT

    https://en.wikipedia.org/wiki/Single-responsibility_principle

    When reading about Single Responsibility Principle, the main things that stick out are:

    every module, class or function in a computer program should have responsibility over a single part of that program's functionality

    A class should have only one reason to change

    However I'm not confident in how to absolutely apply this concept in the correct way. The first point seems pretty straightforward. Define a class and narrow its functionality inherent to how it operates in the real world.

    Yet it's the second point that seems a little cryptic. What does it mean that "A class should have only one reason to change"?

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

    Any resources/tutorials for creating a chrome extension integrated with GMail?

    Posted: 31 Jul 2021 08:16 PM PDT

    Can't find many resources online but the end in mind is to create a chrome extension to schedule mails in GMail. This is mostly a learning exercise for myself but hoping to create an actual app in the near future! Thank you for any insights :)

    A similar app (but with much more functionality) would be Boomerang: https://www.boomeranggmail.com/

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

    I have spent hours trying to figure out why I am getting an error related to ejs, so now I am asking here because I am desperate

    Posted: 31 Jul 2021 08:11 PM PDT

    EDIT: problem solved!

    I added a new div with a for loop that creates columns with some dynamic values (why I am using ejs). Ever since I added this div the ejs file won't compile (even when I comment out the entire div). I am getting the error "SyntaxError: Unexpected identifier in <path to ejs file> while compiling ejs".

    So after hours of trying to debug and getting nowhere I was hoping someone could help me understand what is going on. Here is a link to the ejs file: https://gist.github.com/CleverFox137/28efe6475ec461b7c9edd7f18747ed45

    Here is a link to the app.js file: https://gist.github.com/CleverFox137/a898ab36166c670e892931fc6461d87b

    One note, if I completely delete the new div I am trying to add and change the arguments for the line res.render('forecast.ejs', {city: city, currentTemp: currentTemp, days: days, dayTemps: dayTemps}); to res.render('forecast.ejs', {city: city, currentTemp: currentTemp}); the code starts to work again.

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

    How to deal with low attention span?

    Posted: 31 Jul 2021 11:45 PM PDT

    Even with things I enjoy like gaming or watching movies I can only sit down and look at the screen 1 hour max at a time before I have a smoke or have urges to do something else. I haven't had a job and I know people usually work 8 hours a day so I am wanting to improve on my low attention span for the future when I do start working.

    Oh yeah and I either want to be a software developer or engineer so I'm teaching myself web development currently but have troubles trying to sit in front of a screen for more than 30minutes. So it would be good to hear from anyone how they deal with low attention span as a programmer.

    Thanks in advance

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

    Can I declare js object names without assigning values?

    Posted: 31 Jul 2021 11:35 PM PDT

    I wanted to do something like:

    let card = { "display":, "value": } 

    And assign values later on in the program.

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

    I'd like to build my dad a small ecommerce website for his hobby/business. I'd like to build it using MERN but I've never made a full website before and have have a couple of questions before I get started!

    Posted: 31 Jul 2021 10:04 AM PDT

    Hello! As mentioned my dad has a small art business he uses to generate money on the side (mostly it's his passion and he really is a wonderful artist). I want to build him a small ecommerce site using MERN but this would be my first legitimate website and I have a couple questions first.

    1. First I looked into a few website building services like weebly, but was incredibly disappointed with the lack options and would like to be able to actually add my own html, css, and js. Are there any services that are *cheap* and allow me to edit a template website so I can save time on the 'base' website foundation?
    2. While I have done front end and back end, I have never added a payment system to a website, and doing so makes me reaaaaally nervous. I don't want to make a website for my dad and have there be some kind of info hack or payment issues. For this reason alone I'm hesitant to start.
    3. While I think MERN would be a good choice, I'm still very new to coding and I was wondering if you had any other recommendations as far as good software for a small ecommerce site.

    These are the first of my questions before I really delve into this project would it would mean a lot to both me and my pops if you could help me out! :)

    Thank you!

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

    Loop Iterations

    Posted: 31 Jul 2021 11:18 PM PDT

    Thank you in advance for your help.

    I am getting crushed in my quizzes with these types of questions below and I'm struggling to understand. How can I figure out how many times the following loops will iterate:

    1. Set k = 1
      While k<=5
      Display k
      End While

    2. For j=1 to 5 Step 2
      Display j
      End For

    3. Set k=1
      While K>5
      Display K
      End While

    4. Set k=1
      Do
      Display k
      Set k=k+1
      Until K>1

    I genuinely am not just looking for the answers. I am looking for the conceptual understanding of how to figure these out. Thank you again for your help!

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

    How do I display decision variables using the mip library (Python language)

    Posted: 31 Jul 2021 11:11 PM PDT

    I am using the traveling salesman example from https://docs.python-mip.com/en/latest/examples.html to develop my inventory routing model. The model works fine, but how do I display other decision variables. I am using VS Code

    model = Model() F=[[model.add_var() for t in col] for i in row] U=[[model.add_var() for t in col] for i in row] # binary variables indicating if arc (i,j) is used on the route or not x = [[model.add_var(var_type=BINARY) for j in V] for i in V] # continuous variable to prevent subtours: each city will have a # different sequential id in the planned route except the first one y = [model.add_var() for i in V] # Quantity delivered to retailer i at month t Q=[[model.add_var() for t in col]for i in row ] # starting inventory at retailer i in month t I=[[model.add_var() for t in col]for i in row ] # objective function: minimize the distance model.objective = minimize(xsum(c[i][j]*x[i][j] for i in V for j in V for t in col)*f +0.5*h*xsum(I[i][t-1]+I[i][t] for i in row for t in col) +xsum(U[i][t] for i in row for t in col)) # constraint : leave each retailer only once for i in V: model += xsum(x[i][j] for j in V - {i}) == 1 # constraint : enter each retailer only once for i in V: model += xsum(x[j][i] for j in V - {i}) == 1 #subtour elimination for (i, j) in product(V - {0}, V - {0}): if i != j: model += y[i] - (n+1)*x[i][j] >= y[j]-n #Stockout constraint for i in row: for t in col: model +=I[i][t]>=0 #Distributor inventory must be able to satisfy the demand for t in col: for i in row: model +=xsum(Q[i][t] for i in range(1,13))<=I[0][t] #Starting inventory level in first period for i in range(0,13): model +=I[i+1][0]==H[i] #Delivery quantity must not exceed vehicle capacity for i in row: for t in col: model +=xsum(Q[i][t] for i in row)<=VeCap #Retailer maximum capacity constraint for i in range(0,13): for t in col: model+=I[i+1][t]+Q[i+1][t]<=MaxCap[i] #Inventory level at retailer i in month t for i in range(0,13): for t in range(1,5) : model +=I[i+1][t]==(I[i+1][t-1] + Q[i+1][t] - F[i+1][t]) for i in range(0,13): for t in col: F[i+1][t]+U[i+1][t]==D[i+1][t] for i in range(0,13): for t in col: Q[i+1][t]>=0 F[i+1][t]>=0 U[i+1][t]>=0 # optimizing model.optimize() 

    Thank you in advance!

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

    Pattern validating springboot form, reg exp failing but seems right to me.

    Posted: 31 Jul 2021 12:17 PM PDT

    I just added pattern html validation to a form and one of the field inputs for 'name' isn't working correctly as the error message is being displayed even when I type in a (I think) valid name.

    Image:

    Code:

    <label class="col-4 col-form-label">Name: </label>
    <div class="col-8">
    <input type="text" th:field="*{name}" class="form-control" required minlength="2" maxlength="20" placeholder="Name" pattern="/^[a-zA-Z\s]*$/; " title="Full name should contain letters only."/>
    </div>
    <span th:errors="*{name}" th:if="${#fields.hasErrors('name')}">Please enter your name.</span>

    submitted by /u/Ambi-Phoenix1
    [link] [comments]

    How can I start learning code with documentation?

    Posted: 31 Jul 2021 10:30 PM PDT

    I'm a beginner/junior programmer and I want to learn to code with documentation, but I find it very tiring and laborious. Any tips or advices to learn with documentation? And also, if you can recommend me any site that has good practice exercises it will helpful too.

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

    Newbie to Flask

    Posted: 31 Jul 2021 01:03 PM PDT

    I am trying to make a website where when the user clicks a button, the python code in the backend sends a file, preferably a video, which the user can then download.

    I am not able to figure out where to look for any help...

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

    Best Coding Bootcamp That Actually Lands Jobs?

    Posted: 31 Jul 2021 08:35 AM PDT

    Hey! I am currently moving to SF and wanted to see if people had any experience with good Bootcamps? Maybe as a recruiter or as a student. Just anyone who has interacted with a Bootcamp and would recommend it to actually land a job.

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

    Is there spring framework subreddit?

    Posted: 31 Jul 2021 09:16 PM PDT

    I really want to learn from other programmers in such a subreddit if there is any. Kindly share the link to it or similar subreddit

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

    What is a good programming software for JavaScript?

    Posted: 31 Jul 2021 09:01 PM PDT

    I first went to college for computer science because I thought programming was cool and an ASVAB test said that was the best option for me. I was learning on Netbeans until loops absolutely murdered me. Now I'm looking to get into it on my personal time and be self taught and try to find a job that way. I'm sure Netbeans is probably outdated by now and a new, better software is out there. The only other one I know is Python, but I'll let reddit decide my fate.

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

    What programming language to learn as a beginner? I have learned a few in college but need to learn something new as a required assignment

    Posted: 31 Jul 2021 05:03 PM PDT

    As a college assignment, I have been asked to learn a new thing that was not taught to me during my course. So far, I have learned HTML, CSS, JavaScript, Node.js, jQuery, Bootstrap, WordPress. I am not sure what I want to learn next.

    Some options are Python, Ruby, Java, Tailwind etc. It can be anything that is related to development and my task is to try to create something with it. Maybe a small game, or a simple 'Hello World' project.

    I have heard a lot about Python and that is something definitely on my list to learn. But I would like to ask the community here if there is anything else that I should invest my time in that will be more productive in my career.

    I am currently studying to become an interactive media designer that would involve working with 3d, Graphic Design, UI/UX and Web Development. Keeping this in mind, what is something that would really help me in my design/development career.

    I would really appreciate if you could share some links to tutorials or projects that I can follow to learn along the way since I have no clue where to start.

    Looking forward to your replies.

    PS: This is my very first post here so I apologize for any errors.

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

    Looking for ideas on essentially a macro to take text input and use that to open some webpages.

    Posted: 31 Jul 2021 08:47 PM PDT

    I think I'm asking the right kind of question here but I'm new to this sub.

    I'm trying to learn Korean and it would be super helpful for flash cards if I could type in a word and multisearch for its pronunciation, google images results, etc. I've seen assorted old iMacros and nonworking extensions to do it but I'm on pc. If only I could make the whole thing in scratch! I have some experience with javascript from a class I took but I'm wondering if anyone knows a good tool for doing this or any good resources to look at to make my own script for it.

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

    No comments:

    Post a Comment