• Breaking News

    Tuesday, June 29, 2021

    How do you self-teach every day? learn programming

    How do you self-teach every day? learn programming


    How do you self-teach every day?

    Posted: 29 Jun 2021 08:37 AM PDT

    I have bought Programming, Principles and Practice using C++ (2nd edition). I have read up through the second chapter and I'm finding it hard to sit down and read a chapter a day. What can I tie in to help solidify a habit? Thank you.

    Edit: Thank you to all who gave advice! I greatly appreciate it.

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

    I want to learn programing, what should I do ?

    Posted: 29 Jun 2021 09:33 PM PDT

    I've always been interesting in programing but never even tried to learn, but now I want to learn so what should I do, with what language should I start, is there any course you recommend or any advice ?

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

    Things are clicking

    Posted: 29 Jun 2021 12:31 PM PDT

    So I've been lurking this subreddit for a couple years and have seriously tried to start learning web development this year. I'm currently taking Colt Steele's full stack course, and his explanations have really been helping me cement the information. I'm also doing free code camp for the lessons and projects.

    I've only completed the html and css portions and have been doing projects to apply the knowledge, and things have been really clicking for me lately. Especially with the help of bootstrap tools, making sites have been getting much less daunting than before. From my first site build to just my fifth the difference is night and day with responsiveness and appearance.

    I know this is a very small accomplishment and I still have a long way to go before I can even think about getting a job, but I'm pretty proud of myself for reaching the milestone so far considering I'm working full time. I'm also super excited to get into JavaScript.

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

    Learning programming metaphor

    Posted: 29 Jun 2021 07:59 PM PDT

    HTML: "Imagine the world is made up of elements."

    CSS: "Now imagine all the elements in the world have different, distinct properties."

    Javascript: "Now imagine all the elements in the world and their properties can be electrified or set on fire or put into particle accelerators."

    React: "Now imagine a world where the first world is actually not a world at all. Instead, that world has been duplicated into a million mini-worlds as part of a multiverse and shoved up it's own ass."

    Regex: "And there's aliens too."

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

    Is there a way to get certified if I am self-taught?

    Posted: 29 Jun 2021 03:44 PM PDT

    So I'm going to be starting this full-stack web development course that I got on udemy and it says after I've completed the course I will have a web development portfolio of over 25 different websites I know that will be great to have when applying to jobs but I was also wondering is there a website online I can take an exam or something at to have a Certification to go along side it?

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

    Play Games To Learn Coding ��

    Posted: 29 Jun 2021 07:25 AM PDT

    Hey guys! Would like to learn coding by playing games..? Take a look!

    Play Games To Learn Coding 🎮 (hashnode.dev)

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

    semi colon not required to terminate if statement?

    Posted: 29 Jun 2021 05:14 PM PDT

    I'm using C, if that makes any difference. The following is trivial, valid code:

     int a = 10; if( a < 20 ) { printf("a is less than 20\n" ); } 

    Initializing a requires semi-colon. The if statement doesn't. Come to think of it, neither do function definitions. Probably a moronic question, but why is that?

    EDIT: to clarify, I was thinking the semi-colon goes after the } ie

    if( a < 20 ) { printf("a is less than 20\n" ); }; 
    submitted by /u/AlienGivesManBeard
    [link] [comments]

    How do you stop yourself from over complicating your solutions to programming problems?

    Posted: 29 Jun 2021 04:50 PM PDT

    I have a very bad habit of making the solutions to the problems I'm trying to solve way over complicated. I know I need to stop doing this but I'm just not sure how to go about doing it. Any advice or tips on this would be greatly appreciated.

    P.S. (Post Script) Please feel free to correct my spelling/grammar/formatting as I am dyslexic and so am not good at these things.

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

    Should I learn Rust?

    Posted: 29 Jun 2021 06:11 PM PDT

    Context: I'm comfortable in C#, Java, JS/TS, somewhat python, and have dabbled in basic F#, C++, Dart, but have given up on those pursuits.

    Should I learn Rust in 2021? It's a hyped-up language all over programming spaces, and it seems great: C/C++ performance with safety? Sign me up! (C++ pointers were the bane of my existence) Still, I don't know if its language overkill to spread out across more languages, and if learning Rust is even worth my time. I want to get into systems programming or low-level stuff on Raspis/Arduinos, and I know C/C++ is valuable for that (Rust seems to be good for that sort of thing, too, though), so should I stick to what I have, learn Rust, or suck it up and learn C/C++?

    Rust devs: I want to hear your experiences. How was your transition & experience working with Rust? What kind of work do you do or aspire to do with Rust? What's the future of Rust?

    Thanks in advance.

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

    Stuck after codeacademy.

    Posted: 29 Jun 2021 09:55 AM PDT

    I've tried doing codewars and simple programs (like something to store daily tasks). But it just feels like I'm slamming my head against a brick wall just for nothing to happen. I try doing codewars tasks, I try to solve it but it doesn't work, I research functions and stuff to see what I could implement for it to work, but it never does and I always give up and look for the solution, just for it to be something I've never even fucking seen. I have not even completed anything because I just don't know how to write it.

    Edit: I'm learning python btw

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

    What is the check tab in Github used for?

    Posted: 29 Jun 2021 08:36 PM PDT

    I bought a book about git, but I don't find anything about "checks". I did a pull request to break some code in my repository and try and see if the check fails, but it looks like it has nothing to do with testing your code. What is it about then?

    Imgur: The magic of the Internet

    just curiosity , as an example what kind of action would I be required to do to make the check fail.

    Thanks anyone.

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

    What makes front end so tedious for a back end dev?

    Posted: 29 Jun 2021 09:39 PM PDT

    I've only ever programmed on the back end and I have no problem with jumping from C++ -> Rust -> Haskell etc. Today I tried jumping straight into React and i'm actually taken back by how tedious it really is. The notion that I can just switch to a language and easily adapt is broken. There is much more to React/Js frameworks than I expected, but I can't pinpoint what is making it so difficult to pick up.

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

    Why is my variable not defined in my class object in python?

    Posted: 29 Jun 2021 05:23 PM PDT

    class real_estate: budget = 40000 def __init__(self,state,area,cost): self.state = state self.area = area self.cost = cost real_estate.increase() @classmethod def increase(cls): return budget fp = real_estate("NY","good", 10000) Error: NameError: name 'budget' is not defined 
    submitted by /u/PremeJigg
    [link] [comments]

    Need help and advice. Thank you in advance

    Posted: 29 Jun 2021 08:48 PM PDT

    First of all, English is my 2nd language so sorry for mistakes. So, soon I should go to college ( if I get in ofc) ,it's computer science. I would like to start learning programming nevertheless if I get in or not. My knowledge about computers and programming is 0. And currently I don't have some amazin g computer, just have that in mind. I don't know what I like so please suggest me something neutral between frontend and backend developer. And of course after some time I will upgrade my computer. Also, is there some skill I can learn to earn money on sites like Upwork, Fiver etc... ?

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

    How to Find Focus in Learning how to program

    Posted: 29 Jun 2021 08:31 PM PDT

    Hello everyone,

    I just want to give a bit of a background on myself. I am a recent graduate, holding Bachelors degrees in Finance and Mathematics. I graduated about two months ago but I have not been successful in acquiring a job. I feel uneasy with myself because I'm in this position while most of my friends and peers have gone on to great jobs while I'm still unemployed. Thus I've been thinking that while I continue my job search I should learn how program effectively. I do have some experience with coding:

    I worked in MATLAB through my studies and implemented a model for mathematical research with it. I also have worked with R in my stats classes.

    I took 2 semesters of Java for my math program and have had exposure from basic principles( variables, loops, conditional statement) all the way to data structures such as stacks, queues, trees, heaps, etc..

    I am somewhat familiar with the syntax of Python and spent some time learning the syntax for C++ and C# which wasn't too bad given my experience with Java but my recollection is a bit hazy . Yet, I have not gone past the basic skills and have not implemented data structures in these languages

    The thing is given all this exposure, I never really pulled the trigger on programming because I thought I would never come to use it since I wanted to work in Finance in non quantitative roles and if I needed to code I could just learn it on the spot but recently I gave it more thought and realized that it be a waste if I do not enhance my skills since it can open up doors later in the future (maybe software engineering? one can dream right?)

    The thing is is that I do not know where to start and I am uncertain of projects I can put on my resume. The last few days I was reviewing some python but I started thinking if its a good idea to spend time reviewing again or jump into projects and learn on the spot . I want to learn some advanced algorithms eventually as well but I've always been a slow learner (my math degree was an arduous journey for this reason) and feel that I will not have time to learn these effectively. At times, I feel that I am not cut out for this because Ive tried to learn them before but since I did not have to, I never did in college.

    I guess I just need to take one step at a time and find some focus and thus the reason for this post is hopefully get some advice on how to focus my efforts effectively from people who are self taught or have been in a similar situation. Thank you so much.

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

    Need help on Firebase Admin and custom claims.

    Posted: 29 Jun 2021 11:56 PM PDT

    Hi, I'm a beginner web dev and my current stack is React and Firebase. Pretty comfortable now with the basic CRUD using redux and firebase.

    However, I can't figure out on how to correctly implement roles on my app (simple e commerce wine and cheese store). My app needs an admin and a client. Do we really need firebase cloud function? Or a simple redux thunk can do the job?

    Any suggestions? Thanks you, wonderful people! ⭐️

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

    Recommendations for functional programming languages good for a beginner

    Posted: 29 Jun 2021 11:58 AM PDT

    Hello, I want to learn functional programming. I have 1.5 to to years of experience of programming and I want to experiment with functional programming. I want to learn programming languages that preferably support functional programming. Does anybody have any Recommendations.

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

    Flutter vs Native: Which to choose first?

    Posted: 29 Jun 2021 11:53 PM PDT

    Hello Everyone! I know web dev and now I want to get into app dev, I wanted to know which platform will help me easily understand the concepts of app dev? Should I start with flutter or android studio(not ios yet)?

    Thanks!

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

    I want to learn software engineering not programming languages

    Posted: 29 Jun 2021 11:43 PM PDT

    I've learned (and forgotten) several programming languages, and I'm most comfortable with C++ and Python. I've also worked on some small-scale projects (e.g., a command-line calculator with support for variables). Moreover, I can learn the syntax of most programming languages in about a week.

    But I've not learned anything related to software construction, design, testing, concurrency, or other advanced topics. Where can I learn these?

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

    What's a "live version"?

    Posted: 29 Jun 2021 07:53 PM PDT

    I joined this developer forum and when asking for help it says "Share links to your code repository AND a live version of your project."

    For a code repository I can just link my GitHub for said project, right?

    But what do they mean by "live version"?

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

    How would I go about programming an interface for editing a configuration file?

    Posted: 29 Jun 2021 11:36 PM PDT

    I'm wondering how to go about writing a small piece of software that lets me edit the values of a .ini or other configuration file.

    So some games have .ini files that change different game parameters, right. I want to learn to create a quick interface for those games that will let me change the values of each option. Ideally, I'd like to write this per game, and with drop down boxes for selecting appropriate values for the variable.

    So for instance, Elite: Dangerous has a config file for the HUD colors. I'd like to be able to edit the numbers in the file with only valid entries for the rgb values from 0-255. So maybe a slider to select the number instead of a text box.

    I'm not a programmer, I've taken C and Java in college but that's been a long time ago.

    Ooh, a better example is the config file for minecraft servers. There is a long list of things like, port number, server name, motd, etc... and I'd like to be able to edit that with a GUI instead of a text editor. But with boxes that only allow valid entries.

    I really hope this makes sense. I know it isn't practical for most people but it's been nagging at my mind on how to do it for a long time now. I just want to know. And can't find much help on google.

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

    Languages for linux

    Posted: 29 Jun 2021 11:34 PM PDT

    So, I am switching to linux soon, as seen in the title. I was using windows so far but noticed it is lagging a LOT on my old hardware. Plus, I'm a big supporter of the FOSS movement. Windows 11 released and my comp is incompatible, I like to always have the latest and greatest. I am going to choose a debian-based linux distro, as an fyi.

    As I said in the title, I would like a few languages that work well and have a good amount of usage in linux. I am currently doing C++ and Python, and C#, which I will drop in favor of a more linux-friendly language, and my focus in programming is desktop applications, or in general, a lot of things other than the web(html, css, js).

    Thanks!

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

    Fast-paced JavaScript Courses?

    Posted: 29 Jun 2021 09:21 AM PDT

    I am an experienced developer in C and Java, so I have understanding of basic programming concepts. Recently, I've tried to learn JavaScript in order to make web applications, but the courses I've tried start from the very beginning, and I find it hard to stay engaged.

    Are there any JavaScript courses that dive right in and start introducing features of the language rather than basic syntax and programming concepts?

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

    Why I am getting error here?

    Posted: 29 Jun 2021 11:14 PM PDT

    Question :

    You are given a sorted unique integer array nums
    .

    Return the smallest sorted list of ranges that cover all the numbers in the array exactly. That is, each element of nums
    is covered by exactly one of the ranges, and there is no integer x
    such that x
    is in one of the ranges but not in nums
    .

    Each range [a,b]
    in the list should be output as:

    • "a->b"
      if a != b
    • "a"
      if a == b

    Example 1:

    Input: nums = [0,1,2,4,5,7]

    Output: ["0->2","4->5","7"]

    Example 2:

    Input: nums = [0,2,3,4,6,8,9]

    Output: ["0","2->4","6","8->9"]

    Example 3:

    Input: nums = []

    Output: []

    Example 4:

    Input: nums = [-1]

    Output: ["-1"]

    Example 5:

    Input: nums = [0]

    Output: ["0"]

    Answer I did:

    /** * Note: The returned array must be malloced, assume caller calls free(). */ char ** summaryRanges(int* nums, int numsSize, int* returnSize){ int i,j=0,k=0,y=0; if(numsSize==0) { *returnSize=0; char**p=NULL; return p; } for(int z=1;z<numsSize;z++) { if(nums[z]!=nums[z-1]+1) y++; } char**p=(char**)malloc(sizeof(char*)*(y+1)); if(numsSize==1) { (*returnSize)++; p[0]=(char*)malloc(3*sizeof(char)); sprintf(p[0],"%d",nums[0]); return p; } *returnSize=0; for(i=0;i<numsSize-1;i++) { j++; if((nums[i]+1)!=nums[i+1]) { (*returnSize)++; if(j==1) { p[k]=(char*)malloc(3*sizeof(char)); sprintf(p[k],"%d",nums[i]); } else { p[k]=(char*)malloc(7*sizeof(char)); sprintf(p[k],"%d->%d",nums[i-j+1],nums[i]); } j=0; k++; } if(i==numsSize-2) { if(nums[i]+1==nums[i+1]) { p[k]=(char*)malloc(5*sizeof(char)); sprintf(p[k],"%d->%d",nums[i-j+1],nums[i+1]); (*returnSize)++; } } } if((nums[i-1]+1)!=nums[i]) { p[k]=(char*)malloc(sizeof(char)); (*returnSize)++; sprintf(p[k],"%d",nums[i]); } return p; } 

    Error I am getting: Address sanitiser, heap buffer overflow

    Why I am getting this error?

    submitted by /u/_-_-_-me
    [link] [comments]

    No comments:

    Post a Comment