• Breaking News

    Sunday, July 15, 2018

    I teach Java for free in Skype. I'm looking for more students. learn programming

    I teach Java for free in Skype. I'm looking for more students. learn programming


    I teach Java for free in Skype. I'm looking for more students.

    Posted: 14 Jul 2018 03:53 AM PDT

    In my free time I teach Java for free using Skype. Currently I've got 5 students, all of them from Reddit.

    You can be an absolute beginner or have some experience in programming. To participate, you just need Skype and a microphone.

    To arrange day and time, please contact me in Skype (totaljava.org). If you have questions, please post them here.

    Thanks for reading

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

    Codingame.com is by far the best programming site I have encountered so far

    Posted: 14 Jul 2018 09:49 PM PDT

    This site is huge, it includes 2 main types of challenges multiplayer ones(which are about programming a bot to do something better than your opponent's bot) and puzzles(my personal favorites!) which are diverse challenges ranging from creating an algorithm for a mars lander so it can land, to analiyzing different temperatures and deciding which one to print.

    Here's what's truly amazing: This site supports over 25 languages!!!! including C++, C, Java, Python, C# and many more.

    The site is super polished and the community is super friendly and helpful(helping me many times to get out of coding problems and debugging). I haven't had this much fun learning to program in months!

    Obligatory: This site is not for complete begginers and is not intended to teach you a new language, the site's purpose is that people who know a language (or are learning one) can deepen their understanding of it through fun challenges and activities.

    (I am in no way related to codingames.com btw, I just wanted to share this awesome community with you folks!)

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

    Incase you were once like me and utterly confused about what nodejs really is.

    Posted: 14 Jul 2018 03:52 AM PDT

    Hey, so any time I have an epiphany about programming i thought to my self I am going to share it here just because I now realize it does not mean someone else isn't in my boat, I also sorta want to start a blog about all the things that confused me and how I understood them in plain terms rather than just all the technical buzzwords. ( i am a thick one)

    Anyways so when they keep saying

    Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine

    I use to get really nervous because that sentence just made me feel stupid. Over the course of reading more about it I have found my simple explanation and here it goes:-

    So languages like C++ and Java or python can be written and run directly on the computer. They are either compiled or interpreted using some a compiler or a virutal machine or an interpreter that changes them to machine code that can them be executed directly on the computer's respective OS.

    See JavaScript is not like that, is it a programming language, most definitely YES, but it does not let you write .js code that becomes an executable file directly on the computer, it was specifically designed for the browser meaning that the browser is the one that is capable of interpreting it and turning it into something useful, so in a way the browser acts like JavaScripts' interpreter. That is why you cannot have it run on something like a server because the server or any regular computer does not know What it is

    Even if a language like php is scripted and cannot run directly on the computer (i may be wrong please correct me) servers like apache have something called mod_php that is default enabled on all apache servers

    what this means if php is found on those servers, interpret and execute.

    So what does this mean for nodejs? NodeJs is basically a capability that allows js run outiside of the browser, not just the server. V8 engine was what was used in chrome to run JavaScript on the browser. So what is basically is, is you took the thing that interpreted JS inside the browsers, modified to interpret it into a sort of executable and voila, now your OS and computer can have a conversation with JS.

    And a side note, Nodejs is not the first of its kind, there is also Rhino and many others, it is all a similar concept, just different engines that allowed for JS to be executed on the browser, since not all browsers were built the same way.

    Hope this was helpful and sorry for the long post

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

    Wrapping my head around SQL

    Posted: 14 Jul 2018 05:08 PM PDT

    I've heard a million times that I should learn SQL, and the last few days I've been working through countless tutorials. It all seems pretty simple, I'm not having trouble with the language itself.

    But I can't seem to understand how it's actually integrated. To ask in the stupidest way possible - what do people actually type SQL code into? How does it interact with anything? All of the tutorials I've done have been coding in the browser, because I'm completely lost on what I actually need to set up in order to start using SQL in my projects. Any help would be great!

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

    Advice on which language to use for project

    Posted: 14 Jul 2018 09:37 PM PDT

    Hi I am new to coding and to reddit. I have read the rules and faqs and have done my own research but can't find a good answer. I want to learn a code and work on creating my own website that has video playback and streaming so I can post my own content on there like the Rooster Teeth website for example. It seems like for the front end JavaScript or HTML5 and CCS would be good. For the backend I have found people saying Python, PHP, or C++ would be good. As a beginner I don't know which language would be best for a project like this and for a beginner. I also don't know if I would need to learn like JavaScript and Python together in order to build a website like this. Advice on which language to learn for a website like this would be helpful, thank you!

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

    Best certificate course for learning professional software testing?

    Posted: 14 Jul 2018 11:11 PM PDT

    I don't mind paying some money to do a course.

    submitted by /u/svayam--bhagavan
    [link] [comments]

    Why isn't my JavaScript function executing?

    Posted: 14 Jul 2018 10:40 PM PDT

    EDIT: The issue resolved itself, somehow.

    Hi!

    I'm trying to execute a JavaScript function when I press a button. The HTML for the button looks like this:

    <button type="button" onclick="createTabs()">Test button</button>

    createTabs() is defined in a separate file, javascriptfunctions.js. I've added this to the page using WordPress's "wp_enqueue_script", which seems to be working as I can see <script type="text/javascript" src="[http://mywebsite.com/wp-content/themes/divi-child/javascriptfunctions.js?ver=4.9.7">](http://mywebsite.com/wp-content/themes/divi-child/javascriptfunctions.js?ver=4.9.7">)</script> when I inspect elements.

    However, when I click the button, nothing happens. What am I missing?

    Thanks!

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

    [c++] can a function accept one of two classes?

    Posted: 14 Jul 2018 10:13 PM PDT

    I have an operator overload function that is supposed to accept 2 parameters, either parameter can be one of two different class types. it's supposed to return a reference to one of the inputs but I'm not sure what the prototype would look like. Would I have to create functions for all possible combination of inputs and outputs?

    example:

    const class1 or class2 operator+(class1 or class2, class1 or class2); 

    class 2 is the derived class of class 1 so I was thinking of finding some way to convert class2 over to class1 but I'm not sure if I can convert it or what I'm supposed to do about the return statement. class2 has the same private member variables as class 1 with 2 extra variables specific to it.

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

    After taking a few courses at my university I still feel so confused

    Posted: 14 Jul 2018 08:19 PM PDT

    I've taken beginners and intermediate programming courses at my university and have learned Java well, I would even say I am proficient in Java. I am currently trying to teach myself Python. But then I see comments on this sub about things like SQL and frame works and things I have no clue about. How do I transition from simply learning languages and syntax, to learning about how to really program?

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

    Python functions, if then statements with integers and with strings

    Posted: 14 Jul 2018 11:56 PM PDT

    Hi, I'm new to Python 3 (and programming in general), and just trying some stuff out.

    I'm trying to write some code that will prompt the user to enter a number, and then tell you if it's greater than, equal to, or smaller than 5. The part I'm struggling with, is that I want my code to prompt the user to try again if they didn't enter a real number.

    Here's my code (forget about getting the code to repeat if it's not a real number, and I also can put in the input() later):

    def program1(prompt1): if prompt1 > 5: return "Well it's bigger than 5!" elif prompt1 < 5: return "Well it's smaller than 5." elif prompt1 == 5: return "Your number's exactly 5 - Wow!" else: return "Try putting in a number." 

    Here's what I'd like to happen:

    Entering 5 spits out

    Your number's exactly 5 - Wow!

    Entering any number that's greater than 5 spits out

    Well it's bigger than 5!

    Entering any number that's lesser than 5 spits out

    Well it's smaller than 5.

    Entering a string or anything that's not a real number (like an English sentence, a word, or something like the square root of negative 1) spits out

    Try putting in a number.

    Thanks!

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

    What language to learn or warehouse automation?

    Posted: 14 Jul 2018 11:28 PM PDT

    I used to work in warehousing and am currently a student studying computer science. My goal is to write software for Warehouse automation, but have no idea where to even start.

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

    Setting up a Virtual Machine

    Posted: 14 Jul 2018 07:36 PM PDT

    I was speaking with a friend in a computer science job and we talked about me getting into bioinformatics based coding. He stressed that I set up a virtual machine with Unix on the device. He wont explain why I should do this but I am not sure where to start. Has anyone done this? Is this recommended for beginner or do people stick to virtual machines?

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

    DFS and BFS interview questions

    Posted: 14 Jul 2018 05:20 PM PDT

    Hey everyone,

    Firstly, thanks for clicking on the post. I am prepping for my internship interviews, and even though I know what DFS, BFS, and Dijkstra's algorithms are, I don't know how to use them. Basically, whenever I see that something is a great problem, I just get lost on how to actually solve it. What are some resources that can help me break this fear? Thanks!

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

    How do I make it so that when I press a key in a console app, it will execute code within an if statement if a particular key is pressed?

    Posted: 14 Jul 2018 07:09 PM PDT

    I am thinking that I should use Console.ReadKey() but I am not sure. So far I have just used Console.ReadLine() and checked if the string entered is correct and matches the condition before executing an if statement. I appreciate any help to do this, thanks.

    (Go easy on me, I am quite to new to C# and programming in general!)

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

    C++, Sorting 10 Numbers by Descending order.

    Posted: 14 Jul 2018 10:55 PM PDT

    Hello everyone, I'm currently taking an introduction to programming class that teaches C++. We are normally tasked with a project, given the psuedocode, and expected to translate it into a functional program. The particular task we are given is to create an application that accepts 10 numbers, and then displays them in descending order.

    The psuedocode is here, posted to ideone.com

    https://ideone.com/MiVxT6

    And my actual source code, translated from the psuedocode is here (posted again to ideone.com)

    https://ideone.com/Fc3a2D

    My expected output is for it to take 10 numbers and sort them in descending order, but instead it just creates an endless loop asking for my numbers. Can anyone tell me what i'm doing wrong, and or how to fix it?

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

    [C++] Need help confirming memory cleaning is being done right

    Posted: 14 Jul 2018 06:37 PM PDT

    vector<Asteroid*>::iterator asteroidsIt = asteroids.begin(); while (asteroidsIt != asteroids.end()) { Asteroid* pAsteroid = *asteroidsIt; if (!pAsteroid->isAlive()) { delete pAsteroid; asteroidsIt = asteroids.erase(asteroidsIt); } } 

    So, to clarify, this bit of code is meant to go though a vector of asteroid pointers and check if they are alive or not, and if not, clean the memory that that is being pointed to, then remove that pointer from the vector.

    I ask here for help because I'm not entirely sure how to test memory cleaning code. So, if someone can explain to me how to test that to see that its working, that would also be helpful.

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

    HTTP error 400 after i added JWT

    Posted: 14 Jul 2018 10:09 PM PDT

    Hello, so, issue is in the Title, i have recently made a spring boot backend and tested all the endpoints, afterwards added JWT and after that i get http 400 message every time i try using a post endpoint. Does anyone have an idea what might be the issue, i am testing endpoints in Postman? Thank you

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

    What are CodeCombat's Game Development courses useful for?

    Posted: 14 Jul 2018 06:07 PM PDT

    A couple of days ago, I got an account for CodeCombat and went through many of the free lessons. While some of them were quite easy, several of the levels pushed me to deliberate over and refine my code. I feel that I'm getting a grasp around Python and some of the concepts that will be useful for other languages.

    I'm especially interested in learning game development. However, I don't know if the Game Development campaigns will be useful for my programming level. I already took a CS 101 course at college--where I learned the basics of Java--completed Unity's Roll-a-Ball tutorial, and even created a couple basic games in Scratch.

    I'm updating Unity right now to refresh my knowledge for the program, but I'm wondering if I'll benefit from CodeCombat's subscription features or if I'm better off saving my $10 and tackling some more rigorous courses and lessons.

    Who here has experience with CodeCombat's game development lessons? What does it cover and are they useful for a college student with Java experience under his belt, or should I spend my time on other ways to learn programming, like more advanced courses and creating minimum viable product games?

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

    [C++] Template function throwing exception when called, why??

    Posted: 14 Jul 2018 09:35 PM PDT

    void Game :: advance() { ... getClosestDistance(bullets[i], asteroids[i]) <-Error thrown here ... } template<typename T1> float Game :: getClosestDistance(T1 &obj1, Asteroid* obj2) { ... } 

    So I'm making an asteroids game, and I'm having issues with a implementing a Template function. I'm using a template so that both the Ship and the Bullets can be measured for distance to the asteroid with 1 function, each of them being considered a different object.

    However, when this function is called, an error is thrown, and the game crashes, and I'm not sure why. I was thinking it had something to do with me trying to send custom data types rather than standard ones, but I've not been able to find solutions to creating template functions that use custom data types.

    Just for clarification, the types I'm trying to send are a Bullet object and an Asteroid object.

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

    Why did Bjarne Stroustrup not get into copyright trouble with Dennis Ritchie, for basically copying C and adding his new features?

    Posted: 14 Jul 2018 09:15 PM PDT

    It's widely known, that c++ is basically c with classes, iirc even Stroustrup was going to name it that way.

    So, how come Ritchie didn't complain or do anything about Stroustrup basically modding his language?

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

    Is it possible to share a USB-hub with multiple devices ?

    Posted: 14 Jul 2018 09:15 PM PDT

    This might be more suited for a hardware specific sub, but i thought i would ask here first in case anyone has any experience with this.

    A simple search on google shows that it is possible, over internet that is. I'm more interested if there is a way hardware wise to connect say a USB hub to multiple computers.

    From what i understand:

    There can only be one host(master) to address devices(slaves).

    Only one device can communicated with at once, they have to be addresses individually.

    There exist an extension of USB called USB-To-Go, which can either be a host or a slave depending on the needs. Think of your phone for example.

    So questions:

    1. Would i be possible to share a USB-hub across multiple computers if you emulated the USB-hub as a host for it's connected devices. ? This would make say a USB drive to a slave to the USB-hub. So when a device is requesting say a file from the USB-drive it will send that to the USB-hub which will then request that from the actual USB-drive

    2. Is there a way to put a host controller on a computers motherboard into slave mode and share data then use OTG to connect the other computer ?

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

    What are good youtube channels for programmers? Other sources beside youtube are welcome as well.

    Posted: 14 Jul 2018 10:41 AM PDT

    Feel free to share the youtube channels or other sites that are good for programmers to keep track off.

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

    Looking for a free, open comic book database

    Posted: 14 Jul 2018 09:09 PM PDT

    Any of you know of a public online database that I can query and get back comic book issue information in a JSON object or the like? Like, if I scan a book's UPC and query the DB I can get back title, Issue, artist, writer, etc.?

    I know there are premium services that do online collection management but I want to build my own local app because A. I'm cheap B. I've been looking for a project to do with some kids I'm teaching to program and this would be a really good exercise for them.

    Please and thank you!

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

    Transparent text editor

    Posted: 14 Jul 2018 08:51 PM PDT

    https://github.com/transcranial/atom-transparency/blob/master/README.md

    So far this is the only way to make a transparent code editor and I havent been able to get it to work so I was wondering if anyone knew of a text editor or an IDE where you could change the transparency of the background so it looks like the image linked above.

    *Edit: changed the link *Edit2: added context

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

    No comments:

    Post a Comment