• Breaking News

    Saturday, May 11, 2019

    What have you been working on recently? [May 11, 2019] learn programming

    What have you been working on recently? [May 11, 2019] learn programming


    What have you been working on recently? [May 11, 2019]

    Posted: 11 May 2019 09:10 AM PDT

    What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

    A few requests:

    1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

    2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

    3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

    This thread will remained stickied over the weekend. Link to past threads here.

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

    Tim Cook "I don't think a four year degree is necessary to be proficient at coding"

    Posted: 11 May 2019 02:19 AM PDT

    "I don't think a four year degree is necessary to be proficient at coding".

    "I think that's an old, traditional view. What we found out is that if we can get coding in in the early grades and have a progression of difficulty over the tenure of somebody's high school years, by the time you graduate kids like Liam, as an example of this, they're already writing apps that could be put on the App Store."

    https://www.macrumors.com/2019/05/10/apple-ceo-tim-cook-says-no-degree-needed-to-code/

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

    About Microsoft VS Code

    Posted: 11 May 2019 10:49 PM PDT

    Ok so I have learnt a few languages and tools - C, C++, Python, Java, etc.

    Some because they were in the academics, some others because i was interested.

    • For C and Cpp, I am using codeblocks

    • For Python, I am using Pycharm

    • For Java, I use notepad and windows terminal

    • For JavaScript, I use an online editor (Scrimba)... blah blah

    So can I use VS code to replace all these editors? Is it as good as all of them?

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

    I want to write a simple program in JS that creates sparks around the cursor as I move it, what kind of math and physics do I need to learn in order to do this?

    Posted: 11 May 2019 07:10 PM PDT

    I'm looking for some resources, mainly books, about math and physics that help me develop this kind of programs in Javascript. I'm an experienced web developer but I mostly do enterprise applications and I haven't had the need to apply this kind of effects, however, I am interested in learning, so please suggest.

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

    UML Diagram route for Game Java

    Posted: 11 May 2019 09:32 PM PDT

    I am asking because i do not know and have not had to do a project this big. My last final was only a GPA Calculator. So please, i would like help and CONSTRUCTIVE criticism.

    To make it simple i am tryibg to make use of my summer by trying to code a game with the help of my girlfriend so that i can at least see the accumulation of the things i have learned so far.

    I want to start with a UML class diagram and would like to ask which order should i make my focus from soemthing Broad like my

    Interface which i will call "Board" that just sets a frame.

    To more complex such as physics and collision.

    Which classes do i need to have? What order should the be? 1. Board 2. Timing 3. Object 4. Character 5. Map 6. Level 7. Difficulty(i would like to use a Strategey design pattern for this) 8. Game

    Thank you.

    P.s. if i am going about this the completely wrong way please let me know.

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

    Can you substitute ComSci degree with self learning?

    Posted: 11 May 2019 11:16 PM PDT

    I'm a Filipino trying to get into PUP. The university is first come first serve, you can get the course you want if you are scheduled early but I'm not.

    I passed the entrance exam but unfortunately I can't get the comsci degree, even the BSIT is wavering. Now I'm planning to do BSIT then study bscs courses ( a student employee is kind enough to give me the curriculum for the whole comsci degree)

    If I did that, can I have the knowledge the same as the one who took bscs course? Or no self-learned can compare to university after all?

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

    Python Humble Bundle

    Posted: 11 May 2019 05:00 PM PDT

    For anyone interested in learning Python, this may provide some helpful books. I haven't read them, so I can't vouch for how helpful they would be, but it looks like you could get them for cheap. Deal is closing soon though. https://www.humblebundle.com/books/python-oreilly-books

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

    Library best practices (when involving multiple languages like Python/C++)

    Posted: 11 May 2019 07:06 PM PDT

    I am beginning to put together a new open source library and was wondering whether anyone had any opinions about best practices when it comes to supporting multiple languages. It will be a C++/Python library. The Python side being mostly bindings to the C++ code (via pybind11). The C++ side will use cmake to generate make files for building/installing the library. Python, however, has its own package manager. I would like to be as Pythonic as possible and ensure that the full library can be installed via pip/setuptools. I don't want Python users to have to muck about with cmake files (that would be very cruel).

    Should the python part of the library (which is just bindings and maybe some extra python code) be its own repository or just a separate library under the same repo? Should it download and try to install the C++ side itself or just require it as a dependency? It is likely the C++ end will either be header only (with compilable tests) or dynamic.

    I have seen another library, PyTorch, use setup.py to call the cmake which helps build the C++ code. But the main difference is that they primarily support their Python API not C++.

    Any opinions or advice is welcome.

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

    Anyone good with Spring Boot? Desperate Plea

    Posted: 11 May 2019 04:57 PM PDT

    I have an interface called UserRepository that extends MongoRepository, I also have UserController class that is annotated with @RestController. These are located in the main.java subdirectories. My UserController class Autowires the UserRepository successfully and I am able to use it within that class. But I am trying to write a test class under the test directory. When I try to Autowire the UserRepository in this class, I get a null pointer exception. I even tried instantiating the controller class and just accessing the repository field, but both cases give me null.

    Is there anything major that I am missing from what you've read so far? Thanks.

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

    Should I learn Python or Cython first?

    Posted: 11 May 2019 04:55 PM PDT

    I'm not new to coding, I have some experience in Java and a little (strong emphasis on little) experience with JavaScript. I'm applying for a contest that requires you to know either Python or Cython. I did some research and it seems like Cython is an upgraded version of Python with a little different syntax. Should i just jump into Cython, or should i start with Python and learn Cython later on?

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

    Coding student will do anything for direction!

    Posted: 11 May 2019 10:20 PM PDT

    Sorry for the rant, and I apologize if this post doesn't completely follow this subreddit's guidelines <3

    Hey guys, so I'm at University and I recently changed my major back to MIS (business/database oriented programming) and I'm looking to get back into some syntax and restart my knowledge to get a headstart before my new classes start up. A little exposition: I went to a technical HS and my preferred career of choice was programming, so I ended up spending half my day for my last 2 years of HS in classrooms learning basic computer and coding knowledge. During this time I earned a couple of basic hardware certification from Microsoft as well as earned a couple of baseline certifications in Python, Java, Javascript, SQL, and a little HTML. I never got a full grasp of any of the languages, as the courses were meant to give a base knowledge of a lot of different types of coding to allow the students to pick their own path down the line (but my preferred language and the one I spent the most time on, was SQL and MySQL)

    So fast forward to today and I had the fortunate opportunity to change my major back to MIS coding after a long series of events that don't really matter and I'm not sure how to get back into it, what type of terminals or software I need and where I can learn from since the only experience I've ever had with learning code was in a structured classroom setting with a teacher. I'm fine learning with an online course or out of a book, but it would be greatly appreciated if any of you guys can point me in the right direction to begin so I can speed up the beginning learning curve as quickly as possible. I'm not sure if I should jump right back into SQL and see if I can continue my learning or if some other language would be better to start with to have under my belt since I have a lot of free time to play with before any SQL classes start up. I would love to maybe try a more general language and start from the bottom again, so if anybody is willing to give me some info on that, I would be ever in your debt. Thanks so much in advance.

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

    [Python/General] Are there any text editors/IDE's that can render full-color Emojis?

    Posted: 11 May 2019 10:13 PM PDT

    I currently use PyCharm but have found that it lacks certain the ability to print or handle Emoji.

    Pasting an emoji directly into the editor gives a BAD_CHARACTER error.

    I can print out emojis using a command like print('\U0001F602') but that only displays a white box in the terminal.

    Is there anything that can render and display emojis in full color?

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

    Hiding hidden lines in simple wireframe program

    Posted: 11 May 2019 10:07 PM PDT

    I'm working on a simple Arduino Uno sketch to display wireframe models on an SH1106 OLED screen, based on this code.

    I'd like to hide the non visible lines at the back of the model as showing all the lines on such a small low res screen can be confusing. All the info I can find is for much more advanced complicated software. Can someone point me in the right direction for what I'm trying to achieve? You can see what I've been working on in action here.

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

    Unable to render image without error and Image Butoon

    Posted: 11 May 2019 10:06 PM PDT

    Hey all,

    So I was working on this news feed type app where the user would create an account and sign in to browse a news feed type thing. In order to make this news feed, I need to add images. As a side note, I am using Tkinter to make this GUI so the entire window must be in a loop and constantly running to check for changes. However, I am not able to render the image properly without getting this error.

    'PhotoImage' object has no attribute 'show'

    I have no clue how to get rid of this error in order to continue with the loop and render a button which is the image. I was trying to make something so that when the image is clicked, something would happen however without the image properly rendering, I will not be able to make that button which is the image (which I also have no idea). It is my first time using Tkinter or making a GUI so I don't know how to approach this image issue or the image button. Any help would be greatly appreciated. Here is the code for reference: https://repl.it/@AdityaMangalamp/News-Feed

    Thanks!

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

    [javascript] no declaration file found for 'pretty-print-json'

    Posted: 11 May 2019 09:54 PM PDT

    I'm trying to use 'pretty-print-json' for my website but when i use:

    const prettyPrintJson = require('pretty-print-json'); 

    it gives me the error "could not find a declaration file for module pretty-print-json" and ".../pretty-print-json.js implicitly has any type" i did use" npm install pretty-print-json" and it is definitely there but I can't get rid of this error. any ideas?

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

    I want to learn ETHICALHACKING. Can anyone please give me a good place to start.

    Posted: 11 May 2019 09:53 PM PDT

    So I want to become and ethical hacker and work freelance as well as possibly score a permanent position. I am 22 and I want to learn as much as I can during my 2 month summer so I can work while continuing going to college. Is 2 months of grinding enough to do this? I want this really bad and I want to start ASAP.

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

    Loaded question, but how does Google's search engine work ?

    Posted: 11 May 2019 09:36 PM PDT

    Is there an easy way to explain how Google's search engine work ? I've been programming for a few years and I'm curious how Google's search engine work in simplest terms. Thanks!

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

    Need help with C++11 file programming

    Posted: 11 May 2019 08:25 PM PDT

    Hi, I'm a university student who's studying computer engineering, I received an assignment that involves Files. The question is how can access a particular part of the file that's divided by "|" and display it(since it's a string I want to display certain parts of the string)

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

    I'm new to C++, any help?

    Posted: 11 May 2019 08:21 PM PDT

    Hey, I'm trying to make a CLI-based text adventure as my first project in C++. I'm comfortable with Html and Javascript, but I'm new to this. There isn't much code, so I needn't show it. Really, I know what the problem is, I just don't have enough knowledge on the syntax documentation; It's very different from what I'm used to dealing with. I try to define a text string, foo and the text itself, bar so basically, I have const *char foo="bar";

    That works, right? No errors, it's all right. But when I do console.log(foo); , the output is of hexadecimal value, which makes no sense from a gamer's perspective. Then I ran into this. I didn't know what the const variable type actually did, so I toyed with the code. I was left with *char foo="bar"; and apparently, that is illegal in the compilers point of view. Later I learned that const meant "constant value, read only"(not obvious at all, right?). So that really bothered me. ALL my output text I wanted to go through that variable(I wanted to change it). So all this boils down to two newbie questions:

    1. How can foo be a versatile value?
    2. How can foo return a text string, as opposed to hexadecimal

    Also, I have a few basic bonus questions; as a beginner, I want to be on the right path:

    1. What languages will C++ make way easier to learn?

    2. Do I have to know C? would you recommend learning another language(eg. Python, Php) beforehand

    3. What do you do with C++? What are useful things can I code besides console logs?

    Thanks! Any help is appreciated.

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

    Learn .NET Core or Java Spring Boot 2 for Enterprise Development?

    Posted: 11 May 2019 07:48 PM PDT

    Out of the two, C# and Java, which one is better to learn in 2019?

    I heard that in terms of the technology itself, C# is "better" than Java, however it seems to me that more high-profile Tech Companies use Java than C# (except for Microsoft, of course).

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

    best projects to do when starting a new language

    Posted: 11 May 2019 07:32 PM PDT

    Amateur programmer/developer. Some coursework background in Java and self-taught C# with a scripting language or two inbetween.

    How do y'all decide how "deep" to go in a language - especially if you are not a professional churning out projects for a company that may require advanced knowledge of networks, databases, enterprise issues, etc.?

    How do you decide when to start playing with another language, and what's the first thing you do? I've been working hard with C# to build a Xamarin app or two, but other than working out an expanding layer of kinks in those apps, there's not necessarily "more" I want to do with it. What's fun about picking up Python, or Ruby, and what do you do with it?

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

    An actual software that can create softwares?

    Posted: 11 May 2019 07:20 PM PDT

    Hi, a newbie here, i was wondering if there is a certain software that makes the program for you, for example there are some android apps or websites that help you create android apps or android games for free and easily(no programing knowlegde required). I remember when i was using Stencyl a software that helps create games where you can just drag and drop the commands, stuff like if certain action it does something.. i know this might sound a bit lazy and all, but im not looking forward to have a career in this domain its just to let some creativity out. If theres no software like that what do you guys advice me to learn and what programing software to use. Of course in order for you guys to help me i should give you some examples of what i want to do with it.. an android camera app and a software wiki like for a video game. Thats it ! I will apreciate your responses :)

    submitted by /u/Confused-user
    [link] [comments]

    What programming language should I use to make a trading platform?

    Posted: 11 May 2019 07:06 PM PDT

    So I want to make a ebay copy basically where users can buy and sell stuff with each other. Before I start, I wanted to get some advice and tips from the Reddit community.

    I just learned Java last semester in college but I can learn another language if needed or it makes the process easier. I know Ill need to use Google database server for user accounts but how exactly do I do the trading process and how users can message each other and pay each other. This is going to be my first solo project and this summer I want to put my time and make it happen. The main question is should I do and android app in Java. A website in HTML or an IOS application. What would be easier for me. I already have a knowledge of basic programming techniques like loops and arrays and all that good stuff but like I said I am willing to learn... just what do I learn and what do I research? Any feedback is appreciated!

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

    Add to the beginning middle and end of a linked list without creating a reference to head?

    Posted: 11 May 2019 06:56 PM PDT

    I'll be honest this is part of my data structures class. I know how linked lists work. However, this is throwing me off because with my current working knowledge is that in order to traverse a linked list you need to create a reference to the head node. Then use that reference to traverse. Example Node current = head;. Then use a while loop to traverse through. The big goal of this assignment is to add to the front middle and back of the list only using the head, all in one method. I was going to create other methods within the class to handle all those things, but the rubric states I can't create a reference anywhere in the program, just use the head itself everywhere. Also I need to add the the middle of the list without being given an index, and without creating a memory reference you can't create a counter to see how long the list is. Anyone know any possible solutions? This is a singly inked list, I'm not allowed to use a doubly linked list.

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

    How to find largest contiguous area of one color(blob) in a grid. Going beyond canned algorithms.

    Posted: 11 May 2019 03:01 PM PDT

    No comments:

    Post a Comment