• Breaking News

    Monday, November 25, 2019

    First week of programming, am I the exception or the rule learn programming

    First week of programming, am I the exception or the rule learn programming


    First week of programming, am I the exception or the rule

    Posted: 25 Nov 2019 04:59 PM PST

    Hi hows it going? I am 23 years old from Northern Ireland, due to my bad upbringing I have not had many opportunities (waaa boo hoo) coupled with a self pitying mindset for a while I am basically stuck with no decent education or prospects. I am not dumb (or I hope I am not) and have decided to dedicate myself to learning to code. Before I start I don't just think "Hey i will do coding for a couple of years then make 100k starting salary this will be easy" I understand I have ALOT of hard work ahead of me and I might not even have the capabilities. I am not good at mathematics, despite not classing myself as uneducated I don't have a good education and only a moderate Computer skill set compared to the average non IT person. What I do have though is a drive, this is my last chance at a decent life, I don't have the opportunity at university due to needing to help my gran financially. I kind of went off track here but basically is my learning speed normal? I only started learning Python 2 days ago through Moshe tutorial, but I find myself starting every two seconds after he does every tiny thing when it is implied I should have that bit down instantly as I go along. I find myself not understanding even the most basic of things after doing them and don't find myself truly understanding. Like I still don't get why some things need parenthesis and some need quotes and mix and match, and that seems like something you should retain instantly. I feel like the kid in school while everyone else is doing algebra I am trying to find out what × and + means. Sorry if this sounds self pitying that is not what I am going for I am more just asking is this normal, I have a huge fear I get 12 months down the line and I haven't retained anything and I am just not clever enough and I should have spent that year doing an apprenticeship at a building site. Not saying you don't need to be clever to work at a building site if it comes of that way.

    Thanks

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

    Automate The Boring Stuff, or Python Crash Course?

    Posted: 25 Nov 2019 02:51 AM PST

    I am a new Python programmer. This is self taught. I myself have a Computer Science degree that I'm following now in the Netherlands and am currently in my second year at a school required internship at a company. I have recently done PHP and Laravel projects (for the company) and JavaScript projects and such at school. Right now I have free time that I'm willing to spend to learn Network Security and Linux like stuff. But next to that I also want to learn Python, and before dedicating time I want to make sure that I am choosing the right book.

    What are the main differences between the book, which one is better suited for me to learn Python with experience in other languages?

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

    Is their a self taught path to learn Java Software Engineering similar to FreeCodeCamp has for Web Dev?

    Posted: 25 Nov 2019 04:24 PM PST

    Is their a self taught path to learn Java Software Development similar to FreeCodeCamp? Thanks

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

    Developing coding as a Hobby

    Posted: 25 Nov 2019 10:49 PM PST

    Hi there I am student studying a subject not related to coding ( Economics) preparing to get a job in field also unrelated to coding ( adminstration service). But I like coding, we learned a bit of Visual Basic, C ++ and HTML in high school and I was one of the quickest learners in the class. I am planning to take up a MOOC course next year as I have about 4 months of free time then, you someone recommend a course and language for this hobbyist.

    Ps: I am not taking up coding as a profession ( most probably), but nobody hates some extra cash by doing freelancing in free time. Thanks

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

    Help with learning copy constructor

    Posted: 25 Nov 2019 05:19 PM PST

    C++. I just read learned about copy constructors and I wanted to code a short program to see if I understood the concept. The code is below. When I tried to copy obj into obj2 and output it, all it displays is zero. What should I improve in this code?

    https://onlinegdb.com/rkwO6ecnH

    submitted by /u/2kfan
    [link] [comments]

    Help running a program

    Posted: 25 Nov 2019 10:44 PM PST

    Hi, Can someone please help me out with understanding how to run this? I have 0 coding experience.

    1. Do I need any specific programming skills to run the script?

    2. What software do I need to run it

    3. Is it possible to use this with limited programming experience?

    https://github.com/fredbenenson/lunch-roulette

    Thank you !

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

    Need Help With Percentages in Dice Array

    Posted: 25 Nov 2019 05:36 PM PST

    #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <iostream> #include <ctime> int main() { int dice[100000] = {0}; int rolls[6] = {0}; int i; int totalrolls; srand(time(NULL)); printf("How many rolls: "); scanf("%d", &totalrolls); for (i = 0; i < totalrolls; i++) { dice[i] = (rand() % 6 + 1); rolls[dice[i] - 1]++; } for (i = 0; i < 6; i++) { printf("%d was rolled %d times (%d).\n", i + 1, rolls[i], rolls[i] / totalrolls * 100); } return 0; } 

    I'm trying to make a program where it takes in a number of rolls for a dice and then calculates the percentages, average, and standard deviation. This is all that I have right now because the percentages are not displaying correctly. Any help?

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

    Can´t use cs50 C library on Windows?

    Posted: 25 Nov 2019 10:53 PM PST

    Hello,

    i try to do the example from the cs50-course with my gcc c compilter - but i am not able to include the used cs50 library from the example.

    This is my code: https://justpaste.me/ZUgG

    Then i want to compile the program and cs50-libraray with: https://justpaste.me/ZUgk (i downloaded the cs50-files from https://github.com/cs50/libcs50/tree/develop/src )

    But then i get a huge amound of errors in the cmd window - what is here wrong? https://controlc.com/0342d99a

    What is here wrong? Thanks in advance for your support...

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

    C# question

    Posted: 25 Nov 2019 10:52 PM PST

    Hey guys I'm newish to programming and am currently learning c#.

    Few related questions

    1. If I'm returning a number from a method which way is better

    Int answer = num1 + num2; Return answer;

    Or

    Return num1 + num2;

    1. If I'm outputting to the console

    Int answer = num1 + num2; Console.writeline(answer);

    Or

    Console writeline(num1 + num2);

    Thanks

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

    How long before qualification to make money?

    Posted: 25 Nov 2019 10:29 PM PST

    I'm a freshmen in college. Aside from classes I have tons of free time. I'm somewhat a beginner in programming with basic Java knowledge.

    If I put in 15 hours a week for one year and really grind it out, what would I be looking to earn by the end of the year?

    I heard somewhere that 15 hours a week for six months is enough to make you ready for the workforce.

    What kind of jobs/internship positions would I be qualified for?

    I really hate this feeling of spending all this money and not making it back. Also, it's my parents hard earned money and I cannot bear to continue doing this while I non-schalantly take these laid back courses that can barely practically teach a language over the course of a year.

    submitted by /u/19keyaswt
    [link] [comments]

    I've jumped from language to language for maybe 1-2 years now. I know the basics in a couple of them, such as loops, variables, if statements, etc.I don't consider myself a complete beginner and I was thinking about focusing on Java. Where should I go to now to learn without having to relearn stuff?

    Posted: 25 Nov 2019 10:07 PM PST

    Some of the languages I used were Python, JS, Java, C, C# (Mainly in Unity though), and probably a few others I can't remember at this time.

    When it comes to learning the same things again, I have very little patience. When it comes to new things or even things I forgot, I can easily pay attention. Overall, I just want a good learning resource for Java that doesn't focus only on the beginner topics.

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

    How could I go about doing this? Is it possible?

    Posted: 25 Nov 2019 06:12 PM PST

    Hi,

    So this question is not a request for you to provide some code for me. I just have a general idea of a project in my head and I'd like to know if a) it's possible b) what programming tools I could use to do it and c) how difficult you think it might be.

    As a guideline, I am a beginner level programmer in R (mostly statistical stuff), Python, VBA and SQL (one introductory class in each in university a few years back).

    My idea is this: I would have some form of database containing short texts. These texts could be grouped by various keywords in different categories. Let's say they're films and a short summary, so they would be associated to a genre, a director, different actors, country, etc. I'd like to be able to then ask the program to, for example, give me all American films from 1977 in the database, sorted by director and then for the program to produce perhaps a PDF file of the list with some decent formatting. Ideally, I'd then like to host the whole thing on a website where people could search and produce documents by themselves, according to their criteria.

    Now I'm really straying into imagination here, but would it be possible to use LaTeX, SQL and Python together to do this? Can you think of other programs/languages that would lend themselves to do this? If you have ever done something similar, I'm open to any suggestions and don't hesitate if you have any questions.

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

    What do you think about this Python bundle?

    Posted: 25 Nov 2019 07:43 PM PST

    Hi guys I've started to learn Python and it quickly has become my favorite programming language, now I'm trying to improve my skills and I've been searching for more advanced books. Then I want to know what do you think about the next bundle:

    https://www.fanatical.com/en/bundle/python-bundle

    Also if you can tell which are the best books of it or the best ones to start reading I'll really appreciate it. Thanks for your help.

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

    For .net core where should I be putting in database calls? I want to put it in it's own service but I believe that is an antipattern here.

    Posted: 25 Nov 2019 06:28 PM PST

    So I have my controllers, I like them nice and thin where they are just focused purely on the API.

    I have my models that define exactly what properties they have.

    But where should I be putting, following .netcore standards, the database invocations? I am a fair bit weary of just putting all of these database invocations in the model. Especially because they are elasticsearch database invocations rather than entity framework.

    Like I like my methods small, very very small testable and kept in their own pretty service and far away from everything gelse.

    How are people normally architecting this solution here?

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

    [Python] Python program runs fine on 16GB laptop, gets killed on 32GB EC2 instance (tensorflow/numpy)

    Posted: 25 Nov 2019 01:23 AM PST

    Hi all,

    I have a tensorflow program that uses quite a lot of RAM. The structure of the program is like this:

    import tensorflow
    import numpy

    images = get_heaps_of_images()

    for i in images:
    f, g, h = do_stuff_with_images(i)

    It's a fairly basic for loop that churns through a lot of images and does recognition on them. f, g, and h are all numpy arrays that are (20,000 x 20,000) float64 matrices

    The images array contains about 700 images, so I need the loop to run 700 times.

    The problem I'm having, is that the program runs fine on my 16GB laptop. When I view RAM usage in htop, the RAM drops after every loop

    When I run the same app on my 32GB EC2 instance, the RAM seems to increase every loop, until it reaches a point where the OS kills it! It's as if the f, g, and h variables are stacking and not being deleted every loop (but only on the EC2)

    What can possibly cause this behavior? Do I need to do manual garbage collection? Both laptop and EC2 are running Ubuntu 18. EC2 is running python3.6, laptop is running python3.7

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

    What does the -r9 option mean in linux? Generally, how can I figure documentation for cli commands?

    Posted: 25 Nov 2019 08:20 PM PST

    I was following some steps in a linux command line and saw "zip -r9" but I didn't find anything from googling zip -r9 (r9 doesn't appear on this page anywhere). Did I miss some giant repository of command line documentation somewhere because that would be awesome... otherwise how can I look these things up in the future?

    EDIT: meant to say "find" not "figure" in the title

    EDIT 2: Thx for all your responses, they were very helpful

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

    Feedback on Project Idea

    Posted: 25 Nov 2019 11:36 PM PST

    Hello!

    I, like many before me on this sub, have recently undertaken the task of learning to code, JavaScript at present. My end goal, way way off, would be to create a dice roller that can integrate TTRPG character sheets. What I am imagining, is a program that allows you to import your character sheet as a pdf, and then includes your static bonuses from the sheet to calculate your roll. So it would be a randomizer (that part already seems simple enough) with a set limit based of what die you're rolling. I'm hoping to use phone gap to make it a phone app. My question is, can this be done in JavaScript? Should I try learning a different language for this project?

    Thank you for your help, or for at least reading!

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

    Uk/Eu coding discord server

    Posted: 25 Nov 2019 11:32 PM PST

    Hi guys, have just started a brand new discord server for coders of all levels from the UK/EU, feel free too join this small community too chat, get advice and work together. Here is the server link: https://discord.gg/na6Cvte

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

    Next Language to Learn

    Posted: 25 Nov 2019 11:29 PM PST

    I currently work in academics and have learned Python and R extensively over the last four years - mainly for statistics/machine learning and graph theory. I'm looking to learn another that may help me land any developer position outside of academics. A lot of jobs I've seen require experience with SQL or C++. Any suggestions on one over the other, or any other language? I've tried learning SQL struggled to stay motivated. Maybe I'll have better luck with C++, or maybe I should keep learning/mastering Python instead of diversifying?Thanks in advance!

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

    Learning C++

    Posted: 25 Nov 2019 11:17 PM PST

    I am a recent Electrical and Electronic Engineering graduate with experience in Embedded C programming. I recently have found myself in a Software Engineering role at work and was wondering which would be the most optimal way to learn C++

    Thanks guys

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

    Need some help with PIGPIO on pycharm

    Posted: 25 Nov 2019 11:16 PM PST

    So I'm trying to access my raspberry pi's GPIO pins from pycharm on my mac. I've installed the PIGPIO module and have daemon running on the pi. Basically I believe everything is sorted.

    However It doesn't seem to be working. I added the environment variable PIGPIO_ADDR and set its value to my pi's ip address.

    I'm running the following code:

    import pigpio

    import os

    from time import sleep

    from tkinter import \*

    pi = pigpio.pi('raspberrypi',8888)

    if not pi.connected:print("error")exit()

    else:print("Connected")

    -----------

    https://preview.redd.it/ytn19hacaz041.png?width=978&format=png&auto=webp&s=71ed3c467d44e03e434b19ca9a4803fe2b3291d1

    Have I entered the environment variables incorrectly?I feel like it should be a lot easier.

    How can I connect properly to my pi?

    Also, is there any way for me to remotely control/access the pi camera module like I'm remotely controlling gpio pins?

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

    Rabbit hole of courses/learning

    Posted: 25 Nov 2019 11:13 PM PST

    Hey all, for those learning programming (or brushing up or updating skills), do you ever struggle with going down the rabbit hole of learning? You know, where you see all these awesome courses on the plethora of online learning platforms, and even though many of the courses might teach the same subject, you're tempted to sign up for all of them?

    I've kind of fallen down that hole recently. I'm trying to get back into programming after dropping out of college (was taking CS) and being away from programming for 13+ years. I first started with a course on edX, then bought a bunch on Udemy, then started CS50 on edX and just recently started a bunch on Memrise (bought a subscription for Black Friday). I've actually only finished one course - the first edX course! But, you know, I plan to finish all these courses some day...

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

    Which Udemy web development course is best for a non-'noob' coder?

    Posted: 25 Nov 2019 11:11 PM PST

    Basically, I've been coding for many years now but just recently have I started to relearn web-oriented languages (HTML & CSS) as a part of my college courses. Whilst there are many concepts and topics that I've yet to learn about, I do consider myself to be rather proficient in the aforementioned languages. I've decided that this is something I would like to pursue in a more professional manner which is why I turned to Udemy for knowledge. After bit of research, I bought both Angela Yu's "The Complete 2020 Web Development Bootcamp" and Andrei Neagoie's "The Complete Web Developer in 2020: Zero to Mastery" without much hesitation, but haven't yet decided which course is best to start for someone who isn't really a beginner.

    I've yet to hear any negative commentaries about either course so I'm hopeful whichever course I commence will be a great experience. Having said this, I would like to hear people's opinions regarding my current situation. Any replies are greatly appreciated but I would especially love to hear about people who have already finished or are about to finish either one of the courses mentioned above.

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

    C Segmentation fault on basic program

    Posted: 25 Nov 2019 11:11 PM PST

    Losing my mind on basic c stuff.

    I'm trying to take a number in as a string and then manipulate it.
    In main I have :

    char str[100]; printf("Enter a number : "); scanf("%s", str); .... 

    Which results in "Segmentation fault (core dumped)" error after I enter any number (or string).
    My searches have not helped me figure it out and would appreciate any help, thanks!

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

    why doesn't a correct number guess work in JavaScript?

    Posted: 25 Nov 2019 11:07 PM PST

    So there are many cases where I guess the right number in this guessing game I wrote and it says I'm wrong but then says the number is whatever I just guessed.

    Here's a link to the code:

    https://codeshare.io/5eyAlL

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

    No comments:

    Post a Comment