• Breaking News

    Friday, August 27, 2021

    Please don’t hate me… learn programming

    Please don’t hate me… learn programming


    Please don’t hate me…

    Posted: 26 Aug 2021 12:55 PM PDT

    Edit: wow. I wrote this before going to sleep and up to lots of kind comments and a reward. Thank you so much. I'll read through and respond today. For those who asked, my previous career was being a pilot. I worked for an ultra low cost airline before going into dev work. I left because the steep pay cut and circumstances left me living in a tent, and my colleagues just didn't seem to care about being careful COVID wise, so I didn't feel safe. Management didn't care.

    I know a lot of you are currently looking for work as a dev, I was one such person.

    I finally got my first job as a junior, turned out to be a dodgy company, so I quickly re-applied and got another offer from a much much much better company, for whom I'm working now.

    People are great, the ethics seem great, the workflow is modern and the stack is exactly what I wanted to work in.

    But I just don't enjoy it. I've never done an office job before and I'm finding it incredibly tedious.

    When I code my own projects however, I'm having a blast. So much fun. I love to build my own things and to slowly add one or two new tools or something each time I do it.

    I guess in the end I'll have to go back to my previous career, which I loved but couldn't stay in during the pandemic for personal reasons.

    Sometimes dev work is not for everyone, and that's ok I guess. I love coding, but I don't love doing it for a living.

    In the meantime I'm going to learn as much as I can from my current job and try to be an asset as much as possible until it's time for me to leave.

    Sorry had to vent a smidge

    Tldr: I realised I like to code but not to do it professionally after landing a dream job

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

    Which DB should I learn? MySQL or PostgreSQL

    Posted: 26 Aug 2021 06:42 AM PDT

    I'm learning python and I want to start learning about databases.

    Which database should I start with? MySQL or PostgreSQL?

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

    Is there a program to code in that also acts as an environment to learn programming?

    Posted: 26 Aug 2021 06:25 PM PDT

    I've been trying on and off for probably years now to try and learn programming and can never find myself focusing on courses cause my mind would just wonder off. I also have a problem with maintaining what I've learned. Is there a program that allow's you to program but also can train you for different languages at a learn as you go pace? Or any ideas to help solve my problem i know everybody learns a different way and has anyone had a similar situation like me that they found a solution for?

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

    My experience using codeacademy

    Posted: 26 Aug 2021 07:31 PM PDT

    Hello all,

    Two months ago, I decided to pay the codeacademy pro subscription. It costs me $250+ and here are my thoughts of it:

    1. It is accesible in any pc, including the one of my job which I have some internet limitations. Also, I can use my phone to study concepts.

    2. Easy to understand. Codeacademy has a lot of resources such as articles, videos, book chapters, forums and a discord server. When I have some doubts, people in the community helped me a lot.

    3. Exercises. They use some step by step exercises when you can see how are resolved and you can do some testing. If you are stuck, they have the solution. Some exercises or projects are individual and without any help. But you can get some explanations thanks to discord or forums.

    4. Structured careers. I love how they have some paths to be a X engineer. They have syllabuses that are well designed.

    5. You can advance at your own time. No homework projects with due dates.

    The only cons are the prices.

    I took Full Stack Engineer and I am at 31% of the course done. I am proud of me because I am too lazy and they motivate me to continue.

    By the way, I am too bad in CSS and JavaScript to modify the HTML/CSS (but not the language)

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

    We made a community to make open-source project contributions fun and easy

    Posted: 26 Aug 2021 10:40 PM PDT

    Contributing to an open-source project is one of the most useful things you can do while getting started with your career but there is such a lack of resources out there that most beginners find it hard and intimidating to even get started.

    So we decided to build a community to help folks who knows a programming language and git to contribute to open-source and make their resume and GitHub look better. In short, a place for us intermediate programmers, who are good enough to tackle any tutorials, but not enough to be employable, to upskill ourselves.

    Why contribute to open-source?

    • You get to learn the best practices and tools from the code written by expert programmers.
    • It makes your portfolio stand out since some recruiters look out for this.
    • It's better than doing personal projects since these are projects that have real-world implications.

    If this interests you, join our discord and introduce yourself! :D

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

    best way to retain what i learned?

    Posted: 26 Aug 2021 08:37 AM PDT

    i've always felt comp sci was a little odd in that i can't find the most efficient way to retain what i learned as i'm reading the textbooks or watching the tutorials.

    with cs, i hand write example programs until it's perfect, until i've remembered everything. then when i put it into practice it's memorized and it's easier for me to problem solve.

    but i feel like that's inefficient. it takes forever. but if i don't hand write it like that, i feel like when i go to practice problems, i can't remember exactly what i read, i'm going back to reference over and over, my understanding is lacking.

    so how do you guys retain what you teach yourself?

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

    How do I stop brute forcing it

    Posted: 26 Aug 2021 11:21 PM PDT

    I have a habit of not thinking and just brute forcing my code through guesses, what steps do I take to stop doing this as my first option

    How do I train my mind to think critically?

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

    This is really hard

    Posted: 26 Aug 2021 08:13 AM PDT

    I just recently started learning programming because in design and computers and im learning html and css and this stuff is super hard. I plan on learning C++, C# and Python but seeing as I'm already having trouble learning something as basic as HTML is really frustrating. I'm using sololearn and code academy because I don't have alot of money to spend on buying big budget stuff. If there are better resources you know of and if you can help make me feel better I'd appreciate it.

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

    What you need to know to develop your first Web Scraper

    Posted: 26 Aug 2021 07:20 PM PDT

    The quick guide to getting started in Web Scraping with javaScript

    On the Web, we can find an immense amount of very useful data that we can use, but it is disorganized. If we want to take advantage of this, we would need to make a great effort and spend many hours extracting and sort it. A Web Scraper could solve this task.

    Its main objectives are:

    • Recognize HTML site structures.
    • Extract and transform contents.
    • To store data.
    • Extract data from APIs.

    What knowledge do you need to have to get started in web scraping?

    There are four key points that we must master to be good web scrapers:

    1. Knowledge of web development: Web scrapers work by selecting HTML selectors so, we need to know the HTML structure.
    2. Knowing how to work with the DOM: This implies being able to move within its nodes and elements, as well as being able to modify them.
    3. Knowing how to use the element inspector of the browsers: To find an element within a website, we use the element inspector and the JavaScript console provided by the browsers.
    4. JavaScript and Node js skills: To access the DOM, We use JavaScript code, and we may also need to know how to make GET and POST requests.

    As you can see, we will be using JavaScript to develop our scripts. However, more languages allow you to do the scraping, such as PHP and Python. For JavaScript, there is a library called Puppeteerjs that I think is the best for this. In addition, it is developed by and fully supported by Google.

    The Web Scraping process

    In short, this would be the general process for web scraping:

    • Identify the target website.
    • Collect the URLs of the pages from which you want to extract data.
    • Make requests to these URLs to get the HTML of the page.
    • Inspect the HTML returned by the site to collect the data.
    • Save the data in a JSON or CSV file or some other structured format.

    These would be the main steps to follow for this technique. However, during development, there are many more challenges that need to be solved.

    For example, keep the scraper if the design of the website changes, managing proxies to avoid banning problems, the appearance of captchas, etc.

    Example of how to scrape Amazon below

    https://medium.com/geekculture/what-you-need-to-know-to-develop-your-first-web-scraper-7522e6f12b2a

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

    How to code object classes and architect like professionals?

    Posted: 26 Aug 2021 08:30 PM PDT

    TL;DR: need guide to writing pro level OOP in python

    I just gave a short coding interview for the first time and completely failed. My background: I did electrical engineering in college and took only programming 101 type courses, hence I never took hardcore CS courses like programming languages or operating systems. I don't even know the difference between a compiler and interpreter, meh.

    The interviewer was showing me his existing code base, which was a few hundred lines of a lib that he uses to make API calls to financial APIs and then stores them in MongoDB. But the code heavily uses class objects that he wrote and was very complex for me, since in every file, he was importing 5-10 objects from other files and then using those objects to save the data. I don't even know how to write a python package so that you can import it like those pip packages, so I couldn't even find the lib files.

    And the worst part was, I kept tracing back the one object to another, and then tried to make sense of the inheritances, but I just couldn't make the code work.

    Which brings me here, asking you folks: how the fudge do I learn that level of OOP-fu? because I do know the basics of OOP from some books and youtube vids, but it seems that I can't architect efficient code bases. There's obviously a reason why professional programmers use loads of objects instead of just writing some static functions like I do. Would love to learn the pro way.

    Any advice and link to resources will be highly appreciated, thanks!

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

    C# or Python for business apps?

    Posted: 27 Aug 2021 12:10 AM PDT

    Hey!

    is it better to use C# or Python for business apps? By business apps I mean for example time off app, helpdesk app etc. All of these apps are connected to SQL.

    Thank you for all answers

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

    What are the most exciting Computer Science career tracks?

    Posted: 26 Aug 2021 09:09 PM PDT

    TL;DR What are some of the most interesting, impactful, exciting careers in programming?
    Something more on the intellectual side of things and that is also viable career-wise.
    Jobs for someone who enjoys some brainwork, i.e. to clarify what I'm saying, I'd be much more interested in doing Back-End logic as a Back-end Developer, rather than updating HTML using a DOM tree and bothering how the page looks as a Frond-End Developer. Hope that makes sense.

    The fields I consider: Embedded Development, Data Science

    So far I'm quite good at using Python, Ruby, Javascript. Doing quite a lot of automation using Python.

    I'm studying Computer Science at university. I'm currently taking a class on algorithms and data structures. Which I find very interesting, I really somewhat enjoy learning algorithms and data structures. The last things I studied were Trees and the breadth- and depth-first search algorithms for them. It was very interesting learning a new way to solve problems like that, and immediately having a lot of ideas in the head as to how this could be used in real life, even in my previous programs. Looking at both old and new problems from a different perspective already.

    At the same time, I'm learning Web Development. I don't think this is the career I dream of. It doesn't look that exciting to me, being a Web-Developer for some mediocre e-commerce shop. I know, it makes people's lives more convenient, but I'm not sure I'd be proud of myself enough if I ended up in this career.

    Nevertheless, it's quite interesting learning it, and I'm still looking into it. Because it's very versatile. It is the best way to share something. For example, if I make some cool program, I can make a web application for it and show it to my friends. How cool is that? Plus, there are plenty of jobs, and it's probably one of the best options for starting a career.

    So in the end I don't really know what direction I want to go in.

    I don't know what kind of answer I want to hear, probably just some advice, some insights, some more options to either consider or avoid. Whatever it's going to be, I would appreciate it a lot!

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

    What's the best source or the best way for learning React?

    Posted: 26 Aug 2021 06:48 AM PDT

    I recently tried lot of YouTube tutorials where always at some point YouTuber forgets to explain some stuffs or I fail to understand so I get stuck in between. I'm not getting a proper source anywhere.

    Note: I'm not beginner for programming, have worked on lot of trending technologies from couple of years

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

    Need to Interview Mobile App Developers for a Research Paper (Help us Graduate) :)

    Posted: 26 Aug 2021 10:58 PM PDT

    Hello everyone! I am helping my friend on her legal research for her Masters Degree. She is working on a research on legal protection of mobile apps. She needs to interview Mobile App developers or people who are in the Mobile App industry on that matter.

    Is there anyone willing and available to answer few questions and help us?

    Any lead or help is greatly appreciated :) Thank you!

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

    How does Fibonacci sequence work memory wise? As in, bytes in an int per call?

    Posted: 26 Aug 2021 08:00 PM PDT

    So an int is 4 bytes... the first few calls will be 4 bytes each. How do I figure out how much memory the sequence would use at any x number?

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

    Method for working on personal projects, web app, full stack.

    Posted: 26 Aug 2021 10:11 PM PDT

    I've been experiencing difficulties in staying focused on a single personal project while I'm doing it. I tend to rush to code and when things get boring I get bored too and sometimes I drop the project. I don't feel ok with that and I would prefer to finish it, for a number of reasons. So being more specific I recently worked on 3 projects (full stack; frontend: 2 react + redux, 1 plain html; backend: 1 django, 1 django with rest framework, 1 nodejs - express). I feel like I miss a path to follow. So I'm asking for advice here: how do you plan the project? You plan the api points and then build the frontend? Or do you implement chunks of frontend and backend together? How much time do you spend in planning and how specific is your plan? You can you take advantage of git/GitHub in this?

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

    I am having trouble wrapping my head around Magic Methods with Python

    Posted: 26 Aug 2021 09:59 PM PDT

    Problem:

    The provided code is trying to add together 2 BankAccount objects which should result in a new object with the sum of the balances of the given accounts.

    Fix the code to make it work as expected and output the resulting account balance.

    Class BankAccount: def __init__(self, balance): self.balance = balance a = BankAccount(1024) b = BankAccount(42) result = a+b print(result) 

    this problem is from an app on my phone and they did a terrible job of explaining things and I cant figure it out.

    submitted by /u/kill-yourself90
    [link] [comments]

    Is it possible to create RC car and control it with code writen in Java ?

    Posted: 26 Aug 2021 01:36 PM PDT

    Hello everyone,

    First I would like apologize if my question is in the wrong subreddit, as I do not know where to exactly post this.

    So my question is extremely but very very very stupi*.

    Lets say I create a RC car with Raspberry Pi (I have wheels that are controled with servos,antena,battery (all necesary stuff to make car go vrrrrr) etc...), is it possible to create and write its behaviour ( go forward, turn, go back etc...) by using Java ? lets say I have a gamepad and I push the left stick forward as to make the RC car go forward, is it possible to do this whole logic and behaviour with Java ?

    Because I know that you can tell Java to use your webcam to capture images,videos etc.. so I thought that if this is possible then creating RC cars must be possible too.

    I know that something like this must be possible, because a software firm nearby has a security system where you use cards to enter/leave building completely writen in Java.

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

    C++ or python for my project?

    Posted: 26 Aug 2021 07:41 AM PDT

    Hey guys,

    I'm looking to make some automation software mostly for myself, but may one day like to release it as a functional program people can use. Currently I mostly use C# however that's garbage for AI, and it's .NET frameworks are kind of clumbsy as they never really decided what to do. (Just my opinion)

    I need a language I can use AI in (both deep and genetic algorithms) as well as easily hook mouse / keyboard events, as well as control them. (To my understanding there is a difference between simulating controls and sending control signals, i believe autoit simulates making it not work in some instances.) Also I used a lot of multi-threading in C#

    I have used autoit, which is okay but can't do all I want. I have dabled in python for deep learning, but don't really like the python environment. I have never used c++ but was considering it as it's statically typed. I realize there is a lot more to manage in it like memory. I also need to be able to make a gui. I was thinking maybe a node style gui.

    I have done a lot of googling but a lot of answers come down to people saying go with what you are comfortable with. I know I am not very comfortable with python, but can I do everything I need in c++. Do I need to use both for deep learning? python more of an access language for things like tensorflow and c++ for the rest? There is just so many search results that don't seem to give me any insight into which way to go.

    I literally know nothing about c++ aside from all it's libraries are 3rd party basically. So if anyone has experiance in either AI or automation or both. Any and all insight would be very helpful.

    if the best answer is to try things and see which I prefer, could you at least include your own preference and why?

    Thanks in advance.

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

    Ive been stumped all day. I am new to coding and I cant seem to figure how to save the data that goes into the input. I want to check the data from the input so that if its correct the for loop moves onto the rest of the arrays but I cant even get the information saved what am I doing wrong?

    Posted: 26 Aug 2021 11:00 PM PDT

    var clickBtn = document.querySelector("#btn") function quizQuestions() { var createAnswer = document.createElement("div") var questions = [ "Is this a for loop? ", "random prompt" ] var answer = [ "for(i=0;i < questions.length;i++)", "random question.reply no" ] var response = [ "yes", "no", "yes" ] for(i=0;i < questions.length;) { var createQuestion = document.createElement("div") createQuestion.innerHTML = ("<p class= 'qDesign quiz prompt'>"+ questions[i] + "</p>") var showQuestion = document.createElement("div") showQuestion.innerHTML = ("<p class= 'qDesign quiz prompt'>"+ answer[i] + "</p>") var createAnswer = document.createElement("div") createAnswer.innerHTML = ("<input type='text' class ='qDesign quiz answer'></input>") var submitAnswer = document.createElement("div") submitAnswer.innerHTML = ("<input id = 'randomId' type='submit' class ='qDesign submit'></input>") var hint = document.createElement("div") hint.innerHTML = ("<p class= 'align'>Type Yes or No.</p>") document.getElementById("add-question").appendChild(createQuestion) document.getElementById("add-question").appendChild(showQuestion) document.getElementById("add-question").appendChild(createAnswer) document.getElementById("add-question").appendChild(hint) //this var is useless right now var savedAnswer = document.getElementById("add-question").appendChild(submitAnswer) savedAnswer.addEventListener("click",function(){ var theAnswer = document.getElementById("randomId") console.log(theAnswer.textContent) // if (savedAnswer.textContent === response[i]) { // console.log("this works") // i++ // quizQuestions() // } }) //this didnt work console.log(savedAnswer.textContent) return; } } function generateQuiz() { clickBtn.style.display = "none" quizQuestions() console.log("The button was pressed") } clickBtn.addEventListener("click",generateQuiz); 
    submitted by /u/itsMillerGaming
    [link] [comments]

    How to implement SKU?

    Posted: 26 Aug 2021 10:58 PM PDT

    Hello,

    I am coding online shop, and I have to implement SKU (stock keeping unit). It has to be unique for every product, but if you add another product that is same as one in database, then sku should be same, too.

    How to implement that?

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

    Experienced backend Dev but want to make an app... Where do I start?

    Posted: 26 Aug 2021 02:09 PM PDT

    Hi,

    Sorry if this is the wrong sub :/

    I've got a few years professional experience as a python API developer so I can code. But I've had an idea of an app that I'd prefer was mobile (I could easily make a Django web app but that doesn't really suit my needs). I am an Android user but I don't want to limit any potential users. Is it better to just go Android, and develop iOS later; or to try and use something like flutter(?) and make it work on both?

    And also where do I start trying to develop a front-end app?! I've tried googling but there are hundreds of "the best course"s and I guess I need to know which language to aim for too...

    Any help much appreciated :) Thanks in advance!

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

    Fear of dealing with money on website (payments, etc.)

    Posted: 26 Aug 2021 09:08 AM PDT

    Hello everyone.

    I wanted to ask for an advice what should I do in my situation. I have created few websites, all of which didn't have any money involved in them. (payments, etc.) I'm just afraid that I wouldn't make it safe enough or that something would happen and I would be responsible for somebody losing their money. Like for example I'm afraid to create some eshop website for this reason.

    Is this fear justified? Did anybody felt same way?

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

    How do self-driving cars control components of the car?

    Posted: 26 Aug 2021 01:31 PM PDT

    For companies that build self-driving cars, how does firmware work to control things like the acceleration, steering, brakes, etc? Do they have to write the entire OS for the car in a language like C++, then use C++ to write the firmware to control hardware that is available via the OS? In other words, if you have components you need to control (brakes or the electric motor, for example) do you have to write your own OS to get access to these components?

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

    No comments:

    Post a Comment