• Breaking News

    Saturday, September 1, 2018

    Want to become a software engineer - Am I able to? learn programming

    Want to become a software engineer - Am I able to? learn programming


    Want to become a software engineer - Am I able to?

    Posted: 31 Aug 2018 04:16 PM PDT

    Hello,

    Preface, I may be in the wrong subreddit for this, and if I am I apologize.

    To start, I graduated uni with a degree in biology and a minor in cs. As it turns out, I'm not a big fan of lab work, and/or relying on grants. I know C++ pretty well, visual basic, and have some python knowledge, and I somewhat know how to use github, that's it. Currently learning SQL, then JavaScript.

    What exactly do I have to... do? I don't quite know what requirements I need, or what kind of experience or knowledge I'm missing. I'm worried i may not even know what I'm missing.

    If anyone could help me with things that I can do to:

    1. Further my cs knowledge (in languages, processes, general things I need to know, etc.)
    2. To actually stand a chance at getting a software engineering job

    Am I even able to get a software engineering job without a cs major or am I screwed?

    Thanks for taking the time to help me out, in advance!

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

    I've finished Automate the Boring Stuff... What next?

    Posted: 31 Aug 2018 05:54 PM PDT

    I want to go deeper into Python, but I don't know what resources to use. Should I look for more videos or should I look for books to read? Thanks in advance.

    submitted by /u/not-bren
    [link] [comments]

    Enlight - Learn to code by building projects

    Posted: 31 Aug 2018 03:54 PM PDT

    Learning to program was fun at first, but then got boring. I wanted to implement what I had learned, and so I started to build fun mini-projects and I ended up learning so much more. Two years ago, I created a blog with a couple programming project tutorials. Now, I've built a whole platform. I'd love to hear your thoughts and suggestions to improve the learning experiences of anyone learning to code. Also, if you'd like to contribute, be sure to let me know.

    Here's the site: https://enlight.nyc

    Thanks!

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

    Python

    Posted: 31 Aug 2018 09:51 PM PDT

    Hello, I am learning python as my first computer language, are there any tips that I should know or just things that would be helpful? Thank you guys.

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

    How and why is argument documentation written?

    Posted: 31 Aug 2018 10:18 PM PDT

    When looking through documentation for functions you sometimes see the notation:

    soemthing(argument1[, options]);

    Like: https://developer.mozilla.org/en-US/docs/Web/API/Blob

    Blob(blobParts[, options])

    Why in the world is it phrased like that? What does it mean?

    From what I understand, the intent of what it's saying is: new Blob([parts of the blolb],{an object representing configurations})...

    But who through it would be a good idea to phrase it like "Blob(blobParts[, options])" and why?

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

    Resources for practicing pure javascript?

    Posted: 31 Aug 2018 09:29 PM PDT

    I have a JS interview at a startup next week. There will be two components: whiteboarding + pair programming. I'm good with the whiteboarding (more or less) but I'm not quite ready for the pair programming.

    The recruiter wasn't specific with what exactly the pair programming will entail but my guess is that I'll be Tic tac toe type of stuff or perhaps DOM manipulation.

    Are there any recommended resources that I can use to help prepare myself for the interview? Like tutorials for building simple projects catered towards exploring JS fundamentals.

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

    Anyone know of a good machine learning book with practice problems?

    Posted: 31 Aug 2018 12:43 PM PDT

    Not just a machine learning book that has examples. but a textbook type book with practice problems/exercises and solutions to them?

    I can find lots of machine learning books that don't have exercises. Instead, these books just show examples but don't have any questions/problems (the best way to learn is by doing problems).

    Thank you!

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

    After 4-5 months of learning web development, I deployed my first web app!

    Posted: 31 Aug 2018 09:56 AM PDT

    I have been learning web development for the previous 4-5 months and I have finally deployed my first web app, Orbittle, it's basically a platform where you can create new posts and comments. You are also able to sign up for a new user, edit comments and posts. It's not the prettiest thing in the world, it still needs a lot of work design-wise. I haven't really tested the website on a lot of devices, but it's safe to assume I will be needing more media queries.

    Technologies used:

    • Node
    • Express
    • MongoDB
    • Passport

    It has been really hard making this app for one simple reason, I was taking care of all design and code. Yes, it's not that pretty design-wise, but with all the things going on in the back-end, I really just wanted a functional design, be it bad or not. Please check out the website and tell me what you think!

    You can find the website here: https://orbittle.herokuapp.com/

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

    Help finding a coding talk

    Posted: 31 Aug 2018 07:21 PM PDT

    Hi guys,

    Trying to find a coding talk that I saw a while ago. The guy talks about the need for us to change the way we code. He talks about how we are required to think like computers, and that that shouldn't be the case. He live demos a program that "live compiles", for lack of a better term, changes that he makes and shows how the changed parameters affect a trajectory on an element in the game. Anyone know where I can find this talk or what it's called?

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

    I’m really confused about what sort of projects I should be working on to make myself a better SOFTWARE ENGINEER

    Posted: 31 Aug 2018 08:23 PM PDT

    I'm probably intermediate level and I've been doing a few projects on my own but none of them feel like they're making me better at software engineering, mostly they just feel like data science implications of programming. (They're mostly in python)

    What are projects that I should be focusing on to make myself better at software engineering not just programming general, should I just contribute to open source?

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

    A possible way to end brute force attacks?

    Posted: 31 Aug 2018 01:18 PM PDT

    Hello

    I am a very noobish progammer, just getting into JS and hopefully goining into a IT major. anyways, I was brain storming last night when I came up with a idea, it may have been done before, to possible end brute force attacks once and for all.

    What I came up with is, if it is possible in real time to detect a attempted brute force attack, a website or service can start logging the attempted passwords, then, it would basically turn into a two-key system, there is a word for it but I do not know it. where the website would use one of the already attempted brute force passwords, use it as a backup for the server, and still require the user given password. So, if a brute force was attempted on a account, they would have no way of getting in seeing how the password they are looking for has already been changed to something they have already entered.

    Say if this was a bank, and someone had a botnet to try and brute force a vulnerable account, you can securely reach out to the client, saying there password has automatically been altered, so you need to enter your old password + the one logged brute force attempted password.

    Tell me if my idea is completely idiotic, been done, or makes no sense. Sorry for lack of technicality

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

    Best daily exercise, recommendations?

    Posted: 31 Aug 2018 08:48 AM PDT

    I've been using https://edabit.com/challenges as an extra practice. I'm just wondering if I've been using a good one or if there is a better one out there. I've heard that something like Project Euler just gets very math heavy. I know that the best practice is projects, I just want to do stuff on the side, edabit helped pick me up a few tips on certain ways to do things on my own projects since you can also see what everyone else had done to solve the problem.

    I've also seen codewars on here, how do they compare? Thanks a lot for your time.


    List of everything suggested so far:

    https://www.codewars.com

    https://edabit.com/challenges

    https://www.hackerrank.com/

    I found this thread which has a lot of things listed too:

    https://www.reddit.com/r/learnprogramming/comments/8r94zk/hey_all_any_websites_to_recommend_as_an/

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

    Learning C++ and C# after Java

    Posted: 31 Aug 2018 07:47 PM PDT

    I'm a junior in a CS program and I am decently fluent in java, C and python. I really want to develop games and I know a lot of games now are written in either c++ or c#. Any tips on making a transition after using primarily java? I'm most comfortable with eclipse can I write with that?

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

    How feasible it is to create a Python to Tcl "interpreter" for a beginner?

    Posted: 31 Aug 2018 07:29 PM PDT

    Imagine there are 1000s of Python scripts that need to be converted to Tcl. How can one do it? What does it take: what knowledge, skills, and what level of experience/skill?

    Does anyone know? Thanks in advance

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

    [C++] Multiplying 2 given matrices wrong output

    Posted: 31 Aug 2018 08:37 PM PDT

    So basically im multiplying 2 matrices given from 2 different .txt files

    matrix1.txt is

    1 0 3 -12 1 0 2

    matrix2.txt is

    4 1 0-1 1 32 0 11 3 4

    the correct expected answer should be inside another .txt file which is

    9.00 -2.00 -1.009.00 9.00 11.00

    • but, im getting an ERROR msg inside the output.txt file instead of the correct matrix answer.

    i hope if someone can find what im doing wrong?

    ____________________________________________________

    here is my code

    https://codeshare.io/29r09M

    or below

    #include<iostream> //#include<curses.h> #include <iomanip> //#include<process.h> #include <sstream> #include <string> #include <fstream> using namespace std; int checkString(string s) { // checks if string has only digits '.' int flag = 0;// initially flag is 0 for (int i = 0; i<s.length(); i++) { if (s[i] >= 48 && s[i] <= 57 || s[i] == '.') {// if string has something instead of digits '.' then make flag 1 and break the loop if (s[i] == '.') { if (s[i + 1] >= 48 && s[i] <= 57) flag = 0; else// if string has something instead of digits after '.' then make flag 1 and break the loop { flag = 1; break; } } flag = 0; } else { flag = 1; break; } } return flag;//return the flag to where the function is executed } int main(int argc, char** args) { string file1, file2, output;// file 1 is input name of file for matrix A, file2 is for B and output is for c string temp = "";//input string from user for(int i=1;i<argc;i++) { string t(args[i]); temp +=t +" "; } //cout<<temp; if (temp.find(";")<50)//checks if it has semi colon in it { int start = temp.find("=", 0, 1);// find first = int close = temp.find(";", 0, 1);// find semi colon file1 = temp.substr(start + 1, close - 1 - start);// cut string between them start = temp.find("=", close + 1, 1); close = temp.find(";", start + 1, 1); file2 = temp.substr(start + 1, close - 1 - start); start = temp.find("=", close + 1, 1); close = temp.length() - 1; output = temp.substr(start + 1, close - start -1); } else// if string does not have semi colons { int start = temp.find("A", 0, 1); start = temp.find("=", start + 1, 1);// check for = int close = temp.find(" ", start, 1);//check for space file1 = temp.substr(start + 1, close - 1 - start);//cut string between them start = temp.find("=", close + 1, 1); close = temp.find(" ", start + 1, 1); file2 = temp.substr(start + 1, close - 1 - start); start = temp.find("=", close + 1, 1); close = temp.length(); output = temp.substr(start + 1, close - start - 2); } //cout<<endl<<file1<<" "<< file2<<" "<< output; double a[20][20], b[20][20];//2 input matrices which are to be multiplied int rows1 = 0, cols1 = 0;// initially rows and columns for A is 0 std::ifstream file(file1.c_str());// read file with matrix A std::string str; ofstream myfile;// define the output file myfile.open(output.c_str()); while (std::getline(file, str))//reading line by line { string s1 = ""; stringstream toint(str); while (toint >> s1) { if (checkString(s1) == 1)// if flag is 1 then print error { myfile << "error" << endl; return 0; } } } std::ifstream filed(file1.c_str()); int prev = 0; while (std::getline(filed, str)) { cols1 = 0; stringstream toint(str); while (toint >> a[rows1][cols1++])// fill in the double data to matrix a { } if (rows1 == 0) { prev = cols1; } else { if (prev != cols1)//checking if all rows have same columns { myfile << "error" << endl; return 0; } } rows1++; } cols1--; int rows2 = 0, cols2 = 0; std::ifstream files(file2.c_str()); while (std::getline(files, str)) { string s1 = ""; stringstream toint(str); while (toint >> s1) { if (checkString(s1) == 1) { myfile << "error" << endl; return 0;}}} std::ifstream fileds(file2.c_str()); prev = 0; while (std::getline(fileds, str)){ cols2 = 0; stringstream toint(str); while (toint >> b[rows2][cols2++]){ } if (rows2 == 0){ prev = cols2; }else{ if (prev != cols2){ myfile << "error" << endl; return 0; }} rows2++;} cols2--; double result[20][20]; //checking if 2 matrices can be multiplied if (rows1 != cols2 || rows2 != cols1){ myfile << "error" << endl; return 0; }else{ // multiplying the matrices for (int i = 0; i < rows1; i++){ for (int j = 0; j < cols2; j++){ result[i][j] = 0; for (int k = 0; k < rows2; k++){ result[i][j] += a[i][k] * b[k][j]; }}} myfile << std::fixed; myfile << std::setprecision(2);// setting output upto 2 decimals for (int i = 0; i<rows1; i++){ for (int j = 0; j<cols2; j++){ myfile << result[i][j] << " ";// printing matrix in output file } myfile << endl;} myfile.close();} return 0;} 

    check this image

    https://ibb.co/mBHJVK

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

    Fizz Buzz in one line (of JavaScript).

    Posted: 31 Aug 2018 10:54 PM PDT

    Disclaimer: I did this for fun, this is definitely not a good solution to this problem! Don't do this in an interview!!!

    Here is a function takes a fizz and buzz word, their corresponding numbers, and returns another function that outputs fizz buzz (using those words and numbers) up to a given number, in one line (run this into a JavaScript console to see the output):

    ((w1, n1, w2, n2) => max => [...Array(++max).keys()].forEach(n => n && console.log(!(n % (n1 * n2)) && w1 + w2 || !(n % n1) && w1 || !(n % n2) && w2 || n)))('Java', 3, 'Script', 5)(15) 

    Here it is formatted to be (somewhat) easier to follow:

    /** * Create a FizzBuzz function. * @param w1 {String} The fizz word. * @param n1 {Number} The fizz number. * @param w2 {String} The buzz word. * @param n2 {Number} The buzz number. * @return {Function} A function that outputs FizzBuzz up to a number * for the given fizz and buzz words and numbers. */ const fizzBuzzFactory = (w1, n1, w2, n2) => max => [...Array(++max).keys()] .forEach(n => n && console.log( !(n % (n1 * n2)) && w1 + w2 || !(n % n1) && w1 || !(n % n2) && w2 || n)) 

    Here it is in action:

    const javaScript = fizzBuzzFactory('Java', 3, 'Script', 5) javaScript(15) 

    Here is the output:

    1 2 Java 4 Script Java 7 8 Java Script 11 Java 13 14 JavaScript 

    It's very LISP-y, and would probably look a lot better written in this style with LISP instead of JS.

    Have any of you come up with wacky implementations of FizzBuzz? Let's see them!

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

    First certificate program in blockchain technology offered by a Canadian college

    Posted: 31 Aug 2018 10:40 PM PDT

    To those of you that do nothing but code all day, every day... how?

    Posted: 31 Aug 2018 09:34 PM PDT

    I'm talking about the kinds of programmers out there that wake up, code, eat, code, code some more, and then code until they go to sleep, wake up the next day, and do it all over again. The coders out there that eat sleep dream code. Do you guys have any tips? How do you do it?

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

    How do I go about learning Git?

    Posted: 31 Aug 2018 09:12 PM PDT

    So I'm looking to start learning Git, but I'm a bit short on time, what with classes starting again. I'm wondering what the general approach I should be taking is to learn Git at a level an entry-level software engineer or intern should be expected to know it.

    I came across resources like this and this that could teach the fundamentals in about a day or 2. The Pro Git book is around 500 pages, though. Is it true that you don't need much beyond the basics as an intern or junior dev? Is it fine to just learn the fundamentals in a day or 2 and learn the rest as I go, through practice, or should I try to cover most of the book too? Thanks.

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

    There any projects I can contribute to that support stuff like this? (x/post from /r/TIL)

    Posted: 31 Aug 2018 09:10 PM PDT

    Why my shell in C works with execvp but not execv Code Inside

    Posted: 31 Aug 2018 09:09 PM PDT

    Code below:

    HERE IS MY CODE

    When I change execvp to execv the shell does not work. Can anyone please help?

    submitted by /u/learn-to-program
    [link] [comments]

    I want to dive into CS before I start college for the first time in January. Is MITx's intro to CS using python too hard for a pure beginner?

    Posted: 31 Aug 2018 08:31 PM PDT

    For further context, my algebra is not the weakest but far from strong. I want to do something CS related during this fall/winter since I put off college until spring semester due to personal circumstances. I see the course started yesterday and I'm not sure how edx works so I'm not sure when the course closes, and I wanted to read a book called A mind for numbers by Barbara Oakley, as well as her coursera course that supplements this book since I heard its a great start for people getting into STEM majors. As someone who's never done much programming besides very light html/css(with a lot of googling and trial and error), is this course a viable, realistic option for a 3 month time frame? If not, would something like CS50's introduction to CS or teachyourselfcs.com be better?

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

    Programming student looking for advice!

    Posted: 31 Aug 2018 07:12 AM PDT

    This coming Tuesday, I will be starting my 3 year video game programming course at college. I have no previous experience, however I am very invested in learning, and figured I'd ask. Is there any advice you wish someone told you before starting?

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

    Function in Java that uses unsigned integers to convert a string to binary

    Posted: 31 Aug 2018 08:09 PM PDT

    I wrote a program that was critiqued as inefficient with no further explanation than to consult SO. I've worked and worked on this but can't figure out how to improve the efficiency. The program takes in a string from the user in the main method which is passed to a function. The function parses the string value to an unsigned integer and runs a while loop if greater than 0. Inside the while loop I use bitwise operators to read the unsigned int value one digit at a time (right to left), which is then shifted to the right. The read integer value is parsed back to a string and added to a placeholder and when the loop is over the final string placeholder "remainder" is returned.

    One of the biggest issues I've hit with this program is that the values are parsed back to a string in reverse. So, I included a for loop in my main method that prints the values in reverse to show the appropriate output. We are learning some lower level stuff which is why the instructor wants us to use unsigned integers and bitwise operators rather than longs and arithmetic operators. The program works as expected but does seem way too complicated. It has to be written without using long values or any arithmetic operators other than bitwise operators. Any advice on cleaning this up?

    public static String converter(String userNum) { //Set variables for conversion prep //Convert user input (string) to unsigned integer String remainder = ""; int binaryNum = Integer.parseUnsignedInt(userNum); if (binaryNum == 0) { remainder = "0"; } else { while (binaryNum > 0 || binaryNum < 0) { int binary = binaryNum & 1; binaryNum = binaryNum >>> 1; remainder += Integer.toUnsignedString(binary); } } return remainder; } /** Main method for program execution. * @param args not used */ public static void main(String[] args) { Scanner scan = new Scanner(System.in); //Prompt user for input System.out.println("Enter a positive integer from 0 to 4,294,967,295"); //Obtain user input String newNum = scan.nextLine(); //Use conversion function String convertedNum = BinaryConverter.converter(newNum); String reverse = ""; //Use a for loop to reverse print string - ensures proper display for (int i = convertedNum.length() - 1; i >= 0; i--) { reverse = reverse + convertedNum.charAt(i); } System.out.println(reverse); } } 
    submitted by /u/Hatcamel
    [link] [comments]

    No comments:

    Post a Comment