• Breaking News

    Wednesday, January 3, 2018

    Has anyone noticed the spam of low quality content on Google lately? learn programming

    Has anyone noticed the spam of low quality content on Google lately? learn programming


    Has anyone noticed the spam of low quality content on Google lately?

    Posted: 02 Jan 2018 09:59 AM PST

    (I feel as though this doesn't really fit in /r/programming, so I thought this would be the best place to put it)

    Lately, when I google things, the results aren't as high quality as before. When I googled something such as "operator overloading python" before, it would tend to either show me the official python docs or a relevant stack-overflow question. This was pretty much exactly what I was looking for. However, it seems SEO has improved yet again, because now I get some crap. The results these days are (in order):

    • programiz, a broken english website that seems to have copy pasted the docs and made them look worse while also spamming ads

    • Some blog from a company that offers quick learning solutions

    • Another blog called thepythonguru, which although also spammed with ads also seems like it finally has some semblance of the information I need (a full list of the operator overloads)

    • and FINALLY the python docs.

    However, this isn't a limited pattern. I have actually blocked progamiz with personal blocklist because it popped up in every result at home, even for stuff that really should only be on stackoverflow. Does anyoner else suffer from this? What the hell can we do?

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

    A list of amazing Android apps for Android developers I compiled

    Posted: 02 Jan 2018 11:45 AM PST

    It may come in handy to new Android developers so that you won't have to go through a hundred thousand apps to discover them like I did.

    The full story is HERE, with nice pictures and links and everything.

    But as a summary, I'm suggesting

    1. Termux for general dev tasks
    2. Material Cue for grids
    3. Graphice for palette generation
    4. Screener for placing screenshots in virtual devices
    5. PocketCasts for Fragmented and Android Developers Backstage (both podcasts for Android devs)

    Last time I was on this subreddit, I offered five free copies of my book "Android Development for Gifted Primates: A Beginner's Guide" because I wanted to give something back to the community. I'll do the same thing now for the first five people that claim a copy in the comments! I'll PM you as soon as possible.

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

    What's the smallest amount of bites I can hold the numbers 0-359 in? Currently can transmit the numbers in 5 bits. Can I go any lower?

    Posted: 02 Jan 2018 02:02 PM PST

    Hey! So I wanted to make a RotMG clone for my portfolio and one of my goals it to make the game eat up the least amount of bandwidth possible. Right now my current problem is transmitting bullets to the player using the least amount of data possible.

     

    Anyone who plays RotMG knows that there can be tens of bullets from up to ~90 players on the screen at the same time (granted this is a very specific scenario but still.) Sending all that information to the player every server tick is expensive, so I've gone from:

    • Sending the bullet's X,Y coord's to each player (~22 bits)-
    • to sending the degrees in 0.703125 intervals (360/512) and simulating the bullet client side (~10 bits)-
    • to sending the infomation as 00 00 0 through 11 11 1 and then multiplying it in to 200 * 300 * 50 - 1 (obviously 5 bits.)

     

    Can you all recommend any way of sending the numbers 0-359 in 4 or less bits? Unless it's super expensive client/server side in terms of processing power I'd love to hear it!

     

    P.S. Is there a specific branch of programming that has to do with this sort of stuff? I know I'm not particularly good at doing this but it's pretty darn fun imo.

     

    EDIT 1: Incase you don't understand how I transmit 359 in 5 bits (2 bits, 2 bits, and 1 bit:)

    • 23 * 32 * 51 = 360
    • Take the exponents and turn them in to bits (11, 01, and 1.
    • Send it to the client
    • Client turns bits in to numbers 0-3 ( 11 = 3, 01 = 2, 1 = 1)
    • client inserts bits in to exponent's place
    • 211=3 * 301=2 * 51=1 =
    • 8 * 9 * 5 =
    • 360

    Is there any way to do something like this using 4 bits separately or together?

    Edit 2: I'm an idiot so I didn't realize this wasn't lossless.

    Feel free to coat me in tar and feathers ¯\_(ツ)_/¯

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

    (Hobbyist) Good non-mainstream language to learn in 2018?

    Posted: 02 Jan 2018 11:47 PM PST

    Hello all. (Edit: longer post ahead. If you do not want to read all of it, skip to the last 2 paragraphs)

    Just a short introduction. I am not total beginner, started with QBasic in primary school when I was 9, continued with Pascal in high school (as part of IT subjects, so not very serious). Later in high school, I got interested in Ruby (self-taught), but all of my projects were small toy CLI apps or scripts. Even with Ruby I was programming procedural way (no OOP). Anyway, because of career choices, lack of time and other responsibilities in my life, I completely neglected programming even as a hobbyist (for 6-7 years at least).

    Few months ago I turned 30 and decided it would be good idea to renew my interest in programming and maybe to work on small project (have few ideas, but did not make final decision yet). Considering the holidays I have ahead, you can even see it as good opportunity to work on it as a NY resolution.

    Anyway, before making decision should I refresh my Ruby knowledge or try something new, I would like to listen for proposals what would be good non-mainstream languages to learn in 2018? What would you like to learn next for fun and pleasure? And why? This is more a question for experienced and/or professional developers obviously.

    I am not interested in web developing at all. Primary CLI stuff or simple GUI/2D games. Also, considering my career is not connected with programming at all, the new language can be anything as long it has decent documentation or literature. Thank you.

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

    Best Data Structures and Algorithms Course/Book in C#?

    Posted: 02 Jan 2018 11:54 AM PST

    I've been self learning C# for a bit and I want to take it to the next level with data structures and algorithms

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

    Post 9/11 GI Bill and developer tracks

    Posted: 02 Jan 2018 09:06 PM PST

    Hello all, looking for any guidance/information on any good programs that accept the Post 9/11 GI Bill and actually give you the ability to collect the benefits, such as, housing allowance, etc... I see Bloc.io but that seems a little long for a developer/engineer track. Maybe I'm wrong. Any suggestions/other programs you may know of? Thanks.

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

    How do I know when I'm good enough to get a job programming?

    Posted: 02 Jan 2018 03:01 PM PST

    Everyone I know who's gotten a job in programming said they didn't feel ready. I get that someone might know "feel" ready, but how do I "know" when I'm ready to start doing programming as a full-time career?

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

    How do I set python into my PATH?

    Posted: 02 Jan 2018 07:47 PM PST

    I have been using this website https://docs.python.org/2/using/windows.html for a while but I am confused on how to set python onto my PATH. I went into "edit environmental settings" but then im not sure what it wants me to do next or if it even contributes to setting it onto my path.

    Can anybody explain in detail how to do this?

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

    [React/JS] 30 Days of React tutorial (Day 5)

    Posted: 02 Jan 2018 03:41 PM PST

    Hi, I'm working on learning React, and a bit stuck. I'm having trouble figuring out why my page isn't rendering properly...all components are rendering except for the ActivityItem component. Can't figure out why...I compared my code and the book's code side-by-side for each line of code, and couldn't find anything different.

    Am I supposed to add <ActivityItem /> on the App component? I thought that since the Content component was already calling the ActivityItem component, I didn't have to. I should also mention I have no errors in the console.

    Here's the components I have (total of 3 components on one file, as the book hasn't showed me how to separate them yet and use import/export):

    <!DOCTYPE html> <html> <head> <title>30 Days of React</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js"></script> <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> <link href="index.css" rel="stylesheet" type="text/css" /> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="demo"> <div id='app'></div> </div> <script type="text/babel"> class Header extends React.Component { render() { return ( <div className="header"> <div className="menuIcon"> <div className="dashTop"></div> <div className="dashBottom"></div> <div className="circle"></div> </div> <span className="title"> {this.props.title} </span> <input type="text" className="searchInput" placeholder="Search ..." /> <div className="fa fa-search searchIcon"></div> </div> ) } } class ActivityItem extends React.Component { render() { const {activity} = this.props; return ( <div className="item"> <div className="avatar"> <img alt={activity.text} src={activity.user.avatar} /> {activity.user.name} </div> <span className="time"> {activity.timestamp} </span> <p>{activity.text}</p> <div className="commentCount"> {activity.comments.length} </div> </div> ) } } class Content extends React.Component { render() { const {activities} = this.props; return ( <div className="content"> <div className="line"></div> {/* Timeline item */} {activities.map((activity) => { <ActivityItem activity={activity} /> })} </div> ) } } class App extends React.Component { render() { return ( <div className="notificationsFrame"> <div className="panel"> <Header title="Timeline" /> <Header title="Profile" /> <Header title="Settings" /> <Header title="Chat" /> <Content activities={activities} /> </div> </div> ) } } let mount = document.querySelector('#app'); const activities = [ { timestamp: new Date().getTime(), text: "Ate lunch", user: { id: 1, name: 'Nate', avatar: "http://www.croop.cl/UI/twitter/images/doug.jpg" }, comments: [{ from: 'Ari', text: 'Me too!' }] }, { timestamp: new Date().getTime(), text: "Woke up early for a beautiful run", user: { id: 2, name: 'Ari', avatar: "http://www.croop.cl/UI/twitter/images/doug.jpg" }, comments: [{ from: 'Nate', text: 'I am so jealous' }] }, ] ReactDOM.render(<App />, mount); </script> </body> </html> 
    submitted by /u/shhhpiderman
    [link] [comments]

    Your Thoughts on Joining a Summer Coding Bootcamp after Freshman Year

    Posted: 03 Jan 2018 12:04 AM PST

    I am currently a freshman at a liberal arts college in the United States majoring in History. I have recently become very interested in learning how to code and I have just completed the most basic computer science course at my college during the Fall (introduction to python), but I will not be able to take any further computer science courses.

    My university will not allow me to become a computer science major or minor at this point due to my poor math skills, so I am forced to pursue my history degree. During the summer I have the means to attend a coding bootcamp in New York City but I was wondering if it is truly worth it.

    If I complete the coding bootcamp this summer and then come back to college for the next 3 years taking no computer programming courses, and not having the time to study coding in my own time, will the coding bootcamp be a waste of money? I will likely be able to intern somewhere in both the summer of 2019 and 2020. If I try to intern somewhere in the summer of 2019 and they see that I went to the coding bootcamp in 2018 but took zero programming courses for an entire year will this be a dealbreaker? Am I better off going into a coding bootcamp after I complete my undergraduate degree entirely?

    As someone looking to break into a career in coding/programming what advice could you guys give me?

    Thank you!

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

    Powerful and free UI KIT for the newest Bootstrap 4 and Material Design

    Posted: 02 Jan 2018 11:54 PM PST

    400+ material UI elements, 600+ material icons, 74 CSS animations, SASS files, templates, tutorials and many more. Free for personal and commercial use. Worth checking out: https://mdbootstrap.com/material-design-for-bootstrap/

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

    Not sure if this fits, but I wrote myself a powershell script to set up my environment when I'm on windows

    Posted: 02 Jan 2018 07:46 PM PST

    You can find the code here

    The script pollutes the environment variables, and the PowerShell_profile.

    The following are installed:

    • git
    • ssh
    • node
    • npm
    • and some node_modules (eslint-plugin-typescript, standard, typescript, typescript-eslint-parser)

    You'll be asked for your github password (maybe several times). It is not stored anywhere. It's used to set up the SSL certificates, so you're not asked for your password when pushing. Additionally your repos are downloaded into a projects/ directory. All relative to the directory of the script.

    Additionally you can use the following command options

    git --git-profile=git-login npm --npm-version=npm-version node --node-version=node-version 

    Hope it helps! I'd love feedback as it is the first time for me making a powershell script!

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

    Acer Swift 1 for web dev?

    Posted: 02 Jan 2018 03:41 PM PST

    Hello, Is this laptop enough for learning web development? Node.js, React etc. It's the only ultrabook in nice price i saw around https://www.acer.com/ac/en/US/content/model/NX.GP2AA.002

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

    [Java][Selenium] Two almost identical elements behave differently when targetted via findElement.By(id) and I can't figure out why

    Posted: 02 Jan 2018 11:06 PM PST

    Hi!

    This is a bit of a tricky situation for me, because I'm the only inhouse working with selenium and don't have anyone here to ask, and what I'm working on is owned by the company so I can't show exactly what it is either. I will provide more information on request as I'm not sure what is relevant here and there's so much available info. Id appreciate some pointers then I'll provide.

    I have two different images on a website that I need to interact with. The two elements are "div class"es with their own div id. I can find them both via xpath so it's no absolute crisis, but as xpath isn't immutable here (I'm referring to elements in a table so naturally their position change often) I'd like to get this ID issue sorted.

    The method I use for targetting them is described in the title:

    driver.findElement(By.id(address)) 

    This works well for 15/16 cases that I'm working with. I can't find any obvious difference between the ones that work and the one that fails. Selenium says it can't find that element, yet chrome devtools provides the id, and the id provided is even contained in the xpath address (as the xpath address starts of by saying [@="alarinthselement" before continuing in a lot of ul/li/div/tr etc). So this has me thinking the error might not be in the address it self, but some kind of layer making it "invisible" for Selenium. Some frame of its own?

    I use this method for interacting with the elements (the actual method is way bigger and includes stuff like ScrollIntoView, but these are the parts that find and interact with the element):

    ((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView();", driver.findElement(By.id(targetAddress))); WebElement element = driver.findElement(By.id(targetAddress)); JavascriptExecutor executor = (JavascriptExecutor) driver; executor.executeScript("arguments[0].click()", element); 

    I guess this problem stems from me being a beginner at programming, and not fully understanding all the methods I use, but I'm at my wits end here. I don't mind doing my own "homework", but for now I don't know which book contains the answer to my homework. :-) Let me know, and I'll read!

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

    How to easily check gender of musician given name?

    Posted: 02 Jan 2018 10:51 PM PST

    I'm doing a small Spotify project and can't seem to figure out an easy way of checking the gender of a musician, given his/her name. It's not included in the API. Any ideas on how I can easily do this, without making a call to the Wikipedia API and manually searching for keywords like "him", "her" etc? Thanks

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

    What got you into coding and How do you keep the passion alive?

    Posted: 02 Jan 2018 10:45 PM PST

    What keeps the spark alive in your coding world? Besides the money of course.

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

    Question on Unittests

    Posted: 02 Jan 2018 04:16 PM PST

    How far down the rabbit hole do I go with my unittests? I mean, if I want to think of every possible scenario I could have 10 times the code base in unittests then actual application code.

    Example:

    I'm passing a json like this through an API endpoint:

     { 'name': 'Test Folder', 'description': 'Test User Folder Addition', 'owner': '2', 'personal': 'True', 'parent': '', 'tags': [] } 

    Do I make a unittest for every possible scenario for a removed mandatory field to validate the 400 Bad Request? ie. make a test removing name from the json. make a test removing owner from the json. make a test removing parent from the json. Now imagine you have multiple endpoints.... that's a lot of damn unittests.

    or do I abstract it and say "Here's my mandatory fields". For each field in the mandatory field remove it from the json.

    or am I overthinking it?

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

    c-passing array of linked lists to a function

    Posted: 02 Jan 2018 01:26 PM PST

    hey everybody,

    so i'm doing homework assignment to import a file of costumers details to a struct of linked lists and also sort them alphabetically and then create a menu with actions the user can make like add a new costumer,save the file,print costumer list ...

    so far i managed to import the file and sort the costumers and also print them .

    my problem is i cannot figure how to pass my array of linked lists to another function and then make actions on the array in that function. i thought i could just write it inside the switch inside the main but then i learned that it is wrong to declare variables inside switch case.now i'm stuck .

    this is my code , https://pastebin.com/DNvTzTrY some of the functions inside comments because they didn't work this is my file of costumers that loads into the array https://ufile.io/3hvyu

    any help will be appreciated

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

    Fundamentals of OOP programming?

    Posted: 02 Jan 2018 06:11 PM PST

    After struggling through java last semester, I'd really love to take an online course to help me actually understand the core concepts of OOP, specifically: encapsulation, inheritance, polymorphism, abstract classes and interfaces. Any and all suggestions would be greatly appreciated, and of course Happy New Year :)

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

    Free Student Software And Other Deals

    Posted: 02 Jan 2018 02:22 PM PST

    I have one semester left of college. What free, programming-related deals are available for students that I can milk before I graduate?

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

    Wanting to learn programming with a specific goal in mind.

    Posted: 02 Jan 2018 03:41 PM PST

    I want to make one of those smart mirrors entirely by myself. Something like this.

    I can do all the assembly and stuff (I built my own PC, so I think I have the technical skills to assemble it), but I also want to do all the code that operates it myself.

    Goals for my project:

    • Display local news/weather/time

    • Throw a joke every now and then

    • voice + gesture control (Google assistant/alexa?)

    So I was planning on using a Raspberry Pi 3. I think it should work well enough for what I want

    TLDR;

    Anyways, my question is, what would be the best software to have under my belt to work with a Raspberry Pi?

    Thanks

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

    Can someone point me to a modern implementation demo of installing Babel so that I can use ES6 features with React

    Posted: 02 Jan 2018 09:28 PM PST

    I followed the docs on Babel and it still isnt working for me. Im using node if that makes a difference.

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

    I made a web app that sorts/filters submissions from "Ask HN: Who is hiring"

    Posted: 02 Jan 2018 03:28 PM PST

    https://jobsortio.herokuapp.com

    For those of you who don't know, the latest "Ask HN: Who is hiring" post was posted today and can be found here: https://news.ycombinator.com/item?id=16052538

    jobSort() filters the listings by location and sorts based on the technologies you know and how well you know them.

    You can hide listings you aren't interested in or show all descriptions so that you can easily ctrl+f any of the submissions.

    It is still a work in progress...Stack overflow is currently disabled because (prior to my web app) my heroku server was banned from accessing stack overflow

    Let me know if I'm missing any technologies or if you have any other feedback! :)

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

    A Different Type of Question - Teaching a Non-Programmer Employee Programming From Scratch

    Posted: 02 Jan 2018 09:22 PM PST

    To begin with, a little background about my situation. I'm an integration engineer in the healthcare sector and I'm working on training a new employee. Our role is a bit of a strange niche because a certain level programming skills is absolutely needed but coding is maybe a third of our day to day work (the rest is project management, implementation, customer calls and other non-software development stuff). Many people (including me) don't have CS degrees. Personally, I love the dev side of things so I tend to focus a lot on it a lot and am probably close to a typical developer in competency (medium to high competency in C#, Lua, Shell scripting, and M and have dabbled in Swift, Java, HTML/CSS/JS, SQL, C++, Python, and maybe a few other things I'm forgetting).

    Anyway, with that background out of the way, we recently hired a new integration engineer with NO programming experience at all. So I'm trying to basically tutor someone in a crash course that would, ideally, cover maybe roughly the first couple years of a CS degree but in just a few months or faster. Also, most (99%) of what this person will be doing is actually embedded Lua scripting inside a larger ecosystem, which is a nice language, but means there really aren't any CS101 level training materials.

    Any suggestions for what sort of training or curriculum would make sense in this scenario? I'm leaning towards an online intro to programming class in a language other than Lua (obviously lots of them exist, https://itunes.apple.com/us/course/programming-methodology/id495054181 looked promising).

    What sort of a timeframe is realistic to get someone up to a moderate level of competency? Should I let an online class do everything or try to tutor them myself? So far the latter has been, uh, less than effective but I think I've been starting with way too hard of problems instead of comprehensively starting from ground zero.

    Thanks much!

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

    No comments:

    Post a Comment