• Breaking News

    Sunday, October 13, 2019

    What have you been working on recently? [October 12, 2019] learn programming

    What have you been working on recently? [October 12, 2019] learn programming


    What have you been working on recently? [October 12, 2019]

    Posted: 12 Oct 2019 09:04 AM PDT

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    What is the best self study guide for web dev?

    Posted: 12 Oct 2019 10:27 AM PDT

    Here are the options:

    Codecademy

    FreeCodeCamp

    The Odin Project

    W3Schools

    MDN Tutorials

    I know the right answer is using all of them in some capacity or trying each one to see what I prefer but anyone want to recommend one or two and tell me why?

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

    What language did your college make you use?

    Posted: 12 Oct 2019 12:06 PM PDT

    For me it was C and Java

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

    Offering mentorship

    Posted: 12 Oct 2019 03:04 PM PDT

    As someone who was self taught and been in the industry a couple years I would like to pay forward the help others have given me to get to this point.

    A bit about myself. I'm not a seasoned vet and dont work for some big name company. I've been programming on my own for about 10 years, since I was in high school. I've been working for a start up that's in the process of becoming a large company for the past two years. This is my first programming job. I do a lot of tasks; web dev, web scrapping, data cleaning, general ETL, and infrastructure management. A lot of the work I do is with python and aws but I know a handful of languages and have most recently been learning go. On my spare time as far as tech is concerned I do a lot of linux system tinkering and data sciencey stuff. I also enjoy game programming and doing art when I'm in the mood.

    I'm offering to help a few people (probably make a discord) get their bearings and figure out what they want to do. I'll help direct your studies where I can and keep you on track. There wont be anything as formal as classes but I'll give out projects and things like that.

    I'm just doing this because I wish I had someone who had offered me this kind of help starting out. I'm not saying I can give you everything you need to know to get a job in the field you want but maybe I can help help a few people work towards that goal.

    Comment if you have any questions, PM me if you're interested. First come, first serve. I can probably only manage to help a handful of people.

    EDIT: I'm going to drop a discord link here that expires. If it doesn't work then that means there are no longer any openings. https://discord.gg/vNN6NV

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

    I want to learn more about computers in a deeper understanding, like the stack, memory, etc? I don't know where to start tho, all I know is Python/Django.

    Posted: 12 Oct 2019 09:25 PM PDT

    As the title says really, I want to learn and understand more in depth about computers etc where do you go to learn such things? and how do you learn? I want to read it yes but also maybe more "practical" stuff?

    I also will start learning another lang either c/c++/java, I am not sure on which one, maybe c++?

    Thanks.

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

    This page is slowly making sense

    Posted: 12 Oct 2019 06:12 PM PDT

    After a week or two of code academy in the summer, I began my computer science program in my first year of university. I joined this subreddit in the summer and literally nothing made sense. Loops, functions, boolean... WTF. But now after a month of learning python and other concepts of computer science this page is slowly making more and more sense.

    now I can understand probably 35% of the stuff thats going on here and its very inspiring. I noticed this difference today and I feel like ive made some real good process. Im very excited for how the future of my programming knowledge will turn out. This one is for all the newbies out here and for continuing to learn. It just gets more and more exciting that more you learn.

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

    What are some niche yet important concepts that many self learned folks don't know?

    Posted: 12 Oct 2019 09:46 AM PDT

    I was helping out a friend the other day with a bug and the issue was the way he wrote his condition created a short circuit (a couple 'or' statements all in one condition). Made me realize that if I faced that issue and I didn't have the very niche piece of knowledge I wouldn't be able to debug it without expert help.

    I would like to learn those types of concepts so that I'm prepared should something like that show up.

    List away below.

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

    How does encapsulation and information hiding allow developers to change the implementation without worrying about affecting anything else?

    Posted: 12 Oct 2019 08:57 PM PDT

    I'm pretty sure if you changed the implementation to nonsense, it'll cause bugs in the program regardless of whether you keep the interface the same or not. And even if you don't hide the implementation details, other developers can just ignore it.

    Also for algorithmic questions and extreme optimization problems, you do have to worry about the implementation.

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

    How can I properly help someone with their programming assignments?

    Posted: 12 Oct 2019 07:20 PM PDT

    Hello!

    I have a first year friend who has been struggling with some of their computer science assignments and has been asking for help lately. I'm more than happy to help, but I don't want to give them the answers or figure out the algorithm for them, because that would defeat the purpose of learning!

    However, I don't know how I can effectively guide them towards finding the right answers on their own. Often times, I know what to be doing in my head, but I find it hard to explain it in a way that might make sense to someone who is pretty new to it all... or I might end up explaining the whole thing. Any tips on how I can properly tutor/mentor someone new?

    Thank you!

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

    Basic calculator , looking for critique!

    Posted: 12 Oct 2019 07:17 PM PDT

    I'm currently doing TheOdinProject and I was hoping to get some critique on one of the first "big" projects(imo), making a basic calculator. Now I know its missing some pretty common stuff(like decimals, negatives) but I'm hoping to get some critique on what I have. I'll probably come back later at some point and update it, but for now Id like to see what people think of what I came up with. Any advice is welcome!

    https://github.com/Yummy275/Calculator

    or heres codepen if thats easier for you:

    https://codepen.io/Yummy275/pen/NWWxXLz

    Thanks for looking!

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

    R Nested For Loop Not Filling Matrix Correctly

    Posted: 12 Oct 2019 09:19 PM PDT

    I am attempting to automate filling a matrix in R with chisquared EVs from a dataset in my Lab Assignment, however I'm facing a strange issue where only the final column of my new matrix gets filled with calculated values. When I try debugging by having print out the values it calculates, all of the values are there.

    Input:

    for (j in 1:4){ tbl6 <- matrix(nrow=3, ncol=4) m <- tbl5[4, j] for (i in 1:3) { n <- (tbl5[i, 5]*m)/tbl5[4,5] print(n) tbl6[i,j] <- n } } 

    Output:

    [1] 18.42718 [1] 13.11165 [1] 41.46117 [1] 40.38835 [1] 28.73786 [1] 90.87379 [1] 10.09709 [1] 7.184466 [1] 22.71845 [1] 35.08738 [1] 24.96602 [1] 78.9466 > tbl6 [,1] [,2] [,3] [,4] [1,] NA NA NA 35.08738 [2,] NA NA NA 24.96602 [3,] NA NA NA 78.94660 

    Its very strange that the iterations for the sequence are calculated correctly but only the final 3 values are stored in my matrix.

    For further reference this is tbl5:

     agree disagree strongly agree strongly disagree <1yr 4 43 2 55 >1yr 7 32 5 30 never 62 85 33 54 Total 73 160 40 139 Total <1yr 104 >1yr 74 never 234 Total 412 
    submitted by /u/Mikazukinoyaiba
    [link] [comments]

    Concerned about the content/focus of my university course

    Posted: 13 Oct 2019 12:10 AM PDT

    I am studying for Computing and IT with the Open University and I have some concerns.

    My course has no requirements. As such, the first year is very slow to help bring people up to speed with what they need to know going forward. That means the basic math knowledge up to ~pre-calc. It is also a "Computing and IT" course - not CS.

    This I am okay with as I didn't have the requirements to get into a standard university course so it is basically my only option for a formal education at university level.

    But reading through this thread has me a bit concerned.

    People are listing so many languages, both low and high level, being taught from beginner classes onward. This is very different to what my course seems to teach.

    The only languages which seem to be used in my course are Python and Java (plus JS/HTML/CSS for the web module). Is this typical/acceptable?

    My biggest concern is the lack of low-level content on my course. There is no OS module, embedded systems or anything involving Assembly/C/C++.

    I'm already familiar with math and programming to a point where this first year is basically just ticking boxes and completing assignments, so I have a lot of spare time to kill.

    Are there any quality online courses which could help me learn about low level programming? And is it typical for courses to utilise only Python/Java?

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

    Have you ever had a "My old University coding teacher was wrong" moment?

    Posted: 12 Oct 2019 07:25 AM PDT

    Like the title says. Did your University coding teacher say something along the lines of "you always should do X", and then when you actually went to work in the industry, they were wrong? I've overheard the head of the computer engineering department at my school say "You're never going to be a good programmer unless you use the debugger", and while i agree with him that the debugger is wonderful, I know of a few people who don't use it and they're fantastic programmers who have their own methods of debugging that work just fine, even on larger projects.

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

    MERN vs PERN Stack?

    Posted: 12 Oct 2019 11:45 PM PDT

    So I often hear MERN mentioned as a popular stack for JavaScript developers.

    However, at the same time I hear that MongoDB isn't as popular as it used to be and that all JavaScript developers should focus on SQL databases like PostgreSQL.

    I also hear that JS Developers should learn both SQL and Non-SQL databases.

    But then I hear that JS Developers should focus on ONE stack, so either MERN or PERN.

    These advice seem contradictory: Would you recommend using MERN vs. PERN if we had to stick with one in 2019?

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

    How to copy each removed item from list into new list?

    Posted: 12 Oct 2019 11:06 PM PDT

    lst = [1,2,3,4] K = 9 # Python3 program to find Closest number in a list lst_new = []; lst = [1,2,3,4] def closest(lst, K): for i in range(len(lst)): return lst[min(range(len(lst)), key = lambda i: abs(lst[i]-K))] # Driver code lst = lst lst.remove(closest(lst, K)) print(closest(lst, K)) lst_new.append((closest(lst.copy(), K))) print(lst_new) 

    Python 3.7.4 (default, Jul 9 2019, 00:06:43) [GCC 6.3.0 20170516] on linux >> original list [1,2,3,4,] 3 [3] >> lst [1, 2, 3] <<<undesired result >>[3, 4] <<desired result for new_lst 

    Without a full solution, give me an example or share your knowledge on possible ways for me to print the desired result.

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

    Question about a loop that's not working (new to coding)

    Posted: 12 Oct 2019 10:57 PM PDT

    Could someone explain to me why this loop doesn't work?

    #include <iostream> #include <string> using namespace std; int main () { string myString; char chr; int counter = 0; cout << "Enter your string: "; while(cin.get(chr) != '.') { cout << chr; ++counter; } } 

    The not equal to operator doesn't work so the loop goes on forever. I want to be able to count the characters in the string and store it in a variable so I didnt want to use the getline(). Any feedback on this would be greatly appreciated.

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

    What can I learn with access to a centos server?

    Posted: 12 Oct 2019 10:52 PM PDT

    I was initially working on a couple of projects. So currently my mentor is leaving, some projects are being scrubbed. I spoke to IT and they said the RAM will be reduced to 32gb but the server will stay alive and that we'll still have access. It's an in-house server.

    What can I learn which I can't learn with my local system? I was hoping I could take advantage while whatever is available.

    My career goals are backend dev and data engineering/distributed systems.

    Currently I was just dabbling in ELK in the server.

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

    why won't this one div fit directly to the left of the other div?

    Posted: 12 Oct 2019 10:24 PM PDT

    Hi, I'm trying to make a website for my school's speech and debate team. I anonymized and gave the team's officers and staff fake names so that they don't get found because I don't want to reveal my ID online before it becomes time to publish the web page with their permission.

    Anyways, I'm having trouble making this website so that the menu div comes to the left of the other div but not beneath it. It appears beneath the other div but also to the left of it which I don't want. Here's my code:

    https://codeshare.io/5DM4b3

    Here's how I want the page to be formatted:

    https://ibb.co/LPHj1Mk

    Could someone help me with this? I'm new to the whole web development thing. I'm making this along with a course I am taking in web development.

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

    What exactly is indirection, and why is it so important?

    Posted: 12 Oct 2019 10:18 PM PDT

    I came across the "Fundamental theorem of software engineering" while reading a textbook, whose quote is this, "We can solve any problem by introducing an extra level of indirection."

    Reading the actual definition of indirection, "the ability to reference something using a name, reference, or container instead of the value itself."

    So from my understanding indirection would be something like this.

    non-indirection:

    console.log(\ 1 + 1 is ${1+1}`)`

    indirection:

    a = 1 + 1

    console.log(\1 + 1 is ${a}`)`

    An example of multiple levels of indirection would be

    level 1 indirection:

    username = "foo"

    password = "bar"

    db.save(username, password)

    level 2 indirection:

    saveData(username, password){

    db.save(username, password)

    }

    u = "foo"

    p = "bar"

    saveData(u, p)

    Is this correct understanding of indirection? If so what makes this so important in software engineering? Is it because it increases levels of abstraction and therefore makes the overall system easier to understand? How does introducing another level of indirection help solve problems in software engineering?

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

    How to print the output of my function to a text file in python?

    Posted: 12 Oct 2019 05:53 PM PDT

    Hello, so I have a main function in python that has a while loop inside it and prints out a table.

    I'm wondering how to write that function or the output of the program to a file. I've been looking into it for a while but there must be a simple way of printing out output right?

    Trying to have it output a CSV file.

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

    Any fun things I can start with in Excel?:D

    Posted: 12 Oct 2019 10:58 AM PDT

    We had to use Excel for school (I'm a psychology student, first year) and we basically had to learn how to use the averageifs option. I messed around with some other stuff and I realize I actually really like this part about school, I want to learn more.
    But I have no idea what Excel can do.
    Does anyone have any tips on what I should or could learn to do with Excel, what is fun, what is useful, and what is not too difficult to learn?

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

    SQL Injection Prevention PHP – Full Guidelines | Hacking Impossible

    Posted: 12 Oct 2019 09:27 PM PDT

    SQL Injection Prevention PHP – Introduction

    Back in another important web development fact. Use prepared statements and parameterized queries. These are SQL statements that are sent to and parsed by the DB server individually from any parameters. This way it's not possible for an attacker to inject malicious SQL.
    You basically have two options to achieve this SQL Injection Prevention PHP:

    1. $stmt = $pdo->prepare('SELECT * FROM employees WHERE name = :name');
    2. $stmt->execute(array('name' => $name));
      5...read more.....
    submitted by /u/nofoko1
    [link] [comments]

    Python? - Checking for updates to websites?

    Posted: 12 Oct 2019 09:19 PM PDT

    Hi,

    I'm pretty new to programming, but reasonably familiar with Python, and I was wondering if there is an alternative to RSS that is site-independent?

    Say, for example, there was a site that had a blog post, or video, or something on it that was being updated or added to on an irregular basis. If this site had an RSS feed, I could subscribe to that easily enough, but what if it doesn't?

    Other than downloading a copy of the page and checking it against the live version regularly, is there another way to check for updates on sites that dont have RSS?

    Sorry if the question was unclear, I'm new to Reddit too.

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

    in C, how to scanf until I get to a certain character

    Posted: 12 Oct 2019 09:16 PM PDT

    In my input, I have an undefined number of coordinates, each on a newline, then a # on its own line, then under that another set of an undefined number of coordinates.

    So i want to scan each coordinate, do something with it, until I get to the #, and then do something else with the other set of coordinates.

    I tried running a do...while loop but I couldn't figure how to get it to work. Any ideas would be greatly appreciates, Thanks.

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

    Does anyone have any sources for self learning C++?

    Posted: 12 Oct 2019 05:26 PM PDT

    i'm on a mac and i'll be used Xcode

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

    No comments:

    Post a Comment