• Breaking News

    Saturday, April 10, 2021

    What have you been working on recently? [April 10, 2021] learn programming

    What have you been working on recently? [April 10, 2021] learn programming


    What have you been working on recently? [April 10, 2021]

    Posted: 09 Apr 2021 09:00 PM 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]

    Help a Fire Fighter become a code/developer, please!

    Posted: 09 Apr 2021 08:41 AM PDT

    Hello!

    I'm a 29 year old Fire Fighter, and I desperately need a career change - last week I pulled a kid out of a smoke-logged home. He didn't survive. This job has taken its toll on me, and I have the scars, therapy and PTSD to prove it.

    So I need a change. I've considered my options, and I think they're quite limited.

    I've been a Fire Fighter for 9 years. Before that, I was a legal administrator, then technical support.

    I know multiple languages (Chinese, English, French), am adept at learning new languages, and am an avid problem-solver. I'm quite technologically minded, and have no problem reading lines and lines and lines of information, editing and altering (I did this very proficiently in my legal role).

    So I've decided to try to become a developer.

    I have no university degree. I'm thinking of going for a bootcamp of some sort, but I have no idea which to pick.

    I am an absolute beginner when it comes to anything to do with coding.

    I'd like to learn things which has wide-reaching career opportunities, so that I could branch out and apply to anywhere, with the possibility of being accepted.

    I really think I'd be good as any type of developer. I just need some direction and guidance.

    As a fire fighter in the UK, I have a LOT of free time. 6 out of 8 days, I don't work, so I have a lot of time to work a full time and still learn anything I want. Ideally, I don't want to leave my job, for financial reasons, until I'm sure about being a developer as a viable route.

    Could someone help set me on a the path?

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

    If you're finding programming difficult, you may have another issue to address first

    Posted: 09 Apr 2021 08:04 AM PDT

    Me: 33, visual artist with a master's degree in new media art, technical mind, historically "bad at math" but I pick up technical fabrication processes quickly, can design just about anything that doesn't require serious structural considerations. From my teens, I had always wanted to learn how to program and had learned fundamentals fairly intuitively but was just not able to work on more complex projects with much success.

    It became apparent that my issue was not that I couldn't learn to program - the syntax although different across languages follows a consistent logic - every language is used to instruct the same kind of machine in every case, after all (an electronic microprocessor). My issue was that I was missing fundamental math concepts that while not even directly used in programming, were crucial to the guiding overarching logic of programming.

    So I spent 6 months relearning math (pre algebra to trigonometry) on Khan Academy. It was tough - I realized how much I didn't know and how lazy my instructors had been in just passing me (I made C's all through highschool math courses). But my ability to understand intuitively what I am looking at in code (really any code, once I know the simple structure of a language) has improved dramatically. I plan to do a math concept review "booster" this summer, too.

    All this to say - if you're finding the abstraction of programming really hard, I mean, harder than it probably should be (these languages are made by humans for humans!) then it might not be programming itself. You might want to review your fundamental math.

    • Edited for typos.
    submitted by /u/prodmod
    [link] [comments]

    How do you not overthink building code/problem solving?

    Posted: 09 Apr 2021 08:16 PM PDT

    So I spent half a day debugging a piece of code I was trying to write, trying a whole different variation of solutions none of which worked.

    At some point it just clicked to me that what I was trying to achieve only required me to change one line of code to reference something.

    Granted I've only been learning code for a couple months, any tips to reduce trial and error or is it all just personal experience?

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

    How non-ending programs look like?

    Posted: 09 Apr 2021 01:39 PM PDT

    I'm a (reeaaal) begninner, and this is a question I always had.

    In the begin, we learn how to make a code that will do something and then ends. Or it will be looped to execute the same thing and, for a determined reason, end eventually.

    A app, in example, doesn't end until you closes it. It awaits for a command from the user and responds to it. A bot (most especically Discord ones) also waits for a input all the time.

    How these examples work like this? Are they a "while" looping that won't stop until you define a variable "turned on" to false? or something like that

    (If my question is too stupid just say it and I can delete it)

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

    Does the length of the code affect the speed of the code or is that only affected by what the code is doing?

    Posted: 09 Apr 2021 10:30 PM PDT

    I'm learning Swift and I wanted to know the correlation between the length of the code towards the performance of the code. I know that it'll affect the binary size but I want to know about the performance. Does it vary per programming language? I'm a fairly new coder.

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

    I'm having so much fun

    Posted: 09 Apr 2021 08:34 PM PDT

    I'm in the middle of learning HTML and CSS and albeit I'm not that far into it, I'm still having so much fun. After hearing so many people point out the fact that just because coding can be lucrative doesn't mean it's for everyone I started to get a bit worried at the possibility I might not enjoy it but here I am, confused as hell at times, but persevering none the less.

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

    Getting Started on Linux Development

    Posted: 10 Apr 2021 12:08 AM PDT

    I have been working on AI projects using python for quite some time now. However, I am currently working on a project which involves developing apps on KanOS which is basically Linux. My question is where should I get started for me to have a smooth experience on this project of mine?

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

    The Odin Project vs Free Code Camp

    Posted: 09 Apr 2021 12:10 PM PDT

    I'm looking to become a full stack developer, and have been referred to The Odin Project, and Free Code Camp.

    Which would be recommended? Which is best?

    Would both of them be accredited and recognised by organisations and companies?

    I'm looking to become as employable as possible after it...

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

    Why should you cache database results in redis instead of local storage?

    Posted: 09 Apr 2021 09:52 PM PDT

    For example, if I'm displaying a database of food and I only want to display 20 at a time I could store the entire result in redis and return the top 20 results. However, why wouldn't I just return the entire result and store it in local storage to save a trip to my server?

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

    How do you rate colt Steele's course on Udemy.

    Posted: 09 Apr 2021 09:25 PM PDT

    I've bought Colts Steele's course called Web dev bootcamp on Udemy. Just wanted to know your opinions of it.

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

    What are some sites to explore interesting coding problems (and their solutions)?

    Posted: 09 Apr 2021 03:21 PM PDT

    Codegolf is a close one but it's mainly about writing the shortest or the fastest code. I want something like Project Euler but like a forum, so I can just discover others' eye-opening solutions without solving the problems on my own first.

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

    file input and functions outside the main help

    Posted: 09 Apr 2021 10:54 PM PDT

    I have an assignment for my CS 135 class due tomorrow night and for some reason when the user types in the filename it goes on an infinite loop of couting "file successfully opened". the program is also not recognizing that 1Size = labelSize even though it should know what 1Size is. I can't change the main function at all. does anyone know how to fix these problems? don't do the assignment for me or anything bc i could get in trouble, so just guide me or inform me of any errors. here's my code so far

    #include <iostream> #include <fstream> #include <iomanip> using namespace std; // prototypes void header(); void openInputFile(ifstream&, string); bool openOutputFile(ofstream& oFile, string fname); void outputChar(ofstream&, int count, char l); void makeEight(ofstream& oFile, int size, char c); void makeTriangle(ofstream&, int size, char c); void makeSlash(ofstream& oFile, int size, char c); string createOutputFilename(string typeString, int labelSize); bool readRecord(ifstream& iFile, string& typeString, int& lSize, char& c); // Do not change main int main() { ifstream iFile; ofstream oFile; string ofName; string typeString; int labelSize = 0; char labelChar = 0; int recordCount = 0; bool done = false; header(); cout << endl << endl; // Open input file openInputFile(iFile, "Input Specification File: "); // read all records from the specification file. while (true) { // read a record from the file done = readRecord(iFile, typeString, labelSize, labelChar); // verify that it worked, if not exit. if (!done) { cout << "Finished processing input file" << endl; cout << recordCount << " Shapes Created " << endl; iFile.close(); oFile.close(); exit(0); } recordCount++; // create the output filename ofName = createOutputFilename(typeString, labelSize); // open output file if (!openOutputFile(oFile, ofName)) { // output a message if the file did not open cout << "Output file \"" << ofName << "\" did not open" << endl; cout << "File \"" << ofName << "\" not generated" << endl; } else { // output a message that the file successfully opened cout << "File \"" << ofName << "\" successfully opened" << endl; // call appropriate function if (typeString == "figureEight") makeEight(oFile, labelSize, labelChar); else if (typeString == "triangle") makeTriangle(oFile, labelSize, labelChar); else if (typeString == "slash") makeSlash(oFile, labelSize, labelChar); } // close the shape file so that we can re-use oFile variable oFile.close(); } } /* header: Prints a header for the program input: Not Available output: Not Available */ void header() { cout << "Shipping Label Creator" << endl; cout << "\t _" << endl; cout << "\t (_)" << endl; cout << "\t |" << endl; cout << "\t <---|--->" << endl; cout << "\t |" << endl; cout << "\t __ | __" << endl; cout << "\t |\\ /^\\ /|" << endl; cout << "\t '..-' '-..'" << endl; cout << "\t `-._ _.-`'" << endl; cout << "\t '" << endl; } // function documentation here bool readRecord(ifstream& iFile, string& typeString, int& lSize, char& c) { bool flag = true; string string1; getline(iFile, string1); iFile >> typeString; iFile >> lSize; iFile >> c; // This return is included because // value returing functions must // return a value. It must be // replaced by the appropriate return // value in the students code. return flag; } // function documentation here string createOutputFilename(string typeString, int labelSize) { ofstream oFile; labelSize = lSize; oFile.open(typeString + "_" + to_string(labelSize)); // This return is included because value // returing functions must // return a value return typeString; } // function documentation here void openInputFile(ifstream& iFile, string prompt) { prompt = "Input Specification File : \n"; string inputFileName; iFile.open(inputFileName); while (!iFile.is_open()) { cout << "Error - ""error"" did not open. Try again\n"; cout << prompt; cin >> inputFileName; iFile.open(inputFileName); } } // function documentation here bool openOutputFile(ofstream& oFile, string fname) { return true; } // function documentation here void makeEight(ofstream& oFile, int size, char c) { } // function documentation here void outputChar(ofstream& of, int count, char l) { } // function documentation here void makeTriangle(ofstream& oFile, int size, char c) { } // function documentation here void makeSlash(ofstream& oFile, int size, char c) { } 

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

    GitHub: Best practices for committing code containing auth/password info while omitting the tokens

    Posted: 09 Apr 2021 08:38 PM PDT

    Newbie android dev here. This is my first time trying to commit code that contains tokens/passwords. There are a few locations within the code where I have to store sensitive tokens in order to run the point of sale SDK that I've integrated.

    What's the best way to commit/push code to a repo while taking sure the tokens/passwords aren't shared as well? Do I have to go through the app and remove them all first and copy/paste them back in each time I want to test it? Is there a way to secure certain files (or the string values folder) in a commit? Are there any helpful tools in Android Studio to assist with this?

    One reference I found mentioned to only commit certain files at a time but that seems tedious and less than ideal. I'd love to hear others' best practices to resolve this issue since I have a knack for usually finding the hardest way to accomplish something and trying that first. lol TIA

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

    What do you guys do to retain the information you just absorbed?

    Posted: 09 Apr 2021 04:00 PM PDT

    I'm brand new to programming, and I decided to start from basics and try out HTML at freecodecamp.org. I just finished the first course today after a few hours, and I really enjoyed it. A lot of it was foreign to me and sometimes it was just bewildering but I eventually figured it all. I am feeling overwhelmed but content with my progress today.

    Before I continue, I was doing to take a break for the rest of the day. But I am worried about forgetting the information I learned here or how to apply it. I know I just started, and I know that I could easily just redo the course, but I'm wondering if you guys had any better suggestions for keeping yourself sharp/not forgetting things.

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

    [C#/.net core] My model has constraints such as [Required], [MinLength] when unit testing with in-memory database these constraints are not applied, should my controller do these checks in it's body?

    Posted: 09 Apr 2021 10:40 PM PDT

    Hi, as per the question my controller checks cases such as valid email format but leaves the required fields to be handled by the model. Should my controller also have these checks? Does this violate the D.R.Y. Principle?

    When Unit Testing I have found that duplicate username will be added, empty fields won't throw errors etc. I am using the EF Core In-Memory database for this. Any help is appreciated!

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

    How to build a programmer mindset for a programming beginner?

    Posted: 09 Apr 2021 10:09 AM PDT

    Most of these tutorials tell you the nuts and bolt on how to program, but what about your mindset? Are there any good resources (Videos, Courses, or Etc..) that can help be develop a programmer mindset by structuring my thinking and organization for when you program?

    I have some experience with Python from many years ago that it almost forgotten but, the Object Oriented Programming was over my head and I couldn't wrap my head around it the structure.

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

    Learning to code - First Raspberry Pi!

    Posted: 09 Apr 2021 04:30 PM PDT

    Just bought my first Raspberry Pi! I want to teach myself coding. Anyone have any cool projects they are working on using their pi? What language do you code in? And any suggestions for someone starting out/any advice?

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

    Raspberry Pi Local sound Tiggers a Relay

    Posted: 09 Apr 2021 11:35 PM PDT

    I don't know how I would start on this part of my project. I need a motor to spin whenever sound is played locally raspberry pi. Ideally, the motor will switch on even when a USB DAC is plugged into the pi and is playing audio. I know nothing about python or how a Raspberry pi works, so ELI5.

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

    Where to start to learn how to make farming game apps?

    Posted: 09 Apr 2021 10:58 PM PDT

    I want to start learning how to make game apps? I'm learning python right now !

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

    C++ CS 135 tutoring

    Posted: 09 Apr 2021 10:56 PM PDT

    Does anyone know of any good online c++ tutors? It doesn't matter if they're free or not.

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

    Can I dig into Cyber Security after? if I chose a Software Engineering major over Computer Science? Or are there things that I should learn in the Computer Science major?

    Posted: 09 Apr 2021 06:43 PM PDT

    Let's talk about it in general, I hope you you got my point, I mean, are there some basics that are taught in a CS major and not in a SE major?

    How big is CS compared to SE? I feel like CS is like this the major "major" and you can then dig into anything after because you have the basic knowledge in several subjects, and that SE is only about engineering a software and it's all about the software cycle "only"

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

    [Swift] Thread 1 "[<RPS_Game.IntroViewController 0x7fd146d06c30> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key paper."

    Posted: 09 Apr 2021 09:56 PM PDT

    Doing a project for class where I have to make a Rock Paper Scissors game on Xcode using Swift. When I built the app it tested with no errors but when I run the app I get a black screen on the simulator and this weird error (see code block below). I looked at my code and storyboard file to make sure they were all right (according to what I looked up) but I still keep getting this same message.

    1 libsystem_kernel.dylib`__pthread_kill: 2 0x7fff61131330 <+0>: movl $0x2000148, %eax ; imm = 0x2000148 3 0x7fff61131335 <+5>: movq %rcx, %r10 4 0x7fff61131338 <+8>: syscall 5-> 0x7fff6113133a <+10>: jae 0x7fff61131344 ; <+20> 6 0x7fff6113133c <+12>: movq %rax, %rdi 7 0x7fff6113133f <+15>: jmp 0x7fff6112b629 ; cerror_nocancel 8 0x7fff61131344 <+20>: retq 9 0x7fff61131345 <+21>: nop 10 0x7fff61131346 <+22>: nop 11 0x7fff61131347 <+23>: nop 5-> Thread 1: "[<RPS_Game.IntroViewController 0x7fd146d06c30> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key paper." 
    submitted by /u/Due-Half-5197
    [link] [comments]

    I learn a lot better with video tutorials than with Text guides, documentations or books

    Posted: 09 Apr 2021 09:42 PM PDT

    Heya, Ive been studying code for about 2.5 months and I've realized that I understand concepts a lot clearer and better when I watch video tutorials compared to reading websites documentation or guides. I've never really been a reader, and haven't read many books in my life other than the ones I had to read in high school. I've been somewhat forcing myself to read documentation more and usually dedicate a portion of my study sessions to reading documentation. Although I can tell I progress slower doing so, I feel like it might be helpful to learn to become a better documentation reader.

    Has anyone else ever gone through something similar?

    Should I just stick to my best learning method to progress as fast as possible? Or do you think I should improve my reading skills.

    Cheers.

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

    Audio Deepfake Githubs?

    Posted: 09 Apr 2021 09:25 PM PDT

    Hi! What are the best easily integratabtle audio deep-fake files (<10 seconds of input required). Would appreciate it!

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

    No comments:

    Post a Comment