• Breaking News

    Friday, December 4, 2020

    I created a video series to teach the most common patterns and techniques to pass coding interviews learn programming

    I created a video series to teach the most common patterns and techniques to pass coding interviews learn programming


    I created a video series to teach the most common patterns and techniques to pass coding interviews

    Posted: 03 Dec 2020 11:00 PM PST

    Playlist: Coding Interview Patterns and Techniques - YouTube

    First Video: https://youtu.be/0l2nePjDFuA

    For anyone learning to program to become a software engineer, I started this series to breakdown the most common types of problems in coding interviews. In each video I start by showing examples on a whiteboard to explain the algorithm, before moving on to the implementation.

    submitted by /u/cs-tutor
    [link] [comments]

    Have ADHD and wanna learn how to code? You can do it!

    Posted: 03 Dec 2020 01:50 AM PST

    I just wanna make a motivational post for my fellow ADHDers. If you are getting distracted while coding, you should try using a Pomodoro timer, it really helps for me as long as I don't do anything that will get me distracted during the pauses. If you are fully focused while coding, you don't have to use one tho.

    Also you may lose interest after a while but that is totally fine, just do something else for a couple days and pick it back up when you get interested again, just don't wait too long so you don't forget everything!

    I've been learning to code on and off for a while now and I might not be going at the fastest pace possible but at least I'm having alot of fun while learning!

    If you are a social person you could try getting a coding buddy to get motivated!

    Don't let ADHD get in the way of learning to code! If I can do it you can do it too, never give up! I believe in you!

    If you have any other tips or questions for me and other people with ADHD please let me know!

    Edit: people were saying that ADHD does not make you remember things faster, I heard it somewhere and I remember things fast so I just assumed it was true, sorry my bad

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

    Problem Solving - A guide following Advent of Code - Introduction and Day 1

    Posted: 04 Dec 2020 07:30 AM PST

    Hi,

    I have lost count of how many times I've seen redditors asking about how one would approach a problem and build a solution. Since I am attempting to follow Advent of Code this year, I figured I would comment on my approach.

    We'll see how long I can keep it up - I am already behind and won't be able to do this daily, but I hope to be able to catch up on weekends regularly.

    A few things:

    I am going to do this in JavaScript. I want to document my thought process in finding the solution more than I want to show how to write clean and good code. Expect me to take a few shortcuts here and there...

    AoC will provide input files; I usually just throw them into a text editor and run search/replaces until I have a more usable format. Since there is a lot of data, I am not going to do that here. I will create a parser and display code with the data snippet from the problem description. I'm considering to use JSbin where I might offer a textarea that the full data can be pasted in, or just include all of the data. That will most likely not happen in the first few days, though. (Too much work, I'll reconsider if anyone cares about this...)

    Finally, please comment plenty. I'd love to hear if anyone finds these useful and what I can do to improve my presentation.

    Day 1a

    Right, this is just the "Two sum problem", I know what it is, and I know how to solve it. There isn't terrible much here that I can explain about my thought process, unfortunately.

    The solution can be described as follows: Iterate the array. For each value that you encounter, see if you have the complementary value stored already. If so, you have your answer. If not, store the value that you have just encountered, so that you'll find it at the correct time.

    We store values in a dictionary structure that allows efficient lookup.

    The problem often asks for the position of the elements in the array; but we can ignore that here.

    Okay, converting the input is straight forward: We get a text (we always do), and for now, we need to get a number per line.

    So, I am going to split the text into lines (and I can google that for any language), and then turn the resulting texts into numbers. There's multiply ways of doing that. JavaScript arrays allow me to use the map-function, but a for-loop would have been fine.

    The type conversion is one of the things I'm going to do quick and dirty and JavaScripty.

    [ETA: And then I forgot to copy and paste that part.]

    let data = `1721 979 366 299 675 1456` function convert(input) { return input.split("\n").map (value => {return 1 * value;}) } 

    And the solution:

    function reportRepair1(input) { let target = 2020 let dic = {} for (let i = 0; i < input.length; i++) { let missing = target - input[i]; if (dic[missing] !== undefined) { return input[i] * missing } dic[input[i]] = true; } } 

    More JavaScript trickery: An object can have numbers as field names; and I just check if a field has been assigned, i.e. if that number exists or not.

    Like I said, not much to see here, since I didn't need to think of a solution. But that is about to change:

    Day 1b

    Okay, we are facing the three-sum puzzle now, and I haven't encountered that yet. I don't think the dictionary-trick will work here. For each number I am looking for, I need to test every possible combination of the two remaining numbers.

    target = 10. Number under consideration is 2. Now we'll have to check if we have [1+7, 2+6, 3+4, 4+4] , oh, and the two would have to be a different two then the one we're currently working with....

    Right, forget all about that, immediately. I see no shortcut other than to brute-force my way through this. But n3 seems a little excessive. Surely, that can't be right and there must be something I can do to skip stuff? Of course: When the first two numbers are already equal to the target, or larger, I don't need to see if any third numbers sums to the target. (Upon double checking, I see that zero-values are not explicitly excluded, so better fix that...)

    And what does that mean, now?

    Sum the first two values. If they are less than the target, see of any of the remaining values complete our sum.

    If not, sum the first and third value. If they are less than the target ... you get the picture.

    So, a double-nested-loop it is.

    What's going to kill me here? I need to make sure that none of the values I pick are going to be picked twice or three times. And I can't pick a number beyond my input array.

    So, I will just count up... increase the third value until it maxes. If it maxes, increase the second value, and reset the third one.

    When the second value maxes, increase the first, and reset the other two:

    [1][2][3][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ] [1][2][ ][3][ ][ ][ ][ ][ ][ ][ ][ ][ ] [1][2][ ][ ][3][ ][ ][ ][ ][ ][ ][ ][ ] ... [1][2][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][3] [1][ ][2][3][ ][ ][ ][ ][ ][ ][ ][ ][ ] [1][ ][2][ ][3][ ][ ][ ][ ][ ][ ][ ][ ] ... [1][ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][2][3] [ ][1][2][3][ ][ ][ ][ ][ ][ ][ ][ ][ ] ... [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ][1][2][3] 

    Like that. Whenever the first two are too large, I can skip checking all of the third numbers.

    function reportRepair2(input) { let target = 2020 let i = 0; let j = 1; let k = 2; while (input[i] + input[j] + input[k] !== target) { if (input[i] + input[j] > target) { j++; k = j + 1; } else { k++; } if (k >= input.length) { j++; k = j + 1; } if (j >= input.length - 1) { i++; j = i + 1; k = j + 1; } } return (input[i] * input[j] * input[k]) } 

    And there you have it. I already solved day two but won't be doing m,y write-up just yet. It is a little more involved, so I hope to be able to be more descriptive about my solutions. These really were fairly straight forward to me. Starting on day 3, I will attempt to write as I code, so that I am not forgetting parts of my process.

    I am not sure how long reddit will allow me to edit this post, but I will try and interlink this little series as I write it.

    Also, a few final words: These have been written in order to solve the problem at hand. Some cleaning up is in order here. I would usually not return the final product, but either the three values, or their positions. Over in the aoc reddit I saw an extended version that asked for n values to sum up to m. That would probably have yielded a nice recursive solution that I think I might prefer even for this. (anyone interested in a solve for that?)

    (Premature optimization may be bad, but I believe that high levels of abstraction are almost always a good thing and worthwhile. )

    Problem Solving - A guide following Advent of Code - Day 2

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

    Problem Solving - A guide following Advent of Code - Day 2

    Posted: 04 Dec 2020 10:27 AM PST

    Hi,

    I have lost count of how many times I've seen redditors asking about how one would approach a problem and build a solution. Since I am attempting to follow Advent of Code this year, I figured I would comment on my approach.

    Problem Solving - A guide following Advent of Code - Introduction and Day 1

    Day 2a

    Like day 1, I've already finished day 2. I've seen the first task for tomorrow and can assure you that I haven't touched it and nothing seemed to be immediately obvious to me.

    Day2 is still very much straight forward. Count the letters, compare the numbers, right?

    First of all, I should structure my data again. Since the format is highly regular, I'll just use a bunch of String splits again:

    let data = `1-3 a: abcde 1-3 b: cdefg 2-9 c: ccccccccc` function convert(input) { input = input.split("\n").map (value => { obj = {} value = value.split (/[\- \:]/g) return { low : value[0], high: value[1], target : value[2], password : value[4] } }) return input } 

    String.split() can use regular expressions rather than a single character; I just played around until I had this right. Alternatively, I could have done multiple splits. I am sure there is a fancy way of dealing with the space after the colon, but I'm quite happy with an empty array element.

    The solution is very much straight forward still here. Just count how many times target appears in password. I googled javscript count substring - I know that string.indexOf() allows me to set a starting point and wanted to look up the syntax. The idea here was to loop and look for the next occurrence after the last one, count them, and stop when no more matches were found.

    The first hit gave me a nice regexe solution, though. Much easier this way.

    function PasswordPhilosophy1(input) { count = 0; input.forEach(obj => { let re = new RegExp(obj.target, "g"); let count = (obj.password.match(re) || []).length; if (count >= obj.low && count <= obj.high) { this.count++ } }, this) return count } 

    So, I am iterating my data, for each entry I check how many hits there are, and I increase a counter if I like the number. (Note the passing of this into the callback function. This is an incredibly powerful feature! Doubly so if you combine it with binding ...)

    Day 2b

    Nothing much to see here, really. Check if the character shows up at the desired positions. I eff'ed up the +1 to compensate for the "we start counting at 1 like a bunch of crazy people" at first; and I am sure it took me longer than I am willing to admit to get the boolean checks right.

    function PasswordPhilosophy2(input) { count = 0; input.forEach(obj => { let pos1 = obj.password.charAt(obj.low + 1) == obj.target let pos2 = obj.password.charAt(obj.high + 1) == obj.target if ((pos1 && !pos2) || (!pos1 && pos2)) { this.count++ } }, this) return count } 

    Not much of a change here, really.

    Hope you liked this despite the lack of actual problem solving; day 3 is looking much more promising. All comments appreciated.

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

    What you love most about coding?

    Posted: 03 Dec 2020 11:27 PM PST

    Programming is one of the most exciting as well as sometimes stressful job to do. Despite many failures, we are still here to do more coding. We love to code and make our ideas come into life. So let's discuss "What you most loved about coding?".

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

    How do you find the execution time of a program in java?

    Posted: 04 Dec 2020 10:27 AM PST

    I have to compare sorting algorithms and have to measure the execution time for each algorithm. How do i do that? Does it show in the compiler or anything?

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

    How do i compare sorting algorithms using files with randomly generated numbers?

    Posted: 04 Dec 2020 09:46 AM PST

    I have to compare sorting algorithms. As input, i have to use randomly generated numbers saved in a file. I have to make 5 files of different sizes.

    How do i do this? (I'm using Java) I guess i can store randomly generated numbers in a file with a while loop and the random class?

    But then how do i use them as input for the array so that i can sort them?

    Someone please help!

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

    Creating a Twilio phone interface. Is it possible to have a purely web-based calling interface that doesn't suck with current tech limits? If not, what kind of language would be most appropriate?

    Posted: 04 Dec 2020 09:16 AM PST

    I've seen phone interfaces that aren't great. Google Hangouts, the facebook version inside messenger, maybe another one or two. These web uis seem like they were made 15 years ago. The main problem is that they all seem to have terrible audio quality and I'm not sure whether that's a browser issue or a problem with the service itself. I'd assume this is why Zoom requires a downloadable for every meeting? Quality assurance is the main selling point for Zoom.

    Should I try to code out a decent quality Twilio app with the web programming I already know or would it be far better to learn C and build windows and osx apps to do the same thing?

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

    I want to create and NFC to NFC app (android to android, ios to ios, or ios to android). Is this possible? I'm only finding Phone to device NFC applications.

    Posted: 04 Dec 2020 08:37 AM PST

    I want a user to open the app, then another user can place their phone nearby. What modules/packages/libraries in ios/android do this?

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

    Tips for working on a project when you don’t have your project code with you ?

    Posted: 04 Dec 2020 08:29 AM PST

    Hey guys , silly me forgot to use Git and I didn't email myself my IDEA project.

    I brought my laptop with me but don't have my project code with on here for tomorrow morning when I was planning to go work in a cafe before work.

    Any tips for working on projects you don't have with you?

    Is it better to write interfaces in this case ? Write tests so when I get back I can implement features fully ?

    Just would love to know how you guys would tackle an issue like this as I think it's quite a useful skill to be able to work on a project in a worst case scenario.

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

    Hello! I am having issues with the Python 3 print() function not outputting anything.

    Posted: 04 Dec 2020 08:08 AM PST

    Hello! I am very new to programming, as well as this sub! I would appreciate any input!

    I am attempting to find and list any "Open Reading Frames" in a DNA fasta file. I need to find out how many there are and how long they are. However, my problem(at the moment) is not the coding, it is the fact that Python refuses to print out my results in a visible format!

    I have tried using things like print(stops, flush=True), moving the variables inside and outside the function, messing with the indentations, and of course, I have spent hours googling through Stack Overflow. Yet it does not seem like anyone has had this specific problem.

    The one thing that did work was using codelens - it output the numbers as expected!! I feel like I have been banging my head against a wall for hours now..

    Here's the full version(it is lacking the DNA sequence file):

    https://pastebin.com/LX2L75sK

    Here's the referenced section of the sequence file:

    https://pastebin.com/Vppfs8ft

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

    void question c++

    Posted: 04 Dec 2020 11:00 AM PST

    hello, with the following code:

    void make_sandwich() {

    std::cout << "bread\n";
    std::cout << "egg\n";
    std::cout << "cheese\n";
    std::cout << "avocado\n";
    std::cout << "bread\n";

    }

    int main(){

    make_sandwich();

    }

    How come I need to use int main to execute the void make_sandwich and why cant it execute itself without the int main?

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

    please help me with my java code for a magic square

    Posted: 04 Dec 2020 10:50 AM PST

    so i have an assignment for a magic square class and this is my code so far, I haven't found any issues but how do should i complete the last two methods: complement() it should calculate the complementary magic square, toString() it should represent the magic square as a text with each line seperated from the other, each in a new line, with spaces between every number.

    here is my code so far:

    public class MagicSquare { private final int[][] square; //a constructor for the magic square public MagicSquare(int[][] square) { this.square = square; } private static final String SPACE = " "; private static final String COMMA = ","; /* * a method that shows the numbers in the magic square */ public static String showMagicNumbers(int k) { String magicNumbers = ""; for (int i = 0; i <= k; i++) { magicNumbers += (int) (Math.pow(i, 3) + i) / 2 + COMMA; } return magicNumbers; } //a helping getter method that returns the magic number private int getMagicNumber(final int n) { return (int) (Math.pow(n, 3) + n) / 2; } /* * this method returns if the matrix is a magic square or not */ public boolean isMagicSquare() { final int sum = getMagicNumber(square.length); if (sum == getSumOfPrimeDiagonal() && sum == getSumOfSecondaryDiagonal() && sumOfRowNumbersIsEqual(sum) && sumOfColumnNumbersIsEqual(sum)) { return true; } return false; } /* * this method returns if the matrix is a semi-magic square or not */ public boolean isSemimagicSquare() { final int sum = getMagicNumber(square.length); if (sumOfRowNumbersIsEqual(sum) && sumOfColumnNumbersIsEqual(sum)) { return true; } return false; } /* * helping method that calculates the sum of the prime diagonal. */ private int getSumOfPrimeDiagonal() { int sum = 0; for (int i = 0; i < square.length; i++) { sum = sum + square[i][i]; } return sum; } /* * helping method that calculates the sum of the secondary diagonal. */ private int getSumOfSecondaryDiagonal() { int sum = 0; for (int i = 0; i < square.length; i ++) { sum = sum + square[i][square.length - 1 - i]; } return sum; } /* * a boolean helping method that decides if the sum of the row numbers is equal or not. */ private boolean sumOfRowNumbersIsEqual(final int sum) { for (int i = 0; i < square.length; i++) { int rowSum = 0; for (int j = 0; j < square.length; j++) { rowSum += square[i][j]; } if (rowSum != sum) { return false; } } return true; } /* * a boolean helping method that decides if the sum of the column numbers is equal or not. */ private boolean sumOfColumnNumbersIsEqual(final int sum) { int rowSum = 0; for(int i = 0; i < square.length; i++) { rowSum = 0; for (int j = 0; j < square.length; j++) { rowSum += square[j][i]; } if(rowSum != sum) { return false; } } return true; } public complement() { } public String toString() { } } 
    submitted by /u/sas666
    [link] [comments]

    Executing code in the browser: JavaScript, WebAssembly and coding in the browser.

    Posted: 04 Dec 2020 10:49 AM PST

    So, we all learn that JavaScript is the language that browsers understand to execute code. Then I heard about WebAssembly, which allows coding in a number of languages to be executed in the browser, and in the back of mind I always kind of wondered, if the browser understands JS, how is it that I am learning other languages on websites by executing practice code in those languages...in a browser that only understands JS?

    The answer seems to be, and please correct me if I am mistaken, that coding in the browser and WebAssembly are both essentially still JavaScript. Coding in the browser is allowed by platforms that have been built in JS, and WebAssembly uses a very restricted subset of JS to achieve its goals. I guess WebAssembly might in a way "replace JavaScript" because it's faster and easier (faster for a number of reasons beyond the scope of this post, and easier because you don't just have to write scripts in JS), but it wouldn't really because it's still essentially JavaScript, lol.

    Again, please address any misconceptions I may have, and happy coding.

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

    Self-taught programmers, what made the biggest impact on getting hired?

    Posted: 03 Dec 2020 09:17 PM PST

    This can be anything from networking to creating something unique to anything else.

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

    Java Swing GUI for a C++ backend - is it feasible?

    Posted: 04 Dec 2020 10:41 AM PST

    I'm well aware this might sound kind of stupid but hear me out. I've been looking around and really can't make myself like any available GUI option for C++ - yes, even QT. I do care about making things actually look good for users rather than just being overly complicated terminal programs that only 900 year old scholar hermits from the deepest recesses of the Internet can understand, and I've recently discovered the FlatLaF for Swing which I really like. You might just be thinking 'just use java then' but there are obviously reasons to use any one language over another for any given project and that's not what I'm here to debate.

    Therefore my question is, as the title says, is it possible to connect a Swing GUI to a C++ program? Please tell me if this is something stupid, but if it is stupid yet still possible I'd appreciate knowing that too. Thanks in advance :)

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

    Job offer scams? Brightrace, summitworks?

    Posted: 04 Dec 2020 09:44 AM PST

    I got a call and email from a nice lady that talked alot.

    Up front fee for online training (for my choice of Java, Python, MERN, or MEAN) that only lasts like several weeks, and upon completion and the passing of an evaluation I would be hired onto an 18 month long contract.

    That would be all fine and dandy if it weren't for the upfront fee, that makes it so fishy I wonder if there is any training at all and they just ask for Amazon gift cards as payment.

    I just haven't heard of job listings being fronts for scams before. I don't know that it's a scam necessarily, but the email they sent definitely doesn't look professional or change my mind about them.

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

    Java Arrays

    Posted: 04 Dec 2020 09:37 AM PST

    I am struggling with Arrays. I get them as a concept but when asked to apply them in a problem, I hit a wall. The bjggest issue I have is using arrays with user input. I am currently doing problems on JetBrains and I am struggling hard in the Iterating with Arrays section. I don't want to just blast through it, instead I want to take my time and get a strong grasp on them. If anyone can please give me some resources for in depth examples with solutions. YouTube doesn't seem to have the in depth I am looking for and other sources keep telling me what an array is. If there are books, videos, or other websites or apps to practice. Please send them my way.

    submitted by /u/Rythmic-Pulse
    [link] [comments]

    What database should I use for an expense tracker program?

    Posted: 04 Dec 2020 09:24 AM PST

    I was considering just using a JSON file but they don't store Python objects and while I could create functions that turn objects into dictionaries and vice versa, I wonder if it makes more sense to use a database. I also imagine it'll be easier and faster to pull expenses from a certain month or year using a database.

    I have some limited experience with SQLite but I was wondering if you guys had any suggestions for a better implementation. Thanks!

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

    Can anyone give me some advice?

    Posted: 04 Dec 2020 05:14 AM PST

    I would like to do a game in Java, but I am at the beginning, can anyone give me some advice?

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

    Regular expression

    Posted: 04 Dec 2020 08:59 AM PST

    For those learning python, I need help understanding regular expression, any tips

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

    Suggest a .NET or PHP CMS to a Javascript developer

    Posted: 04 Dec 2020 05:10 AM PST

    I'm a front end developer, mostly working with React and Next.js for my own stuff and a few client sites. I tend to build with a headless CMS and I like the way it keeps things separate. I can almost treat the data coming back from the CMS as variables in my code and I've gotten used to working this way.

    I've had a client approach me to build a very simple brochure site, but they'd prefer to host it themselves and would also prefer that the end client has a 'friendly' CMS to edit content, but they didn't fancy my headless approach as they aren't sure how to support hosting.

    I suggested Wagtail, which being built on the Django framework offers all of this. It also means I can still write easy to understand HTML templates and style them nicely with my css files.

    They've come back and said they'd prefer me to work in .NET or php as thats what they use, and that Wordpress should be a last resort. I agree, because I'm not a fan there. In fact I'm not a fan of PHP at all and building custom themes in Wordpress is time-consuming and leaves too many things open for clients to break unless you cover all cases.

    The end client literally needs to be able to upload the odd new picture, change titles and paragraphs and add testimonials. It really just needs to be dead simple and Wagtail would have been perfect, but alas.

    Any suggestions for a CMS out there that offers this sort of simplicity?

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

    My Intro - I'm moving here for the long haul.

    Posted: 04 Dec 2020 08:42 AM PST

    Hi. I'm halfway to 34. I currently own a small American breakfast and lunch restaraunt on in island in Asia and up until last month was attending an international medical school program in Europe that is taught in English. I was a grunt out of high school (0351 USMC) and after my time went to uni for Biology. I left the USA in 2015 a poor man and volunteered teaching high school math for a year in Micronesia before volunteering again at a buddhist monastary in Nepal before taking paid work in Thailand as an international school science teacher. Invested in btc when it was $4600 and rode that wave up the $14000 which is when I sold out (have sence acquired more of course!) and used the proceeds to start my business and fulfill my dream of going to medical school so I could become an out island doctor.

    Then life said - "Hey guy, you know all those carefully laid plans you made after so many years of hard work and dedication? Meah, no we decided against that."

    First Corona came and shut the island off from all tourism. Still ongoing. Then my manager who I trained from day one and was in charge (and has stake in the company bc I take care of my people and believe on giving others opportunities too) had a catastrophic bike accident and had to be flown back to their home country for rehabilitation and who knows what all.

    Given that I did not have the tuition for the next three years (this one was paid already) and that my business is shuttered until I get a replacement which I have to get to Thailand to do - did I mention COVID and travel restrictions?

    WHY THE FU#K IS THIS GUY RANTING IN THE LEARN PROGRAMMING PAGE!?

    A moment more friend, I beg of you - so basically my life was like KABLOOEY. Can't continue medical school when I have no means to produce the income I need to finish paying for it so instead I say fate has ordained I am not to become a Doctor right now.

    What else? What else can I learn where I dont have to maybe go away to school for years and which will still allow me to live and work where I want and change the world? Computers. Programming. Web development. How else can I launch start ups or help bank the worlds poor or utilize block chain to root out corruptions - to stay free and secure in a world increasingly locked down by tech. The writing is on the wall but it only appeared a month ago.

    Since then I have watched half of Angela's fullstack wed development course on udemy but I stopped at API's because it is too much. I always strive to be the best and I work hard as fuck, please excuse the language. I am not stupid or incapable. During university I bought a derelict sloop rig and rebuilt it before taking a year off to solo sail the Northern Bahamas using analagous navigation I learned from a Bowditch book.

    I need YOUR HELP. I have the money, I have the time (I can devote two years from today to learning FULL-TIME 60+ hours per week).

    My issue is I don't know what to learn or from where.. this stuff all changes so fast and there is so much.. I need help setting my course friends.

    Here is my desired destination - I want to be able to conceptualize an idea (say creating a mobile bqnking app) produce that idea via ANDROID development, and produce a workable product able to use cryptocurrencies. Is this a 2 year destination? No. This is my career goal.

    In 2 years I would like to be hireable as a software engineer or fullstack webdeveloper.

    I am currently working everyday on HTML, CSS, Boostrap and a LITTLE Javascript... the functions and loops and everything is still VERY confusing presently.

    I have a business so I figured I should learn how to make websites first that are responsive and can transition between desktop and phone. I have made 2 websites so far and am working on the 3rd which I will be asking questions about within this forum shortly so I hope you will help me.

    Per my destination though - I want to prepare for the future. I dont want to spend time learning things which will be obsolete in a few years.. I hear a lot about Kotlin and rust and python.. Should I spend much time on Javascript and this stuff or once I get a nice website for my business transition to something else?

    I want to have the abilities that I see these YouTube guys that are half my age have. I am willing, able and competant but the resources are changing and becoming outdated so fast.. I really need a teacher/mentor.. someone to or some people to say hey, read or do this because x and you can learn how to do ir by reading/watching y and you know you are ready to move on to the next thing when you can do z. Then when I am done with that rinse and repeat until I am able to stand on my own feet.

    I have money for a bootcamp but they sound too good to be true and anyway how could I learn as well as understand and retain all of that stuff in only 3 months when I am still struggling to answer the very easy questions on edabit's JavaScript practice after 5 days? Sigh. Life is not fair but that is fine - my lifes dream is on hold or canceled - man up. Get it done. Adapt. So here I am. At learning programming. My name is Triss and it is nice to meet everyone. I will be here for a long time and I would really appreciate your help on my journey and I look very much forward to being able to return to favor in any way possible to you all as well.

    Anybody wanna be an old grunt, sailor, former medschool student and current business owners mentor? I just need an opportunity. Thank you and nice to meet you all once more.

    Post script - all my postings are done via mobile so please excuse any and all typo's!

    -Triss

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

    Recursively Multiply to integers, represented by binary arrays.

    Posted: 04 Dec 2020 02:26 AM PST

    Input: Two integers in the form of arrays in binary format. Example;

    int [] x = {1, 0} and int [] y = {1, 0, 0} which represent int x = 2, int y = 8.

    The book has described an algorithm with its goal to limit the number of recursive calls to 3.

    https://imgur.com/a/eyzVnAw

    It essentially divides the array into 4 arrays: higher order bits of x, lower order bits of x, higher order bits of y and lower order bits of y. Lets call them x1, x0, y1, y0 respectively. The pseudecode then is

    solve(int[] x, int[] y) int[] p = solve(x1 + x0, y1 + y0); int[] higherOrder = solve(x1, y1); int[] lowerOrder = solve(x0, y0); return higherOrder * 2^(n/2) + (p - higherOrder - lowerOrder) * 2^(n/2) + lowerOrder. 

    I am struggling to see what the base case should be here and how to advance from here.

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

    Need advice : Coder's block

    Posted: 04 Dec 2020 07:50 AM PST

    Hi! Im just new to this industry as junior programmer. Lately im having lot of trouble about being self taught developer.

    I find it just too hard to learn anything every day. Whenever I try to code, my mind goes blank as if I didnt learned from documentation. I cant think of logical structure of function, especially business logic and data fetching. I really dont know why Im always stuck at beginner level, but Im still trying to figure out how I can be consistent in learning at the same time, being productive. I love this profession, but I guess I need advice

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

    No comments:

    Post a Comment