• Breaking News

    Sunday, August 23, 2020

    What have you been working on recently? [August 22, 2020] learn programming

    What have you been working on recently? [August 22, 2020] learn programming


    What have you been working on recently? [August 22, 2020]

    Posted: 22 Aug 2020 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]

    The resources I wish I had when I learned about databases

    Posted: 22 Aug 2020 09:41 AM PDT

    When I learned about databases it was all about ORMs and SQL. When I got to the real world those still mattered, but knowing databases intimately became more important. I wish these resources had been brought to my attention earlier in my life to help me build the foundation I needed instead of hopeless and constant stackoverflow googling.

    Databases

    Databases have been and will be an important topic in computer science and more importantly the real world. They aren't going anywhere, they're fundamental to the survival of most businesses, and they're crucial to understanding how any system works.

    Free Resources

    History & Content - Like almost everything in engineering databases where not built in a vacuum, and usually built to solve or improve upon a specific set of issues. Knowing the history and context around anything your learning really helps frame your understanding of it. This wiki link is supplementary.

    Stanford database course - This is what I believe to be the quintessential undergrad database course. This course is all about how to use databases. There are details about how things work, but it is more breadth than depth. One thing that kinda sucks is that the resources for the course don't exist anymore. When I took the course it was available on Stanford lagunita, but it doesn't seem to be there any longer. The videos are still there which are the main source of information.

    EDIT: The Stanford course still exists, but it has been moved to edx and broken up into multiple parts. Links below - Modeling and Theory - Relational Databases and SQL - Advanced Topics in SQL - OLAP and Recursion - Semistructured Data

    CMU database course - In this course you actually build a database. There is no better way to understand a system than to build it. The professor is great and cares deeply about databases. A quote from his Fall 2018 class - "I really only care about 2 things in my life. The first one is my wife. The second one is databases"

    How does a relational database work - To quote the article "the aim of this article is NOT to understand how to use a database". As the name suggests it's about the internals and structure of how a database works.

    Use the index luke - to quote the site "A site explaining SQL indexing to developers—no crap about administration." This obviously doesn't cover databases as a whole, but provides a good look at the power of indexes.

    Paid Resources

    Designing Data Intensive applications - This book looks at a lot more than just databases, but it does spend a fair amount of time explaining and helping you understand them. Also, it does a great job for framing why databases are integral to data intensive applications. You'll see this book mentioned around hacker news, programming subreddits, and everywhere programmers hangout. One negative is that it's not a great beginner resource, but it's great if you already have a foothold in databases.

    Final thoughts

    There is a lot (and I mean a lot) of technical content in the resources I just listed. So I'll provide some guidance on what you should do based on your goals.

    If you're serious about getting an overview, and understanding how to use a database then checkout the Stanford course.

    If you already know how to use a database, and are trying to get to the next level of understanding then checkout one of the below resources.

    • The CMU database course (again it's a course so it's a large resource)
    • Designing Data Intensive applications
    • How does a relational database work
    • Use the index Luke

    An aside for self learners

    One thing I often hear self learners say is "I don't know this I didn't get a cs degree", or "It's harder for me to understand this because I didn't get a cs degree". I'd like to let you know I got a CS degree and I'm still confused as hell! This stuff isn't easy! How do you build the right foundation of knowledge? On any topic there's an infinity of resources and it can be hard to find the right direction to go.

    Every week I'll be writing about CS and programming concepts and give readers top resources to learn the things that were covered. I try and highlight a few things.

    1. Compare what college students learn and what a self learner might have to do to achieve parity.
    2. Expose readers to new concepts and ideas that they might not otherwise stumble upon. The world of programming and CS is vast, and there's actually quite a bit of cool stuff in there.

    if your interested in staying up to date with the writings feel free to subscribe: https://buttondown.email/LearningComputations

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

    New devs, sometimes you just need to hear how your code works aloud... (Rubber Duck Debugging)

    Posted: 22 Aug 2020 10:52 PM PDT

    I found out early into my programming career that programming is like writing an essay. Sometimes you just need to hear it aloud and see if it makes sense. It has been very very helpful! This is a concept called Rubber Duck Debugging. I know it sounds funny, but it is super helpful!

    I do not have a rubber duck, because I find it hard to talk to inanimate objects. However I will grab someone to listen to me on discord, ANYONE, all that matters is that they can listen and respond with "uh-hu" and "yup". I will just explain how the whole project works and I end up better understanding where the problems areas are in my code. If you haven't tried this, then try it. Let me know if you find it as helpful as I have!

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

    What I Wish I Knew Before Picking Up Python

    Posted: 22 Aug 2020 06:21 PM PDT

    Programming skills are important. Functions, data structures, etc...With so many free resources, the number of learning options can be overwhelming. Worse yet, I think there can be a lot of uncertainty going from learning to nabbing a job where you code.

    As I've considered my own career, I remember struggling a lot with what to do as I was learning programming concepts like classes, functions, or recursion. For me, the big goal was always a job. Early on, I didn't feel like I had enough to offer a company. But I overcame that lack of experience and landed a technical role with zero years of experience. Here are a few recommendations based on what I did:

    • Solve real world problems outside of your learning context. So many courses and tutorials are meant to make you feel accomplished. But the way you'll continue to learn is by solving real world problems outside of your learning environment.
    • Talk the talk. Okay, you need to be able to follow your talk with results. But a lot of getting a job involves being able to talk about your skills in a format the company is looking for. Otherwise, they won't recognize you possess the skills they're looking for.
    • Get creative by showcasing your projects. Even if your projects were apart of a tutorial, showcase it. I saw a great way of doing this on a guy's LinkedIn profile the other day. He was enrolled in a coding boot camp, but listed his projects as separate experiences on LinkedIn. Some recruiters will be rigid with only reaching out to people with full-time work experience, but some recruiters just want someone with the skills their company is looking for.

    What are your thoughts? Agree/Disagree?

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

    What are the good resources to learn How To Maintain Linux System

    Posted: 22 Aug 2020 11:15 PM PDT

    Hi all, I'm doing web development on a laptop with Ubuntu, lately my system crashed, I went into discovery mode, deleted some files, and found out that: In /var/log, syslog.1 and kern.log.1 are both 70GB (logs from Aug 1-15th) and syslog and kern.log are both 28GB (Aug 15-now)

    I learnt how to use the terminal, but seems I still lack knowledge on how to maintain a Linux system, and I'd want some suggestion on where I can get resources on Linux maintenance. (Can be free or paid)

    Thanks everyone

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

    All my programs have vanished

    Posted: 23 Aug 2020 12:10 AM PDT

    So today i checked and my programs are gone and they are not where they are supposed to be

    i have gotten somewhere and now i know where all the shortcuts to it are but windows cant locate the files because ' the file has been moved ' i know that it is in my computer but i cant search for it

    is there some crazy command i can type in cmd and recover it pls help

    note:-recover previous versions does not work

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

    Do you think some people learn better by themselves than through traditional education?

    Posted: 22 Aug 2020 11:44 PM PDT

    We live in a society that kind of expects everyone to follow the same path in order to achieve the same goals. If you have a CS degree, you usually have value just because of that. You have an advantage over someone who doesn't. Even if that someone is a lot better than you, which often happens. At least in most countries. However, isn´t a fact that different people reach their full potential through different methods? I think this is a fact, but society refuses to accept it. You're valued if you go and do what you're expected to do. Go to class everyday and listen to whatever they decide to teach you. Invest your entire time and money on what OTHER PEOPLE decide is better for you, get your diploma, and that's it. Don't question it. You ain't even human. Just be a slave of somebody else's ideas.

    For example: i don't like school. Never did. I did went to college and i graduated, but i didn't learn anything. Everything i know of value in life i learned by myself. My own way, my own shedule, my own methods. I learned japanese by myself. Even english, i didn't learn in school. I learned watching Seinfeld with english subtitles and talking to people online(still not great though). Forums can be amazing teachers. All those hours taking english classes at school taught me exactly zero. I couldn't learn that way. I guess i'm not programmed for that. I guess that's not how i reach my potential. But it kind of seems like a lot of people don't think i should be able to decide what's the best way for me to live. What's the best path. Hell, you even have people who wish programming was a protected field, accessible only to those with degrees. Most jobs ask for degrees anyway. Again, be a well behaved sheep. Don't allow diversity. We're all the same. Do as told. How dare you think you can do things differently? We can't just allow universities to go bankrupt and teachers to lose their jobs, can we?a

    Now, something very funny: one thing i was never able to do was to draw. And i wish i could do it, but apparently i had zero talent for it. I always failed in art classes. Couldn't do it. No artistic inclination at all. But that haunted me for years, because i really like the idea of being able to draw. However, one day i decided i was gonna learn how to design stuff. Long story short, i worked has a 2d artist and as a 3d artist. I was fascinated by 3d art as i started seeing some images on IG that i couldn't tell whether they were real or drawing. In 5 months i was creating the exact same type of inages that i drooled over before. "How the hell can someone create images like that? This is super complicated". And now i can create those same images.

    I want the same thing to happen with coding, because it's a fascinating experience to go from "wow, how do they do that?Are they even humans? I can't do this. They're Bill Gates or something" to doing it myself. And i will, for sure, because one thing i've learned by being self-taught is that nothing is really that difficult. It's all in your mind. You can achieve amazing things if you simply put your mind into it. It's great to go from "that's chinese to me" to "I'm Bruce Lee now".

    I have my own plans, my own shedule and i hope it all works out. However, i could go for a CS degree in my area. Do you know what i would be learning though? None of what i wanna learn, which is Python and Javascript. And focus on that, mostly.If i went with the CS degree, i would be learning a bunch of things that may be related to programming languages in a way or another, but don't actually teach me how to code. You do learn things like SQL, but only in one semester, and while learning a bunch of other stuff at the same time. So to me it sounds like it's more of an introduction. Could this maybe be the reason why i know people with CS degrees that don't actually know how to code? They have some notions, but they can't build anything by themselves. I would be spending 3 years and thousands of euros and at the end of it i wouldn't have the skills i wanna have.

    BTW, i'm not saying CS degrees teach you nothing. Just this one in particular seems to be crap. And there's nothing else available. We also have language courses where you learn english, spanish and the rest of the time is spent learning basic IT stuff, greek mythology, history and a bunch of random useless stuff that don't give what you're looking for. This CS course is like that.

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

    Does helping translate a Github page count as 'contributing to open source project' and will employers care about it if it's listed on your resume?

    Posted: 22 Aug 2020 06:42 PM PDT

    So basically The Modern JavaScript Tutorial is looking for people to help translate their articles from English to any other language. I was wondering if this counts as 'contributing to open source' projects and if employers care if it listed on your resume when applying for jobs?

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

    Coding bootcamp vs a computer science degree

    Posted: 22 Aug 2020 03:29 PM PDT

    I was wondering do coding bootcamps actually work now a days to get a job in either as a software developer, software engineer or cybersecurity compared to a computer Science degree. If we look now a days most tech companies are removing the degree and want actually someone that knows how to code, reason that I am asking is because I'm going towards my second year in college and debating on leaving and actually going to a coding bootcamp in Chicago instead of finishing the rest for my bachelors in CS. Any thought or opinions towards this topic?

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

    Why do big programs have so many files?

    Posted: 22 Aug 2020 03:41 PM PDT

    I get it: If you do web development, you should have a js file, a css file and an html file.

    However, I can't quite understand why some programs have like a million files which, at first sight, I can't tell what does each one do.

    How should I divide my program if I was working in a terminal emulator, for example? Thank you

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

    Do Virtualenvs and Brew conflict ?

    Posted: 22 Aug 2020 08:34 PM PDT

    Hey,

    Out of curiosity, I am working on a django web app but had to install GDAL through brew install. I am fairly comfortable with the logic of PIP install in a virtualenv (the PIP modules will only be inside that specificed venv), however I believe brew install globally. Is there any risk or danger associated with this?

    Does it matter if I run brew install (or other commands) while my venv is active?

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

    When to use a triple for loop?

    Posted: 22 Aug 2020 08:00 PM PDT

    So I am solving a few problems presented in Daniel Liang introduction to java programming and Data structures comprehensive version 11th ed.

    One of the problems tasked towards the end of the multi demension arrays chapter was to create a program that multiplies 2 matrices. I was stuck for some time and looked at the authors solution. It appears he used a triple for loop.

    I had never even thought of that approach. I am just curious of some other examples of where a triple for loop may be useful? Or at least when to consider to use one? Thanks in advance!

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

    Explain the ++a part of my code please- beginner coder- How is the answer 72? Thanks.

    Posted: 22 Aug 2020 07:17 PM PDT

    I would think the answer would be 71 and not 72 because the ++a would on increment once?

    How is the answer 72?

    int a = 20;

    int b = 30;

    b = ++a + b;

    cout<<a+b;

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

    Output Formatting Question in C (Beginner)

    Posted: 22 Aug 2020 09:02 PM PDT

    Hey guys,

    I'm new to coding and I had a question while I was working around with a sample question.

    In this program, why is the result of the printf 0.000000? I know it has something to do with my format specifier (%f) and mixing that with type int, but I can't figure out why this would return 0.

    I'm sorry for the basic question. I've tried looking online but it's hard to find an answer to a question you don't really understand.

    #include <stdio.h> int main() { int x = 20; int y = 20 / 1.5; printf("%f", y); } 
    submitted by /u/DarkenedAngel
    [link] [comments]

    Help

    Posted: 23 Aug 2020 12:41 AM PDT

    Im interested in computer science but i don't have a desktop and a laptop. I'm planning to buy one after i saved some money but i don't which one to buy first and what specs to look for.

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

    Struggling with Thinking in Java

    Posted: 23 Aug 2020 12:34 AM PDT

    I'm currently enrolled in a course that is using TiJ to teach Java. The course is essentially "Read the book, do these assignments, write the exam." The course is required for my degree, so I don't have many options around it, and I hear good things about TiJ but I feel like I might be approaching it the wrong way. I cannot seem to do many of the exercises throughout the chapter without some help. I feel like the deeper into the book I get the less I understand. Is there a way that anyone here has approached this book to make it more manageable? I've been on the "Containers in Depth" chapter for far too long now, and I just don't feel confident enough with it to move onto the next. I"m at a loss and my approach of "just read the book" hasn't been effective so far.

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

    I need to display all indetical / or similar elements in array on one line

    Posted: 23 Aug 2020 12:33 AM PDT

    I'm working on a problem that needs to display all similar elements in just one line.

    For example: If Array X { 2, 3, 5, 5, 3, 5}

    Sample output is :

    2

    3 3

    5 5 5

    Since the elements of the array will come from the user,i'm confused how to do it. Also, i'm a beginner in java. I actually did some coding, it already takes an array, sort the elements, it just that i can't display the identicals on one line.

    Can someone help me to fix this?

    import java.util.*; import java.util.Scanner; class identical { public static final int RANGE = 100; public static void sort (int[] arr) { //new array to store counts of elements in input array int[] freq = new int [RANGE]; //get frequencies of elements and put in the new array for (int i:arr) { freq[i]++; } //sort order int k=0; for (int i=0; i<RANGE; i++) { while (freq[i]-- >0) { arr[k++]=i; } } } public static void main(String[] args) { int n,i; Scanner in = new Scanner(System.in); System.out.print("Enter number of elements of array A : "); n = in.nextInt(); int[] arr = new int[n]; for (i=0; i<n; i++) { System.out.print("Enter the element "+(i+1)+":"); arr[i]=in.nextInt(); } sort(arr); System.out.println(Arrays.toString(arr)+" "); } } 

    Edit: I had some typos on title, it should be identical

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

    Need help with scanf-ing arrays in C

    Posted: 23 Aug 2020 12:28 AM PDT

    int set[2]; printf("Enter three integers: "); scanf("%d, %d, %d", &set[0], &set[1], &set[2]); 

    If I input the integers: 1 2 3, and print them out, set[0] comes out fine but set[1] is = to 4194432 and set[2] is = to 6422284, why is this? Which part of my code is incorrect?

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

    Anyone out there who'd like to partner with me so we both learn Kotlin for Android?

    Posted: 23 Aug 2020 12:27 AM PDT

    Hi there, anyone out there who'd like to partner with me so we both learn Kotlin for Android? I'm 32 years, paying my bills working as sysadmin and thought that it might be a good moment to try programming. I'm not burned out but don't see myself working with systems for long. I need a change.

    While at university I did some programming for assignments mainly in Java and C++ .... nothing serious, By any means, I'm not a one of those guys who pick programming easily... I must work hard and commit 10 mistakes before I grasp a concept. But hey, I'm motivated to give it a go and would like to find a programming buddy so we can support each other while working on simple projects. Why Kotlin for Android? Sounds like fun and a prospect of creating and publishing an app sounds very appealing. Ideally, we would focus on understanding how components really work, not following somebody else's tutorial. If there is something I don't understand, your job would be to help me out and then other way around, if necessary. I have a full time job but would give my best to do some daily programming so we can grow in parallel.

    I speak Polish, Spanish and English. Our communication would be in any of those languages via Whatsapp, Telegram, Teams or anything else you like. I'm rather chilled out and like to think that enjoy helping others. So if you're interested in Kotlin for Android, can commit some time and would like to work together let me know. We start from "0" and let's see how far we can push it.

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

    Best book to learn Django?

    Posted: 22 Aug 2020 03:34 PM PDT

    I learn best by following along a book. What's the best one to use to learn Django?

    Also, if I'm going to use Python/Django, should I still do the Odin Project for my web app or just do it for general knowledge?

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

    Why functional programming is awesome

    Posted: 23 Aug 2020 12:03 AM PDT

    Almost every programmer starts by learning an imperative paradigm. Functional paradigm is also fun to try. I made an article about my functional programming is awesome Link

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

    How do I decrease the time it takes for me to read from a file?(C#)

    Posted: 22 Aug 2020 11:55 PM PDT

    I'm currently using Filestream and binaryreader to read and parse my data. It takes about 200ms. Although this is already very fast, I need it to be faster to improve my framerate in unity. Is there a faster way to loop through my binary file and parse the data?

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

    Question: How to open an application inside a application?

    Posted: 22 Aug 2020 11:42 PM PDT

    This question is not related to programming, but i want to open 2 applications (Visual studio code and google chrome ), but the Vs code is in full screen and the google is not. but when i want to switch to vs code i dont want google chrome to go behind the vs code (because its full screen). i hope u got my question. But basically i just want to use google inside vscode but i dont want google to disappear i want it to be always there inside vscode when i am coding

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

    how to deobfuscate Lua?

    Posted: 22 Aug 2020 11:41 PM PDT

    i want to know how to deobfuscate lua

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

    Best way to store passwords?

    Posted: 22 Aug 2020 05:29 PM PDT

    Hi, so I am currently creating a program and basically, its going fine, however now I need to do the login part, which is the part I'm having trouble with. How do I store passwords? I know I'm not suppose to encrypt them and from a google search, not even hash them? And should I also do that with the username/email? And how would one implement a reset password function? Thanks

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

    No comments:

    Post a Comment