• Breaking News

    Thursday, March 28, 2019

    Did anyone here quit video games to become more productive? learn programming

    Did anyone here quit video games to become more productive? learn programming


    Did anyone here quit video games to become more productive?

    Posted: 27 Mar 2019 07:33 PM PDT

    I know that many programmers have been gamers before but spending all my free time gaming just feels like such a waste. I actually never used to do any programming outside of what was required for my cs classes but I decided to quit gaming and dedicate my free time to learn as much as a can and get into things like app development.

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

    Web Scraping with Beautiful Soup and Python - The Perfect Stepping Stone for Beginners

    Posted: 27 Mar 2019 10:17 AM PDT

    Many people wonder where to go next after learning the very basics of programming and what they can do with their new skills. One of the quickest wins I discovered in the world of programming was web scraping. I realized that once I actually mastered the basics of programming logic (loops, if/else statements) web scraping was one of the quickest ways to utilize my new skills. It really opened up the whole world of programming to me and made me realize how many opportunities there are in the space, and without it I definitely wouldn't be the developer I am today.

    So what would you need to be able to do some webscraping?

    Web Scraping Basics:

    The steps I am about to recommend are by no means the only way to get started with webscraping, they are just one way to get going and happen to be the way that I got started.

    1. Get yourself python and pip
      1. Python is such a great language for people beginning and pip really helps you to quickly get packages installed. I think the ability to stand on the shoulders of giants and use packages that others have already made is what gave me such a big boost when I was getting started with software development. There is no better way to do this than pip (AFAIK).
    2. pip install beautifulsoup4 and pip install requests
      1. This will get you started with two great packages that are very simple to learn and will get you going very very quickly for webscraping.
    3. Watch some tutorials
      1. There are many tutorials on the internet for learning to use beautiulsoup with requests and python. I am going to link to my own tutorial, but a quick search will yield many results - https://www.youtube.com/watch?v=iECY6Z0-w54&t=12s
    4. Build some cool applications
      1. Really once you become a little bit familiar with what webscraping can do, I think you will quickly start to see a lot of interesting opportunities that you can take advantage of. As well, it can be a great showcase in the future to show employers that you have built real world applications.

    Because of that I think it is a perfect stepping stone for anyone that has learned the very basics of coding but has no idea what to do next with their skills.

    TLDR; Web scraping is the perfect way to move from someone that knows the basics of coding, to somebody that can build simple software applications. Link to my own tutorial to learn - https://www.youtube.com/watch?v=iECY6Z0-w54&t=12s but running a quick search for python web scraping tutorials will return many results.

    Edit: Thanks for all the support on this tutorial, I was surprised how useful so many people found it. Because this post was so successful I decided to make another video today that goes a little bit further showing a practical case study of one way you can use web scraping here - https://www.reddit.com/r/learnprogramming/comments/b6d4og/web_scraping_case_study_real_time_stock_price_web/

    Hope this one is useful too :)

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

    What behaviors do you notice in "new hire's" code and commits?

    Posted: 27 Mar 2019 04:21 PM PDT

    I recently had a one-on-one with the boss at a new place I started, it's my first real team job, and my first review went great! He said, "I have never seen anyone adapt to a team so quickly". I had great skills and I had great diversity and could work with anyone, and he gave me a raise!!

    But one of the negatives he said was he was not seeing my work, even though I was working and focused on my task at hand - which was to implement a whole new system. Specifically he was not seeing the progress that I was making since it could not be pushed to the main until it was finished or everything would break. I felt a little stuck but at the same time I knew I could approach this differently.

    So I changed my style and started to do little commits, 3-5 a day with little increments instead and that seemed a bit better, but then the next one-on-one the boss said everything is great but your code is "I seen this many times in new hire's " he says. "It needs to be implemented in a way others can use it better". "You're like me and want things to be perfect", he was being nice but still I was unsure of what he was getting at(heavy accent).

    Now he is not a programmer but he is a smart cookie and was also telling me something I can't quite understand and I thought someone with experience could explain what the boss is trying to convey since this must be common in new hire's.

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

    How to start to study others code and how to have better meetings

    Posted: 27 Mar 2019 03:32 AM PDT

    Hi, sorry for my english if isn't too good. I'm an electromechanical engineer from a south american country, the largest software company of my country has a program where everyone can apply, and if you go through the long selection process you are trained for a year by some of the best programmers they have.

    I have never worked on the software industry but I like programming, since I decided to make a transition to the software industry I applied to this program, got accepted and we are by the 3th week.

    The thing is that they gave us a hard homework in C++, I put a lot of effort, but I never imagined that I would be between the two best in that task. Then they separated us into two groups and decided that the leaders of those groups would be the ones who did that task better.

    The new task of my team is to do bugfixing and add features to a 3 year old project in C++ that uses GTK for the interface.

    • I have never lead a software team and there are many software stuff that I don't know.

    • We don't know where to start to study the code.

    • We really have to improve our C++ and GTK/GTKmm skills

    • I really feel that our meetings aren't productive

    Please, all your help and advice are welcome.

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

    Web Scraping Case Study - Real Time Stock Price Web Scraper

    Posted: 27 Mar 2019 07:10 PM PDT

    In my last post I showed you how to do some simple webscraping with python, beautifulsoup and requests here. Since that one went so well I wanted to dive in to show you a practical and almost real world example of how this type of software can be used.

    In this tutorial I cover how to scrape stock prices in realtime, so that you can get constantly updating prices. For our purposes I show how to get the data from yahoo finance, but if you or a client had access to true real time data you could easily do this same thing for that.

    The scraped data could be automatically inserted into a data processing pipeline (generally the type of work I do) or outputted into a file (think CSV, inserted into a SQL db or just used to entertain you).

    Even though this example is quite basic, and with just a few lines of code I really think it is a great foundation! There are so many applications for this type of work as well as different ways you can take a system like this after developing these first steps.

    Next time, I may go further into outputting data into different formats or even start to show off how I would build some sort of an automated system surrounding the data.

    Hope everyone likes it and finds it useful, if you do please subscribe! I will definitely be making more content like this.

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

    What does one do when they have come to programming, but have an artistic background?

    Posted: 27 Mar 2019 10:52 PM PDT

    Bit of background: Hello, I'm not quite sure how to go about this, but I have over the past year and few months become really into programming (Python). Programming for me was something I saw for the first few years of high school as intimidating, but am now taking a CSE class and enjoying it quite a bit. Actually helping out kiddos when it comes to their own code.

    Problem: I enjoy coding, and learning how to, but I'm not quite sure where to go. Ive been told during my senior year that I should go into graphic design, I used to just calmly accept that that would be my fate, but now I don't want to go that way. The problem is however in my spare time I'm not quite sure what to learn. Coding small apps (via App Inventor) has peaked my interest, along with making algorithms meant to make robots move (with Vex), in the end learn where they are and how to maneuver obstacles. In the end I'm just not sure what I can do with these interests nor specifically what I should or could learn to program any suggestions could help.

    submitted by /u/PeaceGoat-3
    [link] [comments]

    Getting into Machine Learning

    Posted: 27 Mar 2019 05:43 PM PDT

    So, I have been learning python, and came upon machine learning. I, being naive, started to look for tutorials on this. However, ever tutorial expected me to have an understanding of numpy, pandas, matplotlib, etc. So, there's clearly a long way to go before I start learning ML. Can someone tell me what my next steps should be in learning, so that I can slowly make my way towards ML?

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

    Where can I use virtual machines in the cloud for free?

    Posted: 27 Mar 2019 06:16 PM PDT

    Hi, I'm a 19-year-old programmer, I was born and I live in Venezuela, I say that because that's the main reason why I'm doing this post, I tried to apply for AWS education but they rejected me just for being from Venezuela, and I'm looking for some alternative to be able to use virtual machines to practice my knowledge of programming, all for educational purposes. Thanks for your time.

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

    Anyone w/ a non-CS bachelors ever gotten a CS masters online?

    Posted: 27 Mar 2019 06:02 PM PDT

    So I got a bs in civil engineering but I am interested in getting a Masters in CS online somewhere. Anyone got anything to say regarding your experience in getting a CS masters online as opposed to in class? Additionally, how difficult is it to get a CS masters online when undergrad was not in programming?

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

    I am a proficient coder, but I'm worried about interview questions.

    Posted: 27 Mar 2019 10:32 PM PDT

    I have a master's degree in biomedical engineering. I was working in mechanical design of medical products, but it was making me miserable. Simultaneously, I learned some basic C++ for embedded system design projects (basically advanced Arduino stuff), which then lead to me learning Python for data processing and making GUIs. One thing lead to another, and I got pretty good at Python.

    When I decided to leave my mechanical engineering job and try to shift into software, I took a few months off to learn, and then a friend offered me fixed-term contract in the finance industry working as a developer for his software consultancy. I have been working with actuaries to build financial models, and to port existing models to cloud-based platforms (I.e. AWS). My efforts so far (since August) have allowed our client to abandon their existing software package and move to my AWS-based system. This saves them about $500k per year, so they are absolutely thrilled. Now, my contract is nearing its end, and I'm looking for other work. The client offered to extend my contract, but I decided to decline because I'd rather work in medicine than finance.

    I have heard a lot about how software employers will want me to do things in interviews (like "invert a binary tree" or write my own bubble-sort algorithm). I have no idea what most of this stuff means because I never formally studied CS. Clearly I am capable of writing useful and quality code, but I'm afraid that this will not come through in my interviews. Aside from doing hacker-rank problems, what else can I do to prepare for such interviews? Are there any books, etc, you'd recommend? If you followed a similar route to me, what advice would you give your past-self?

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

    I'm a C++ dev that would love to move into games programming. What path should I take?

    Posted: 27 Mar 2019 12:42 PM PDT

    Hi, I'm currently a C++ dev for a large airline company based in London and I'd like to move into game development. As pre-req I know C/C++, python and a handful of others to varying degrees

    If anybody has any guides, tutorials, example repositories, tool recommendations etc. I would really appreciate it. Anyone who is currently a game dev if you have any advice I'd also really appreciate that. I have about a year before my contract runs out on this job so am very willing to spend that time learning, building a portfolio and job-hunting later on.

    Thanks for any help!

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

    Make money programming...

    Posted: 27 Mar 2019 11:25 PM PDT

    Don't know where to post this so...

    I'm a 20 year old programmer who's very proficient in Python. However, I do not have a job, but would like to make some money programming online. This is a very dry month due to my birthday being in December, and well, the fact that I have to pay multiple subscriptions . If anyone could please help point me in a direction, that would be wonderful.

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

    Starting my first project..

    Posted: 27 Mar 2019 08:49 PM PDT

    Thanks to u/CreativeTechGuyGames literally putting a link to the FCC start page in a response to a question a few weeks ago, I finally started my journey learning. Now I'm at my first project. Make a tribute page. I have a code pen account and I'm all ready to start. But there's a big black screen there. I noticed when I pressed the fork button it put all the code into my Pen and kind of made it my own to use.

    Should I use that to manipulate for my own tribute page or should i starts from scratch. I feel like I totally forgot what a <div> is lol.

    I feel like the answer is start from scratch. I'm sure I could get through this, can't I? A friend of mine recommended I install and use: Visual Studio Code. Should I start making my projects in that instead, if that was something I might stick with? Not sure that codepen is where I'll need to be long term or not?

    Edited to correct spelling and punctuation

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

    I finished Codecademy Python 2 course, how to proceed effectively?

    Posted: 27 Mar 2019 10:07 PM PDT

    I have finished Codecademy Python 2 course. However my knowledge is isolated in terms of what this actually means for me. There are at least three problems that I would like to address:

    1. My skill level. How to get an idea of where my current knowledge places me? To distinguish between what I do and what I don't know. How to describe my skill level effectively, for example in CV or a job interview?
    2. The different areas. Should I try to cover everything or specialize in some area? Many aspects of programming seem very interesting and I want to learn more about them, but I also want to make career considerations. I am in my late 20s and without a degree in CS (or any related field). In some ways this makes me think I need to focus on a very specific area if I hope to catch up, but at the same time learning about different areas seems like it would allow more flexibility.
    3. And most importantly, improving my skills. I understand that I need to "practice" but I don't know what kinds of practice are the best to improve my skills. The idea that the problem of insufficient skills can be solved with more practice seems counter-intuitive. Practice in general tends to facilitate learning and makes you more experienced, but it is usually not the main activity of learning. On another note, should I try to learn Mathematics? Perhaps Statistics? Would it significantly strengthen my problem solving in ways that are pertinent to programming and to what extent? If yes, what areas would be the best to learn?

    At least for now, university classes are not an option. But other resources are welcome.

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

    Need help on Server Side for Realtime PVP Board Game App

    Posted: 27 Mar 2019 11:40 PM PDT

    Hello r/LearnProgramming!

    I want to create a Realtime PVP boardgame app that works on a local server. Nothing on an industrial level - but more for the learning experience. I have no problems designing the code (java and JSwing), game logic, and GUI interface, but I am running into a wall when it comes to the networking side of things.

    Pretty much the application needs to be able to have a login and user registration - which would be it's own database. And there needs to be a way for the system to manage players "Taking turns" , in a game like Checkers for instance.

    The wall I run into with this is that I don't even know where to start looking for this server side stuff , or what terminology to use or tutorials to look for on google. I am a huge self Learner, but much like programming, I need to know where to look and how to look for it.

    my knowledge base is as follows: Java C++ Perl (Syntax only) Python SQL and basic queries

    Any point in the right direction would be a lifesaver!

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

    How to approach debugging issue with flutter_bloc?

    Posted: 27 Mar 2019 11:33 PM PDT

    Hi Guys .. I am new to flutter. I am trying flutter_bloc. Having a issue. I am running

    yield ListingState(myRepository: result);

    In the presentation code, I have

    ```@override

    Widget build(BuildContext context) {

    return BlocProvider<MyBloc>(

    bloc: _myBloc,

    child: MaterialApp(

    home: BlocBuilder<MyEvent, MyState>(

    bloc: _myBloc,

    builder: (BuildContext context, MyState state) {

    if (state is ListingState) {

    //return SplashPage();

    print ("Here in presentation");

    }

    },

    ),

    ),

    );```

    presentation code is not getting triggered

    Any idea on how to approach debugging?

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

    [C# Unity] Creating an array for each grid coordinate - Is it better to use Box Colliders or Vector3?

    Posted: 27 Mar 2019 11:12 PM PDT

    Hello!

    Is it bad to have hundreds (possibly over a thousand) box colliders with no mesh? Will it hurt performance?

    I want to update the Transform array every time an object is placed, I want to periodically check each array and see if anything has been placed, and I want to highlight the gridboxes surrounding the selected array.

    This is for mobile so I'm trying to optimize as much as I can. Which way would be lease resource intensive?

    Thanks!

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

    Why is GitHub stuck at uploading files?

    Posted: 27 Mar 2019 11:05 PM PDT

    I'm using the WebUI to upload a C# console application.. This is my first time uploading on GitHub. As you can see in the following image, it's stuck at trying to upload the 14th file, there are a total of 17 files. Tried different browsers, but the same issue.

    https://i.postimg.cc/BQthHz2w/stuck.jpg

    EDIT: Looks like the issue was that there were three temporary generated files which had file size 0 so GitHub didn't want them.

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

    I took a year of studies to learn PHP - whats the best place to start learning?

    Posted: 27 Mar 2019 10:59 PM PDT

    So, Ive taken a year of my studies to learn PHP. Ive been studying a bachelor comprised of IT and Economics (mainly focused on economics). While I have a general idea of how to use mySQL and code with Ruby and Python, I want to learn to code with PHP.

    Where I can find the best courses (with no BS) online?

    Atm Im considering Guru99, KillerPHP and PHP Manual.

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

    Crawling down Binance's announcement of delisting currencies

    Posted: 27 Mar 2019 10:58 PM PDT

    Strategy purpose:

    On February 15, Binance announced the taking off announcement of the CLOAK, MOD, SALT, SUB, WINGS. After the announcement, the currency involved immediately began to fall, generally down 15% in an hour, with more and more users knew the news, the decline continued and there was no rebound, and it has fallen by half so far. If you can sell the coins held in the first time after the announcement, you can recover a lot of losses.

    This strategy runs on the FMZ quantitative trading platform (formerly BotVS).

    Idea:

    Crawling down the Binance security announcement pages and observe the information of the nearest two times of announcement. The specific format is "Binance will delist CLOAK, MOD, SALT, SUB, WINGS", "Binance will delist BCN, CHAT, ICN, TRIG".

    The strategy will use the "will delist" as a keyword to crawl the new release announcement, of course, does not rule out the Binance change notification format, you can refer to this strategy to improve. Since the crawler task is too simple, it will be written in simple JavaScript. After crawling down the delist currency, the account information will be checked. If there is a delist currency, it will be sold at a lower price. If there is an uncompleted order, it will be revoked first. Until the sale of the remaining coins is completely sold.

    Crawling code: var html = HttpQuery('https://support.binance.com/hc/zh-cn/sections/115000202591-%E6%9C%80%E6%96%B0%E5%85%AC%E5%91%8A')//Announcement page html = html.slice(html.indexOf('article-list'),html.indexOf('pagination')) // Article list section if(html.indexOf('will delist')>0){ if(html.slice(html.indexOf('will delist')+3,html.indexOf('</a>')) != title){ //crawl only the first delist information var title = html.slice(html.indexOf('delist')+3,html.indexOf('</a>')) var downList = title.split('、') Log('New announcement is detected, the currency will be delist:', title, '@')//WeChat push release announcement } }

    Revoking order code:

    function cancellOrder(){ var openOrders = exchange.IO('api', 'GET', '/api/v3/openOrders')//Get all unexecuted orders for (var i=0; i<openOrders.length; i++){ var order = openOrders[i]; for (var j=0;j<downList.length;j++){ if(order.symbol.startsWith(downList[j])){ var currency = downList[j] + '_' + order.symbol.slice(downList[j].length); Log('There is a delist currency order exist, revoked', currency) exchange.IO("currency", currency)//To revoke a order, you need the trading pair information, so you must first switch to the trading pair. exchange.CancelOrder(order.orderId) } } } }

    Check account code:

    function checkAccount(){ var done = false while(!done){ account = _C(exchange.GetAccount) done = true for (var i=0; i<account.Info.balances.length; i++){ if(downList.indexOf(account.Info.balances[i].asset)>-1 && parseFloat(account.Info.balances[i].free)>pairInfo[account.Info.balances[i].asset+'BTC'].minQty){ Log('delist currency will be emptied', account.Info.balances[i].asset) sellAll(account.Info.balances[i].asset, parseFloat(account.Info.balances[i].free)) done = false } } Sleep(1000) } Log('Sale completed') }

    Placing order code: var exchangeInfo = JSON.parse(HttpQuery('https://api.binance.com/api/v1/exchangeInfo')) var pairInfo = {} //Trading pair information, storing transaction progress, minimum trading volume and other related information, placing order will needed if(exchangeInfo){ for (var i=0; i<exchangeInfo.symbols.length; i++){ var info = exchangeInfo.symbols[i]; pairInfo[info.symbol] = {minQty:parseFloat(info.filters[2].minQty),tickerSize:parseFloat(info.filters[0].tickSize), stepSize:parseFloat(info.filters[2].stepSize), minNotional:parseFloat(info.filters[3].minNotional)} } }else{ Log('Failed to get transaction information') } function sellAll(coin, free){ var symbol = coin + 'BTC' exchange.IO("currency", coin+'_BTC') //switching trading pair var ticker = _C(exchange.GetTicker) var sellPrice = _N(ticker.Buy*0.7, parseInt((Math.log10(1.1/pairInfo[symbol].tickerSize)))) var sellAmount = _N(free, parseInt((Math.log10(1.1/pairInfo[symbol].stepSize)))) if (sellAmount > pairInfo[symbol].minQty && sellPrice*sellAmount > pairInfo[symbol].minNotional){ exchange.Sell(sellPrice, sellAmount, symbol) } }

    To sum up:

    The above code is only for demonstration, the complete code can be found at FMZ.COM. The announcement page can be crawled once in a minute, which will have enough time to sell before the ordinary user.

    But there may be some problems, such as crawling being blocked, announcement format changes, and so on. If the currency is not on the Binance, you can also refer to this strategy to other exchanges. After all, the delist currency will affect all platforms.

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

    Did you guys ever learn to type?

    Posted: 27 Mar 2019 02:11 PM PDT

    I never actually learned how to type properly. Did you guys find it useful in your programming to have that skill? I'm guessing the answer is "Duh?" but if you do, any suggestions on a good way to learn?

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

    How does GitHub know which code to keep?

    Posted: 27 Mar 2019 10:34 PM PDT

    Suppose someone removed some methods/functions from the master and another person created a branch before and used those methods and called them multiple times. Now how will GitHub merge this code?

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

    Good book on OOP

    Posted: 27 Mar 2019 10:25 PM PDT

    Can anyone suggest a good book to learn and understand object oriented programming-i code in JS and need to get a good sense of OOP -looking for more of a book which is language agnostic rather than pertaining to any one language. Thx.

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

    Square API help

    Posted: 27 Mar 2019 10:18 PM PDT

    I'm really struggling to implement the Square Catalog API using Node; I'm new to APIs in general and I'm currently stuck receiving a 400 BAD_REQUEST. The documentation for Node with this API seems rather poor to me so it's been a tough journey so far. Anyone with experience with this would be greatly appreciated!

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

    How does GitHub work?

    Posted: 27 Mar 2019 10:18 PM PDT

    I was thinking of uploading some small programs I made on GitHub website. Not sure if I should upload in the Repositories or Projects section.

    Also, how do I update the code on GitHub (let's say I made some changes to my programs). Do I need those command lines? Where do I type them?

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

    No comments:

    Post a Comment