• Breaking News

    Wednesday, October 30, 2019

    As someone who's about 3 months into their first dev job, here's a handful of tips that would've been useful to know before starting learn programming

    As someone who's about 3 months into their first dev job, here's a handful of tips that would've been useful to know before starting learn programming


    As someone who's about 3 months into their first dev job, here's a handful of tips that would've been useful to know before starting

    Posted: 30 Oct 2019 03:35 PM PDT

    (Note: this isn't gonna be any kind of interview advice, I suck at those big time)

    I just recently started my first dev job about 3 months ago as a backend .NET developer. The company is pretty run of the mill, nothing crazy like Google or anything. I wanted to just share a couple tips as I think my perspective as a new guy could be helpful for many of you that will similarly be in my shoes at some point.

    • You won't know shit the first day. Your boss will probably say a bunch of terminology that will make absolutely no sense to you. This is the part where you need to ask a lot of questions. More than likely, your boss will not expect you to be a pro at understanding a big complicated system day one or even month one. Don't be afraid to say you don't know something. You will most likely feel very stressed these weeks when you feel like you know nothing.
    • Following on the above point, before working a dev job I never even thought about how much you really need to know about the field your code relates to. For example, my company makes insurance software. As a relatively fresh college grad, I basically know zero about insurance. And surprise surprise, you need to know what the hell you're doing in order to code it properly. So I've spent quite a good chunk of my time just trying to pick apart how insurance works and writing down insurance terminology.
    • Know how to debug code. This is probably the biggest skill I didn't really pay attention to before getting a job. Every professor just said "know how to read other people's code," but that's really hard to quantify. Literally 99% of your tasks in a job, you will have to step through the code with the debugger to understand how it works before you make any changes. I had never even stepped through code before starting this job, because I was so used to my personal projects where I know everything about the code. When working with Visual Studio, you will use breakpoints, and you will add watches on variables, and you will have to attach different solutions to the same process for debugging. I seriously vastly underestimated how important debugging is.

    When coding projects on my free time, I liked to think of programming as closer to art. You're putting a lot of time and effort into creating something unique. It takes a lot of the same thought processes that go into drawing or designing. Should this go here? Can this be done better? I think this will work better.

    When coding at work, I think it's closer to detective work than art. You're not painting a beautiful app on your canvas, the app already exists. You're a problem solver. You're receiving tasks pointing you in the right direction of the issue, but it's your job to investigate and find the culprit. You're not creating, you're fixing and updating.

    Let me know if you have any other questions, I'd be happy to answer

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

    Has anyone here has any luck obtaining a programming job after being self-taught? After being stuck unemployed or in retail or X other dead-end job?

    Posted: 30 Oct 2019 07:59 AM PDT

    I'm just curious to hear some success stories and how you did it.

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

    Need help finding good books/courses to learn C++

    Posted: 30 Oct 2019 10:08 AM PDT

    Hi, right now I'm working part time, the pay is not bad at all for the hours I work for and the type of job I do but I've decided that it would be best to learn something useful with the free time that I have.

    I would really appreciate it if someone would point me to some good books or online courses to learn C++. They don't need to be free, I don't mind paying for my education.

    I just have one request, I need a book/course that tells me why something is the way it is. In the past I've tried learning programming and every book or course that I've used had the same "just write it like this for now, you'll know why later", this later is multiple lessons after that and I just think about why did he write it like that instead of the way he used it the previous lesson and that infuriates me.

    Hope someone can help me =)

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

    Android: how can I programmatically connect to WiFi?

    Posted: 30 Oct 2019 02:05 AM PDT

    I'm building an Android app that uses OCR to capture a wifi name and password from a picture.

    I have everything done except I can't get the connect functionality to work.

    How can I connect to a WiFi network once I have the network name and password?

    UPDATE: Added network suggestion rather than connecting directly. I just allow android to automatically connect shortly after. It's now working , thanks to everyone for commenting.

    Here is the code :

     String networkSSID = nameEditText.getText().toString(); String networkPass = passwordEditText.getText().toString(); WifiManager wifiManager = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE); if (!wifiManager.isWifiEnabled()){ wifiManager.setWifiEnabled(true); } if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { WifiNetworkSuggestion networkSuggestion1 = new WifiNetworkSuggestion.Builder() .setSsid(networkSSID) .setWpa2Passphrase(networkPass) .build(); WifiNetworkSuggestion networkSuggestion2 = new WifiNetworkSuggestion.Builder() .setSsid(networkSSID) .setWpa3Passphrase(networkPass) .build(); List<WifiNetworkSuggestion> suggestionsList = new ArrayList<>(); suggestionsList.add(networkSuggestion1); suggestionsList.add(networkSuggestion2); wifiManager.addNetworkSuggestions(suggestionsList); } else{ WifiConfiguration wifiConfiguration = new WifiConfiguration(); wifiConfiguration.SSID = String.format("\"%s\"", networkSSID); wifiConfiguration.preSharedKey = String.format("\"%s\"", networkPass); int wifiID = wifiManager.addNetwork(wifiConfiguration); wifiManager.enableNetwork(wifiID, true); } 

    I don't entirely understand what WPA2 and WPA3 are, for now I'm adding both as suggestions. I've also only tested it on my device running Android 9 so it followed the 'else' block. I believe I had something similar (or maybe even the same) as that earlier, not sure why it wasn't working.

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

    Good podcasts for beginners to learn how to program?

    Posted: 30 Oct 2019 09:08 AM PDT

    I'm spending a lot of time driving to and back from my non-programming job. I would love to spend those hours just learning passively instead of wasting it. I can even listen in while working. I'm mostly interested in learning JS, CSS, and other web dev right now.

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

    [Self-promotion, YouTube playlist] Learn Java by solving adapted lab questions from a university course

    Posted: 30 Oct 2019 09:29 PM PDT

    What is this?

    I made a series of Java YouTube tutorials to help my Computer Science juniors in the University of Malaya (Malaysia) to solve their programming lab questions.

    What's in this series?

    I'll be showing how to solve the adapted versions of questions they have in the lab. The adapted questions are usually easier than the actual lab questions. And after understanding the logic and programming concept, they would go on to solve the actual lab questions by themselves, with a little extra effort.

    Will this series be helpful to beginner programmers?

    I first shared this series in my faculty Facebook group, and the first-year CS students (beginner programmers) think it's helpful. I hope that this would help anyone starting to learn to write programs as well.

    Notes:

    • It will be totally free and a full playlist. No hidden paid courses.
    • More videos are coming up on a weekly basis.
    • Currently, we're at the 6th programming lab (Methods in Java). There are 10 labs in total, which will cover until OOP and polymorphism.
    • If you're curious, the questions are adapted versions from the Fundamentals of Programming subject in Faculty of Computer Science and Information Technology, University of Malaya (Malaysia).

    The link to the playlist:

    https://www.youtube.com/playlist?list=PLGE_0P3IVRn9zHAgwN6UbIcrtX0um4QGs

    Hope you'll like it, enjoy! :)

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

    Learning programming or computer science fundamentals without a computer

    Posted: 30 Oct 2019 10:59 PM PDT

    I have a friend who has been sent to prison for a year. He has an interest in programming and recently learned enough Python3 to implement some simple home automation.

    What books could I send him that would help him learn algorithms/data structures and challenge him with exercises? Ideally, I would like to send books that have coding exercises with solutions. Also, since he does not have a math background I do not want to send anything like the CLRS algorithms book.

    I am a software engineer and I can't find anything that fits these requirements. My first thought was Cracking the Coding Interview, but it assumes that you have background in computer science and Java.

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

    So i'm taking my first step to coding and i would like some advice :)

    Posted: 30 Oct 2019 06:08 AM PDT

    I'm working a pretty boring job right now and i thought i would invest myself into coding. This partly comes down to my interest and people saying ' you need to learn to code ' without actually giving any more advice. I guess this might happen a lot <

    i have decided to go deep and start straight off the bat with python. Is this a good move or not ?

    I sound super amateur but i don't actually know what i want to use coding for, however i want to know how to code ( if that makes sense ) and python seems like the best way, and then learn mysql after to build databases ?

    i apologize for my absolute lack of knowledge of what i'm doing however i am complete beginner.

    Most things i have read have pointed me to HTML however i am pretty sure i am not that interested in web design etc. But is it essential to know this ?

    Thank you Redditors :)

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

    Anyone feel overwhelmed after learning the basics?

    Posted: 30 Oct 2019 06:20 PM PDT

    Like what the fuck. I learn the basics, and I look at GitHub. First off nothing in there makes sense, and the code people use in that makes no sense whatsoever. I look at making a GUI or app and none of it makes sense. What was the point in learning the basics if they are literally never used? I'm not sure what to learn and I'm very overwhelmed and want to quit. What should I do?

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

    What is a relevant functional programming language a mathematically-minded person can learn?

    Posted: 30 Oct 2019 12:02 PM PDT

    Despite having studied applied maths & informatics for a couple of years before changing degrees, I've never learned to actually program properly (I blame myself, flunked all of the practical classes), but I've always excelled in theoretical CS and other mathematical subjects. Now I want to shore up my programming knowledge by myself, and want to pick 2 languages to self-study, 1 procedural/object-oriented and 1 functional. For OO I was thinking Python, because of how popular it is these days and how much and varied applied mathematics you can do with it. Functional languages I know nothing about, besides a few names, so can someone point out what's particularly relevant these days and has some interesting applications, in fields such as symbolic computation/computer algebra or others?

    P.S. If anyone wants to make any suggestions regarding an OO language, I'd be happy to take them, although I do think Python's a solid choice.

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

    [C++] is there a way to increase stack size?

    Posted: 30 Oct 2019 11:42 PM PDT

    My recursive function gave me the error stack overflow and upon doing some research I encountered a post on stack overflow about a similar problem. The post used this function:

    int returnZero(int anyNumber) { if (anyNumber == 0) return 0; else { anyNumber--; return returnZero(anyNumber); } } 

    and the poster calls this function using int zero1 = returnZero(4793); apparently a call of 4793 is considered small, this same program gives me a stack overflow at 4791 and my own recursive function deals with much more data. I'm using visual studio code, is there any way for me to increase my stack size?

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

    How to get better at data structures and algorithms?

    Posted: 30 Oct 2019 06:30 AM PDT

    I have been struggling with DS and Algo for a long time. It seems like i just can't get better bat it, and it's extremely frustrating. Any help regarding how to fix it will be a huge help. Thanks

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

    Help regarding batch file

    Posted: 30 Oct 2019 11:30 PM PDT

    I'm a rookie with Batch programming. I need to write a batch file that opens up a word file or notepad file and skips 4 words and deletes the space between the fourth and fifth word and inserts a white 'l'.

    Code lords,Kindly help.

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

    The Ultimate Guide to In-App Purchase in iOS Application Development

    Posted: 30 Oct 2019 11:14 PM PDT

    Today, nearly every app offers products or services a user can buy via an application as a feature. Our company has extensive expertise in mobile application development, and our sci-tech team of skillful developers has implemented payment solutions in a number of digital products. In this article, you will read what challenges we've faced while developing purchase functionality for iOS mobile applications and discover the reasons why we've decided to build our own solution for iOS in-app purchases.

    Part 1 https://www.dashdevs.com/blog/the-ultimate-guide-to-in-app-purchase-in-ios-application-development-part-1/

    Part 2 https://www.dashdevs.com/blog/the-ultimate-guide-to-in-app-purchase-in-ios-application-development-part-2/

    Part 3 https://www.dashdevs.com/blog/the-ultimate-guide-to-in-app-purchase-in-ios-application-development-part-3/

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

    Accountability Partner/Pal

    Posted: 30 Oct 2019 10:59 PM PDT

    I have started and stopped learning programming time and time and time again. My most recent attempt has been pretty good, but as I even get slightly deeper, I can feel my resolve wavering.

    Ideally, it would be great to meet someone who would be down for like just Discord or Skype coding sessions. Whether it's just sitting and doing our own thing and blowing off steam to one another or actively studying together and/or working a project, I think it might help me stay in the game.

    Currently my focus languages are Python and C# as I work in finance so the data and automation stuff is key to me. I won't embellish at all, I'm a beginner through and through but I think my pace has been good so far. People who have a PST work schedule or anyone who has free weekend time would be great!

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

    Looking for something new, fun and useful to learn

    Posted: 30 Oct 2019 08:22 AM PDT

    I am currently taking a coursera course on Machine learning and I'm having a lot of fun learning it. I was also thinking of taking a python course on the side. Can any of you give any ideas of what i can do other than python?

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

    How to make Stylus work on discordapp.com?

    Posted: 30 Oct 2019 10:40 PM PDT

    The styles don't seem to apply. Maybe there's javascript that runs on the site after everything loads that prevents this.

    submitted by /u/Curious-Cat-2020
    [link] [comments]

    Best CPU bench marking utility that might reflect how a processor might perform for a UWP app.

    Posted: 30 Oct 2019 10:39 PM PDT

    Warning: I'm not a programmer, I'm in a systems engineer / devops / architect type role.

    We have an in-house developed UWP application suite. We're planning on having end users run this application in a VDI environment and we're trying to spec out the hardware we'll need. In the past this application has ran on i5 or i7 workstations with low to moderate CPU utilisation.

    Is there a benchmarking utility that would be best suited to match the processing needs of a UWP based application? I've got a range of Intel Xeon Gold and Silver processors I can benchmark and compare against the i7s and i5s. I'm looking at using Passmark for this, but is there something better I can use?

    Sorry for the wall of text, and thanks in advance for any replies.

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

    What is the time complexity of the function which removes an element from slice ?

    Posted: 30 Oct 2019 09:55 PM PDT

    Need help in understanding the time complexity of following remove function in golang.

    Is it O(n) ?? How append function in golang affects time complexity ? (Since following code tries to remove an element the new slice capacity is less than or equal to former slice , i was under the impression that just new slice header only gets created behind the scenes and O(n) would be time complexity).

    The slice that gets passed as parameter to function has capacity , length equal.

    Any pointers would be much appreciated . Thank you.

    // Remove a given element from slice

    func Remove(elementToRemove string, elements []string) []string {

    `if govalidator.IsNull(elementToRemove) {` `return elements` `}` `for i := len(elements) - 1; i >= 0; i-- {` `if elements[i] == elementToRemove {` `elements = append(elements[:i], elements[i+1:]...)` `break` `}` `}` `return elements` 

    }

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

    Conflicted between Udacity and the Odin project.

    Posted: 30 Oct 2019 06:07 PM PDT

    Hello everyone. As you might have guessed, another beginner out here. I have consideringtje option of udacity or TOP. Can you advise me about them?or is beginning with Harvard's cs50 the better starting point

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

    Good practice/habits when accessing a MySQL database.

    Posted: 30 Oct 2019 09:47 PM PDT

    Much of the tutorials for creating HTML forms, for submitting and searching a database, have PHP connections to MySQL via 'root' and '' no password for accessing the database. This seems inherently unsafe. Can these PHP files be viewed, just like an ordinary HTML file? What are some good practices when creating a MySQL database?

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

    Is anyone familiar with servicenow programming

    Posted: 30 Oct 2019 09:41 PM PDT

    I've been given a task with out any training on building a program within service now. Basically it's rewriting a program from an access db to tell other employees who is on call for which team in emergency's. I have all the data in access with tables and it works in access but because we have a new ticketing system they want to implement it in to service now. I have no idea where to begin because they did not provide any training materials to me. Any advise would be helpful. Thanks

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

    Should I stick with Python or move to C++?

    Posted: 30 Oct 2019 05:54 PM PDT

    So I've been doing a lot of HTML/CSS/JS the past few months and I started to realize web dev wasn't necessarily what I set out to do in the beginning, which was/is game development. About two weeks ago I made the decision to move to Python (as I've read countless times that it's probably the easiest language to grasp) and so far, it has been great. But again, found myself learning a language that's not necessarily designed for my needs.

    I want to stick with Python and make a few more projects on my own to get a better understanding of programming itself but I'm wondering if I would be wasting my time. I'm not doing this to get a job or anything, this is strictly a hobby I've been planning to explore for a few years now. I am most definitely still an amateur (to say the least) so I'm not sure if moving again would be harmful.

    At this time I plan to use the Unreal Engine so I would need to learn C++ to stay away from blueprints. I know there are plenty of perks to Unity as well but from the research I've done, I believe UE4 is the best engine for my plans in the long term. (Also, can't stand the light theme in Unity, but that's a non-issue for the most part.)

    I guess I just need a second or third opinion on what I should do:

    A. Stick with Python to gain a greater understanding for programming before moving on to more complex languages.

    B. Move to C++ while I still know next to nothing and set anchor there.

    Thanks if you've made it this far - Looking forward to your responses!

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

    Java AttributeSet is null, unsure how to fix this

    Posted: 30 Oct 2019 09:35 PM PDT

    Basically the title:

    public class MyDocumentFilter extends DocumentFilter { //TODO FIX THIS, as IS NULL FOR SOME REASON @Override public void replace(FilterBypass fb, int i, int o, String s, AttributeSet set) throws BadLocationException{ for(int n = s.length(); n > 0; n--){ char c = s.charAt(n - 1); System.out.println(set); if(Character.isAlphabetic(c) || c == ' '){ super.replace(fb, i, o, String.valueOf(c), set); }else{ JOptionPane.showMessageDialog(null, "Error: Type field must not contain numbers and should be longer than 1 character"); } } } @Override public void remove(FilterBypass fb, int i, int o) throws BadLocationException{ super.remove(fb, i, o); } public void insertString(FilterBypass fb, int i, String s, AttributeSet set) throws BadLocationException{ super.insertString(fb, i, s, set); } } 

    I wrote this document filter class to limit user input to only whitespace and alpha characters. It was working the other day, but when I gave my program some test data but it started giving NullPointerExceptions. So I tried to find out where the error was because this wasn't here the other day. I tested out System.out.println(set) (the AttributeSet) and the output was null. This is really confusing me because I googled it and didn't find a single thing about it. Help?

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

    No comments:

    Post a Comment