• Breaking News

    Wednesday, November 4, 2020

    My 2 cents: How to become a programmer. learn programming

    My 2 cents: How to become a programmer. learn programming


    My 2 cents: How to become a programmer.

    Posted: 03 Nov 2020 01:21 AM PST

    Hello, folks! I made a post about mentoring people from here for free. A lot of you texted me and it's hard to keep up. So I will put some things that I said to most of you anyway.

    1. The most important skill is to know how to Google stuff the right way. What i mean by that is: You should learn to Google your problem in such way, that the solution to be first or second link, not the 5th result...

    2. First things that you need to do is to decide what you want to code

    Web - PHP, Python, Java, C#, Ruby on Rails, Javascript

    Embedded and System Programing - C, C++, Rust

    Automation - Python, Golang

    Command Line Tools - Python, C, Golang, Rust

    Games - C#, C++

    Desktop Applications - Java, C#

    Android - Java, Kotlin.

    iOS: - Swift, Objective C.

    Front End - Javascript

    1. The language doesn't matter that much, all languages can do almost anything. Some are just better for mobile apps other for games.

    2. DON'T START WITH A FRAMEWORK!!! learn the basics I can't stress this enough!!! Everything is based on same basic things: variables, data types, data structures, loops, conditions, functions. Learn them and you will be able to understand the material further.

      You should aim for is learning the fundamentals... how everything works in programming.

    Imagine you want to teach someone how to multiply 3 by 3. You will tell him that 3x3 = 3 + 3 + 3 = 9 right? You bring the multiplication to addition right? Now imagine, if that person doesn't know how addition works. if he doesn't know that 3 + 3 + 3= 9 you won't be able to make him understand how 3x3 works. You might be able to make him remember that 3*3=9, but he won't know why and how. It's the same thing in programming, if you understand the truly basic things you will be able to use and understand any programming language fast.

    Same thing learning OOP in programming is based on functions methods in oop are basically functions.

    1. Finding a job, here comes the hard part... One way to find a job is:

      1. Create Linkedin profile add as many HR and technical people from your country, city as possible.
      2. Create some good looking project on Github, write proper documentation for that project in the repo as well. Documentation is very important it shows that you are responsible person.
      3. Create CV/Resume, put your Github repo inside.
      4. Post on LinkedIn that you are looking for internships, in the post include your resume and your github profile.
      5. people will start contacting you about interviews.
    2. When it comes to interviewing those are my 2 cents:

      1. Self esteem and confidence is needed, but don't be cocky, be humble and honest.
      2. You will always be asked something you can't answer, just ask the interviewer to explain it to you. That way you learn something new for free, also you make good impression as a guy who wants to learn and develop himself further. This boost your chance of getting hired.
      3. You make new friends, they might not hire you now.but they can help you later you never know. I've been hired by people that rejected me years ago.
      4. Human interaction itself is pretty good, soft skills are very important important, sometimes even more than the hard skills (coding skills).
      5. Always ask for a feedback, you will learn what your bad sides are.
      6. You will learn how much you cost when you get many different offers.
      7. You will get to know what technologies different companies use and for what reason.
      8. For your first job the best impression you have to make is, that you are able to learn fast and learn from your mistakes.
      9. Most internship/junior people are hired based on intelligence and soft skills, not hard skills (coding skills).
      10. At my company we can hire you even if you started learning programming 1 week ago as long as you show good potential for development. 11.Most juniors out there can't even do enough work to deserve their salary the first year.
    3. You should show them that you can think the right way, will give you example:

    We ask people to find a way to tell me how many leafs are on the tree outside our office.

    The good answers sound like this:

    I don't know, but we can get approximate number by counting leafs on a branch. Then counting branches and multiply it by leafs per branch, however not all branches have equal number of leafs, but that way we can get approximate number. This shows that you can come up with some solution and you have the right mindset and enough potential.

    Bad answers sound like this:

    I don't know, how can i know they are too many, I can't count them. So anyone who doesn't show a good way of thinking and common sense gets rejected.

    1. Also very important thing is to think out loud. If they ask you question and you stay silent for 2 minutes. You are thinking in meantime, but other side just see you silent and think. 'this dude ia an idiot he can't even speak is he even thinking about giving an answer'.

    So just think out loud, if you don't know the answer. Say you don't know but you assume the answer might be.... and here express some of your own logic based on your knowledge about the question. It's okay to say you never heard of something and you have no idea. After all you are applying for an internship, not a senior position.

    Sorry for bad English :)

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

    LOOKING FOR EFFECTIVE C# RESOURCES

    Posted: 03 Nov 2020 09:57 PM PST

    I'm trying to learn C# for the first time so I can build an app for local hikers but the resources I found on YT so far don't clarify things mostly Plus many of them don't even have solid exercises.

    So please if you have any good reasons for C# hit me with it.

    Thank you very much.

    submitted by /u/Nokia-Bird
    [link] [comments]

    How difficult is it to learn the basics of SQL?

    Posted: 03 Nov 2020 10:55 PM PST

    I am proficient in Java and C++. I am trying to figure out if I can get around taking a database class and just learn querying on my own. Is SQL as hard as C++ or Java to become proficient in?

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

    [Python Beginner] How to create a program to eliminate duplicate input positional arguments in a list? For example a program with input list[1,1,2] shows only the output(1,2) and (2,1)?

    Posted: 03 Nov 2020 11:55 PM PST

    [Python Beginner] How to create a program to eliminate duplicate input positional arguments in a list? For example a program with input list[1,1,2] shows only the output(1,2) and (2,1)?

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

    Can (Kind of) Everything In The Programming World Be Considered An API?

    Posted: 03 Nov 2020 11:10 PM PST

    So, By what I have learnt, an API is a set of tools which help us get access to data and providing us an abstraction of the implementation (which basically means we don't need to know how it is doing what it is doing)..

    So as the title suggests, isn't almost everything in the world of programming an API?

    Such as-Any library, Framework, Functions and methods and even the programming language we are using? (Because we don't need to know HOW the programming language was written (as at the end of the day, everything is a piece of code) and it also turns the code into binary, which is a compiler (and again another example)...

    So it would be really good if someone can explain if I'm right or wrong, as I have been struggling to learn about API but just didn't get it..

    Thanks :-)

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

    How would I get started for computer vision using Python?

    Posted: 03 Nov 2020 07:08 PM PST

    Hi! I'm a budding programmer and am new to Reddit. I was just wondering what you all know about Computer Vision and how to use/create it. I know it has to do something with Neural Networks and Artificial Intelligence, but I can't seem to find any resources that explain it in a simple way. Thanks for taking the time to read this post! I hope that you have a great day and are able to help me learn about this and expand my skills :)

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

    How to copy pages from a site and make a “book”/pdf out of it

    Posted: 03 Nov 2020 10:07 PM PST

    Essentially, I bought a course which has a lot of information split up by topic — so articles based on certain algorithms + problems. I was wondering if there was an easy/quick way to just copy all the pages (and them combine into a pdf) so that I don't need to re-buy the course.

    Thanks, A broke college student

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

    [Java] Export integers from an array to cells in an Excel spreadsheet

    Posted: 03 Nov 2020 09:56 PM PST

    I created an array of 150 integers, and want to transfer all the integers into Excel column. To do this task I downloaded the integration tool JExcel and Apache POI but there is not tutorial available for do this task and I don't know it is simple or complex.

    Need help from experts here

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

    Can you downloading apps on a USB?

    Posted: 03 Nov 2020 09:11 PM PST

    Is there a way to download apps like Postgres, vscode etc on a USB?

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

    Ways to mentor?

    Posted: 03 Nov 2020 05:21 PM PST

    I have an itch that's not being scratched. I like to teach/mentor.

    I used to teach a CS summer camp that was a week long and I taught 12-17 year olds how to code in C-ish C++ on Arduinos. In college I was often a tutor or helping out classmates.

    Now, at my job, we aren't doing interns (thanks COVID) and my team dynamic isn't really one where I can actively mentor anyone.

    I would like something more involved than the summer camp so I can really help someone grow. I think that the ideal thing for me would be helping someone start from square one and helping them pursue a general understanding of CS and programming. I kind of envision something like helping a kid who doesn't have a proper CS teacher to prepare for and pass the AP CS test (I am in the US). Something involved enough where we might have regular (video) meetings or assignments or code reviews.

    Now, before I get spammed with a million "mentorship requests" (please don't, I'm not ready for that), the point of this post is that I am curious to know if there are already organizations like this in place where I can mentor remotely or if anyone has gone down a similar path to finding a mentee before?

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

    Is boot camp worth it or am I wasting my time?

    Posted: 03 Nov 2020 06:52 PM PST

    So I'm thinking about going into a boot camp for web development in hopes of getting employment. My question is "Is it worth it or am I wasting my time?" I do not hold a bachelors degree of any sort because I never finished my 5 year program due to Financial and Personal reasons. I later went back to school and got an Associates Degree in Nuclear Engineering Technology. I've worked the last 5 and half years at an Oil Refinery in operations and made it up to A Operator/Console operator in that time ( Highest paid union position and most stressful job). I ran the console accounting for variables to make sure product specs were maintained while keep the unit safe and reliable. I am getting laid off due to Covid reasons and fuel demand disappearing. I want to change my career path to something more reliable, future prospects, and safety reasons. I am extremely interested in Coding and have been doing a Web Developer Bootcamp on Udemy and I have been loving it. However with just the associates and no bachelor would I even have a chance regardless of the portfolio I can put together? Any help or criticism is welcome.

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

    Why in this case i is always smaller by one than stuff[i]?

    Posted: 04 Nov 2020 12:25 AM PST

    The console says "index : 0 - 1" then "index : 1 - 2" then "index : 2 - 3"

    using UnityEngine; using System.Collections.Generic; public class LearningCurve : MonoBehaviour { void Start() { List<string> stuff = new List<string>() { 1, 2, 3 }; for (int i = 0; i < stuff.Count; i++) { Debug.LogFormat("index : {0} - {1}", i, stuff[i]); if (stuff[i] == 1) { Debug.Log("one is in the list "); } } } } 
    submitted by /u/z3ny4tta-b0i
    [link] [comments]

    I'm having some issues with some HTTP POST methods for a webpage I'm making.

    Posted: 03 Nov 2020 08:11 PM PST

    I had the login and register functions working for a while and thought I had fixed this issue. But its back now and I'm not sure how to resolve it. The compiler I'm using isn't giving any info on exactly why its not allowed it is just saying "HTTP/1.1 POST /Login" - 405 Method Not Allowed" The webpage inspection is giving me a little bit more and it says: The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. But I don't really know how to interpret that. It also mentions something about a missing operator on the java script page and I don't see whats missing it reads as: Uncaught SyntaxError: missing name after . operator This projected is on a few different pages and uses python, HTML, and a bit of java script I'll post the related sections that I think the problem relates to. 1.

     import web from Models import RegisterModel, LoginModel, Posts web.config.debug = False urls = ( '/', 'Home', '/Login', 'Login', '/logout', 'Logout', '/register', 'Register', '/postregistration', 'PostRegistration', '/check-login', 'CheckLogin', '/post-activity', 'PostActivity', '/profile', 'Profile', '/settings', 'UserSettings', '/update-settings', 'UpdateSettings' ) app = web.application(urls, globals()) session = web.session.Session(app, web.session.DiskStore("sessions"), initializer={'user': None}) session_data = session._initializer render = web.template.render("Views/Templates", base="MainLayout", globals={'session': session_data, 'current_user': session_data["user"]}) class Home: def GET(self): post_model = Posts.Posts() posts = post_model.get_all_posts() return render.Home(posts) class Profile: def GET(self): post_model = Posts.Posts() posts = post_model.get_all_posts() return render.Profile(posts) class Register: def GET(self): return render.Register() class Login: def GET(self): return render.Login() class PostRegistration: def POST(self): data = web.input() reg_model = RegisterModel.RegisterModel() reg_model.insert_user(data) return data.username class CheckLogin: def POST(self): data = web.input() login = LoginModel.LoginModel() isCorrect = login.check_user(data) if isCorrect: session_data["user"] = isCorrect return isCorrect return "error" class PostActivity: def POST(self): data = web.input() data.username = session_data['user']['username'] post_model = Posts.Posts() post_model.insert_post(data) return "success" class UserSettings: def GET(self): return render.Settings() class UserInfo: def GET(self, user): login = LoginModel.LoginModel() user_info = login.get_profile(user) return render.Info() class UpdateSettings: def POST(self): data = web.input() data.username = session_data["user"]["username"] settings_model = LoginModel.LoginModel() if settings_model.update_info(data): return "success" else: return "A fatal error has occurred" class Logout: def GET(self): session['user'] = None session_data['user'] = None session.kill() return "success" if __name__ == "__main__": app.run() 

    2.

    import pymongo from pymongo import MongoClient import bcrypt class LoginModel: def __init__(self): self.client = MongoClient() self.db = self.client.codewizard self.Users = self.db.users def check_user(self, data): user = self.Users.find_one({"username": data.username}) hashed = bcrypt.hashpw(data.password.encode(), bcrypt.gensalt()) userpw = b"Random101!" if user: if bcrypt.checkpw(userpw, hashed): return user else: return False else: return False def update_info(self, data): updated = self.Users.update_one({ "username": data["username"] }, {"$set": data}) return True def get_profile(self, user): user_info = self.Users.find_one({"username": user}) return user_info 

    3.

    import pymongo from pymongo import MongoClient import bcrypt class RegisterModel: def __init__(self): self.client = MongoClient() self.db = self.client.codewizard self.Users = self.db.users def insert_user(self, data): hashed = bcrypt.hashpw(data.password.encode(), bcrypt.gensalt()) id = self.Users.insert({"username": data.username, "name": data.name, "email": data.email, "password": hashed}) print("UID is", id) myuser = self.Users.find_one({"username": data.username}) userpw = b"Random101!" if bcrypt.checkpw(userpw, hashed): print("this is matched") 

    4.

    <div class="container"> <h2>Login</h2> <br /><br /> <form id="login-form" method="POST"> <p><input id="username" name="username" class="w3-input w3-padding-16" type="text" placeholder="Enter Username:" required></p> <p><input id="password" name="password" class="w3-input w3-padding-16" type="password" placeholder="Enter a secure password:" required ></p> <p><button class="w3-button w3-light-green w3-section" type="submit" value="Send">Submit</button>&nbsp;&nbsp;<button class="w3-button w3-red w3-section" type="reset">Reset</button></p> </form> </div> 

    5.

    <div class="container"> <center> <h2>Register here</h2></center> <br><br> <form id="register-form" method="POST"> <p><input id="username" name="username" class="w3-input w3-padding-16" type="text" placeholder="Enter Username:" required></p> <p><input id="display_name" name="name" class="w3-input w3-padding-16" type="text" placeholder="Enter your full name:" required ></p> <p><input id="email" name="email" class="w3-input w3-padding-16" type="email" placeholder="Enter your email:" required ></p> <p><input id="password" name="password" class="w3-input w3-padding-16" type="password" placeholder="Enter a secure password:" required ></p> <p><button class="w3-button w3-light-green w3-section" type="submit" value="Send">Submit</button>&nbsp;&nbsp;<button class="w3-button w3-red w3-section" type="reset">Reset</button></p> </form> </div> 

    6.

    $(document).ready(function(){ console.log("loaded"); $(document).('submit', '#settings-form', function(e){ e.preventDefault(); var form = $(this).serialize(); $.ajax({ url: '/update-settings', type: 'POST', data: form, success: function(res){ if(res == "success") { window.location.href = window.location.href; } else{ alert(res); } } }); }); 

    });

    submitted by /u/Wiseman-no
    [link] [comments]

    How to Set Data into Excel sheet using JExcel

    Posted: 03 Nov 2020 11:26 PM PST

    Is there any expert who can explain the program how to write / set data in spreadsheet /worksheet without any other formatting like fonts, size and style etc.

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

    What can you do with a portable Mac usb drive ?

    Posted: 03 Nov 2020 10:53 PM PST

    can you download apps etc on it ? If not what is the benefits of it ?

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

    need help deriving UML from source code

    Posted: 03 Nov 2020 02:08 PM PST

    for school i have to derive UML from source code. the given sourcecode is pretty massive, and i have no idea where to begin. i've tried to search for some guidelines without succes.

    I've figured out the inheritance of it all, but not the associations. Does someone have any tips, or some sort of reading material that might help me?

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

    Visualizing Networks in R

    Posted: 03 Nov 2020 10:52 PM PST

    I tried posting my code on reddit, but the formatting is giving me problems and the code is unreadable.

    Here is the question I posted on stackexchange: https://stackoverflow.com/questions/64669941/r-adding-additional-information-to-a-visnetwork

    I was able to create some fake data about a group of people and their relationships amongst each other. I was able to make a graph network of these people, but I am trying to modify the code so that when you click on a node, the information about that person shows up on the screen.

    Could someone please show me how to do this?

    Thanks!

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

    c++ Quick Pointer Question

    Posted: 03 Nov 2020 04:13 PM PST

    I understand that using a member access operator like this means that " leaf->left" means
    "(*leaf).left"

    But my question is, what would "leaf->left->left" spell out to?

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

    Is C a must for Interacting with dll?

    Posted: 03 Nov 2020 02:04 PM PST

    I recently learnt that pyautogui uses a library written in c which can implement functions of .dll to move mouse and write stuff using code. I wonder if I need to use c language in order to interact with operating system in a low level such as .dll files. I mean by not depending on other libraries written in c. Can't I use java or lets say python and come up with a way to make operating system move my mouse using .dll file functions ?

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

    Wrote a bunch of code but having trouble writing my results to a file using only the print statements?

    Posted: 03 Nov 2020 09:22 PM PST

    So I wrote some code which I will include below and I'm being asked to "After each print statement, add a line to write data to a file:

    EX:

    print(names)

    out=str(names) # You can only write strings to a file!

    Outfile.write(out)"

    So I understand the instructions above, so lets try this? Here is some code that just looks at a DNA sequence and counts number of Gs and Cs:

    https://gist.github.com/abood101/592f7b5fac91853d01158c9b9eb745a8

    So the instructions tell me to add this at the top of my code

    outfile=open('03Lab.txt','w')

    and then after each print statement to have it write to 03Lab.txt

    and then it tells me to use outfile.close()

    So heres what I did but I'm getting an error because the example above just works with 1 argument which names and converts it to a string which is all good but for me some of my print statement are more than 1 argument...

    So here is an example (lines 24-26) where I did it for the first print statement and it gave me error:

    https://gist.github.com/abood101/941a31e7105869d2f0dbffee50965622

    The error tells me that argument 2 is not a str so I adjusted it again like so:

    https://gist.github.com/abood101/8ccb6f0f968cdd8691a56353e0561c6c

    New error is "decoding str is not supported"

    Thoughts? I'm not sure how to write my print statement that has 2 arguments to a file... Thanks in advance!

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

    What’s in a programming 200 class?

    Posted: 03 Nov 2020 09:19 PM PST

    I'm going to be doing my second programming class in college in January. I finished fundamentals of programming which was a breeze. The school teaches c++. I know how to write functions and objects in c++ along with all the other basic stuff. I have two months to study because I'm also taking calculus 2 so I don't wanna be drowning in school work trying to caught up in programming. What should I be looking to study up on to be prepared for the class?

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

    Should the Development Company use one Business-level hosting for all of their client?

    Posted: 03 Nov 2020 09:11 PM PST

    I just found out that you can have a Hosting Service (say, for example, from Hostinger) and have multiply websites under that Hosting. Is it viable, in a business standpoint, to have all of their clients' websites under that same hosting service. I presumed that you'll use different hosting service per client.

    What are the benefits or downsides of having just one hosting service for all of your client?

    I am planning to start a business of web development, and this is me studying the ins and outs of the business. Thanks in advance!

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

    No comments:

    Post a Comment