• Breaking News

    Monday, February 25, 2019

    What are your favorite examples of good API documentation? Ask Programming

    What are your favorite examples of good API documentation? Ask Programming


    What are your favorite examples of good API documentation?

    Posted: 25 Feb 2019 07:28 PM PST

    I'm working on a project synthesizing the best properties of good API documentation. Part of this involves learning what "good" means to everyone. Unlike prose or fiction, API documentation can absolutely be standardized and made more effective.

    So please share any examples of what you consider are good API documentation, and why.

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

    What is programming like as a job? I would like to hear some experiences!

    Posted: 25 Feb 2019 12:32 PM PST

    So I am seeking to go into college soon and I have been thinking about going on a path to become a programmer.

    I have always had interest in technology and computer stuff but never really knew what I would like to do as a job. I did want to become a game developer but the industry for that in my country is so small that I don't really know how to feel about it anymore.

    But we had a presentation on our college visit about programming and it sparked my interest. From what I understood, great emplyement percentage with from a good to excellent salary. And depending on workplace even an opportunity to work from home. And I think being able to code also opens up the opportunity to work with games if I ever wish to do so.

    Now I came here to ask you fellow programmers what is it really like? How did you become a programmer? Have you regretted it or wished to have taken any other job route? How is your pay? (Don't need to answer that if you don't want to) Do you like your job? Do you work for a big/small company or do you run your own business? etc.

    Any kind of things you can tell me about the job would be appreciated!

    Edit: Thanks everyone for answers, I'll get back to you in the morning.

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

    Why am I getting (-inf) as the answer in C?

    Posted: 25 Feb 2019 09:59 PM PST

    This is my code, I cannot understand why I am getting an infinite answer as it doesnt seem like i have an infinite loop. https://gyazo.com/c33246adc69e2c4ff6497d60099f47c0

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

    how do you write a while loop in C for (2n+1)!

    Posted: 25 Feb 2019 09:49 PM PST

    I cant figure this out

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

    Sharing program on Instagram/Facebook

    Posted: 25 Feb 2019 09:29 PM PST

    Hello,as the title suggests I wants to create a program, download it and share it on social media. It's a Web program (HTML) Sites like Sololearn do not permits sharing program ,they just allow you to share the link with friends Are there any sites or apps that will allow me to share my work on social media rather than just sharing links

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

    How would I write a while loop for (2n+1)!

    Posted: 25 Feb 2019 08:32 PM PST

    I have been struggling with while loops and been stuck on this forever ( in C)

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

    Is it an anti-pattern to use a class like a parameterized module?

    Posted: 25 Feb 2019 09:53 AM PST

    Hi. I do most of my work in Python, and I tend to have a sort of rapid prototyping workflow where I bang out a quick script that sort of does the job, and then I do a rewrite using what I learned from the prototype.

    In many cases, I want to use some of the code from my scripts, but I want to get rid of some of the global constants (like names of data files and soforth). I've noticed a pattern where I will turn these scripts into classes and make the constants instance attributes that are passed in as initialization parameters.

    I feel like this is getting close to the "God object" pattern, but I'm not mutating internal state after my "module object" is initialized.

    It doesn't feel brittle, but I just want to check and make sure this isn't an anti-pattern, since it's not the kind of typical way people think of encapsulation; i.e. Is it a noun? It's not a noun. It's just a bag of functions that need the same constants to work properly together.

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

    Attachment Recovery: GMail

    Posted: 25 Feb 2019 01:59 PM PST

    How could an attachment that I sent to myself be removed? (In Gmail) Is there a way to recover a video that I sent to myself from my phone? I'm in a relationship with a highly technical individual. We had an argument that I documented for future reference. I emailed it to myself and when I went back to review it, the attachment was gone. The email is still there, but attachment is not showing. Also, the video is gone from my gallery. Would Google possibly have access to historical records? Please help, I'm very worried! Thanks.

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

    Working with Tableau

    Posted: 25 Feb 2019 06:44 AM PST

    Hey guys,

    This isn't a typical programming question but more of a programming career question so I'll risk being deleted.
    I work for a very small company that seems to be getting smaller. We had about 15 people when I started and now we're down to around nine with an open position. I'm a little concerned.

    Technology stack aside I've always been a full stack developer (mostly .net/sql but recently a lot of angular) but recently the company I work for has been moving to replacing everything we (two of us) work on with Tableau in an effort to bring products to customers quicker. I have a massive fear that I'm going to be turning into a tableau developer. I haven't touched any code in almost two months and instead I've been setting up servers and demos for the business owners to run our data in the Tableau product.

    My gut is telling me to run away and not become a Tableau developer. Thoughts?

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

    what should i chose for robotic coding java or python?

    Posted: 25 Feb 2019 01:22 PM PST

    hello i am going to learn python and java, i know java little bit if, else,class logic etc.. what i am going to do is code software for automated gps controlled robot(it has wheels and an arm) the robot will work with esp32 but esp32 is going to be slave the real brain is going to be in the server, so there will be two programs one brain and the other one slave, i am going to use wireless serial communication for connecting these two programs i already know i need to use python for esp32 but what i cant decide is what should i use for brain program java or python ? i still need to learn both of them and i have ADHD(you dont know what it is google it -.-) soo its little bit hard to learn while listening and best way to learn for me is to while doing that thing so what is your recommendation ?

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

    Reversing Index in ADA

    Posted: 25 Feb 2019 04:57 PM PST

    Hello! I am doing some hamming binary parity bit checking stuff and I'm running into a problem with my index's.

    Binary reads right to left but I'm storing the binary string in an array which as many of you know goes from 0, 1, 2, 3, 4 ..etc. The issue I'm running into is when I need to correct a bit at say position 14, instead of reading from right to left 14 times through the index it reads left to right through the index which ends up changing the bit at position 2 as opposed to 14. I know Ada has a reverse function but this seems to only reverse the index values, not the index's themselves.

    Any help or insight would be appreciated and I thought my question was pretty straight forward but I can add snippets of code if needed!

    Thanks

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

    Please help me select a backend/database service for an Android app.

    Posted: 25 Feb 2019 04:10 PM PST

    I'm creating a tv show tracking app similar to trakt.tv and tvtime.com for my final year project. I've always had a problem with making databases, but it's even a bigger problem now since the backend application will need to be running over the internet rather on a local machine.

    What I need the backend to be able to do:

    Go to https://datasets.imdbws.com/ every day, download the IMDB datasets and incorporate them into the database, which the android app will use to show movie lists, search for movies etc. (Thinking about this now, maybe I could make the android app get these itself, so no point of a database for movies?)

    I also need a simple database which will store user reviews and comments for each title and some basic profile information. Maybe even chat messages, but I will se what I can do in a month and a half. Each user can save a tv show to a list and when a new episode is out, they will be reminded with a notification.

    I'm currently looking at Amplify (which I don't really understand what it does exactly) and Firebase. But I don't want to waste my time learning one of these technologies only to learn that it can't do what I want it to do.

    My previous experience has been developing a mid-size managing application for Windows in JAVA using a local MySQL server. I will appreciate any thoughts on technologies you think will be suited for this project and easy enough to grasp as I don't have much time. Also as you can see I'm not exactly sure how to implement the main functionality (movie and tv show data), so please do tell if storing it in a database is the right idea or if it should be stored locally. The data is 650MB with no images, so I doubt it's a good idea of having the users to download ALL the data every day.

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

    How would one go about finding (and modifying) a device's code?

    Posted: 25 Feb 2019 03:45 PM PST

    I have worked with Arduino, so I get the gist of wiring, sensors, and where hardware meets software. The Arduino is easy, though, because it has an obvious USB port it uses in order to interface with the computer. All I have to do is plug the computer end (USB type A) into the Arduino port (USB type B), and the computer will usually register the device, especially if I already have the Arduino IDE installed. What about other devices?

    Do all devices have some sort of way to plug in and see the code? Or do most devices come with inaccessible code, whether through hardware or software methods, to prevent from theft (a theory that occurs to me as I am typing this out)?

    Sorry I have so many specific questions, I'm trying to be as detailed in my post as possible without adding unnecessary drivel.

    Let's say I wanted to add/change functionality to my microwave. For example, I want to modify the tone of the beeps when the timer is done. My guess would be:

    1. take it apart
    2. identify (not sure how) where the data/code is kept, whether it be a chip, board, etc.
    3. find the right cable to connect the data-containing part to a computer
    4. ???
    5. learn what i need to know of that (or a compatible) language for my purposes
    6. edit/add to the code where i wish
    7. reassemble the microwave, hope i didn't destroy the microwave and/or inadvertently give myself future-cancer

    Is this at all a close estimate? I don't know as much of the hardware stuff, or much about industry standards or anything. Even if I take it apart properly, figure out where the data is on the device and how to plug it in, how do I determine the language? How would I know my machine can interface with the device?

    Thanks so much to anyone who took the time to read this || anyone who took the time to respond!!

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

    Question. If this is the wrong sub tell me and I’ll delete

    Posted: 25 Feb 2019 03:25 PM PST

    But I have a twitter question. How do the Krassenstein brothers get to be the first response to a Trump tweet? Bots? Algorithm? They pay twitter for it?

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

    Should you use schema for config file?

    Posted: 25 Feb 2019 02:55 PM PST

    Few years back, I worked in a company that used xml with DTDfor configuration. Writing xml was very verbose and DTD needed to be updated with every code change. However the benefits were great:

    1. No more silly spelling mistakes.
    2. Editor auto fill.
    3. No need to check documentation or source code to find out all the possible values and constraints.
    4. tool to validate the config before even starting up the application.
    5. Most customer support can be handled by first level support engineer instead of getting to the developer.
    6. Individual components have different dtds which is included in the main application.

    Nowadays, both opensource and enterprise applications seem to use the ini , yaml or custom txt file formats for configuration and don't distribute any schema files. I was just wondering why the concept of 'schema' and its benefits got lost in time. What formats do you use for config files and what you think is the current best practice?

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

    [Java] Can't understand why my loop isn't working.

    Posted: 25 Feb 2019 01:49 PM PST

    Hello! I am trying to split a file into parts based on the number of bytes a user inputs. The method that contains the loop is here: https://pastebin.com/N19buirJ. The program enters the while loop once, then stops. Here is what is happening in my main method: https://pastebin.com/E26sv8XL. This program is assuming the user is entering in MB instead of B. I would appreciate if someone could hint at what is making my loop end early. Thank you!

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

    Nixie watch

    Posted: 25 Feb 2019 01:35 PM PST

    Some days ago i read about this guy who built an entire Nixie watch from zero, thought it was pretty cool but at the moment I didn't understand one thing:

    How did he do it?

    Of course there is practice, determination, time, but I mean, what did he use or what did he study to achieve enough knowledge and skill to build a thing like this one. I studied C++ for 4 years but just in a theorical way so I haven't understood yet what could I really do concretely

    I want to achieve more knowledge to start building things like this one, any suggestion or advice from where to start?

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

    Android Studio progress wasn't saved/gone

    Posted: 25 Feb 2019 07:27 AM PST

    I was taking a break from this project on Android Studio four days ago until now. When I opened it, the project was what it was a month ago and the progress I made was gone! I tried finding it but it was really gone, the folder I was working on was last modified a month ago according to its folder info.

    I made sure four days ago to click save all on Android Studio before closing and it was also a habit before shutting down my Mac. Thank God I recovered it on Github although it wasn't the latest one. Are there any known bugs on Android Studio for Mac? I'm completely baffled.

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

    Writing to excel using xlsxwriter without closing

    Posted: 25 Feb 2019 01:16 PM PST

    Hi there,

    So i have question .I have two function in my code ,one that collects the data ,and one that write the data to excel file

    def collect_data(): #this function is ran multiple times #my code is fetching data from a website ,and saving the data in three variables name,price,discount and iwant to write these variables to a excel file .So i call another function write_to_excel(name,price,discount) write_to_excel(name,price,discount) 

    def write_to_excel(name,price,discount): workbook = xlsxwriter.Workbook('details.xlsx') worksheet = workbook.add_worksheet() bold = workbook.add_format({'bold': True}) worksheet.write('A1', 'Item_name', bold) worksheet.write('B1', 'Carbs', bold) worksheet.write('C1', 'Fats', bold) worksheet.write('D1', 'protein', bold) worksheet.write('A{}'.format(row),name,bold) worksheet.write('B{}'.format(row),carbs,bold) worksheet.write('C{}'.format(row),fats,bold) worksheet.write('D{}'.format(row),protein,bold) row +=1 workbook.close() 

    So my issue is that my every time i call write_to_excel at the end of the function i have to close the workbook,and as a result the workbook is only able to capture the last entry .Is there a way i can keep writing on the excel sheet and once i have written everything i close it in the end .

    I know that i can keep saving my variables in a list and then inside write_to_excel i can create a for loop and write to excel sheet .I have done that already ,but its makes the code very messy

    So is there a way to do this cleanly

    Thanks

    submitted by /u/shujaat-ali
    [link] [comments]

    What is the current state of statically typed web framework?

    Posted: 25 Feb 2019 05:05 AM PST

    Hi,

    I'd like to know if any of you had a good experience with a statically typed web framework.

    I'm currently starting a new project, and I haven't been able to find a statically web framework that match my need.

    I've been using Flask with Python for several years, and dynamic typing shows its limit when your project reaches a significant size, as you basically need a 100% code coverage to avoid any runtime error that could have been detected at compile time in another language.

    I used Yesod (Haskell) and Play (Scala) too. While I enjoy the type safety, I find them quite bloated compared to Flask.

    I saw some new frameworks coming from the Rust and TypeScript community, but I'd like to know any feedback from people that actually used them.

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

    Choosing the right technologies for a web application

    Posted: 25 Feb 2019 12:30 PM PST

    Hey r/AskProgramming, I have been tasked with transporting my small engineering company's design program into the modern age. It is based in Excel and VBA, and uses third-party add-on functions that are available as dynamic-linked libraries. They would like it to be accessible from their server, initially via LAN and eventually through external requests. The core design is a UI that receives several variable inputs, provides them to the server which runs dozens and dozens of calculations (including .dll calls), and returns the outputs to the UI for display. Far down the road, we hope to use basic artificial intelligence algorithms to accelerate the calculations. There are other features, such as output PDF generation and save files for each project. The server will run in a Windows environment. The application will be used as a 'single-page application' with more real-time communication (sockets, for example) and fewer HTTP requests.

    I have a great deal of freedom here, and I am hoping to learn about web programming, artificial intelligence, servers and databases, and exercise my programming skills as I work through this project. It began as a C++ application (because that facilitates .dll loading) but I ran into trouble when I tried finding a C++ web solution. I am aware of Wt, but I would like to stick to traditional web technologies if possible. I've explored ASP.NET Core MVC with signalR, but have found it difficult to work with .dll files in addition to being large, complex, and many-times abstracted. I am content with another language, with another set of technologies...but I am not savvy enough with computer science or web technologies to know what I should be using. Any ideas?

    Many thanks ahead of time. I will provide additional information as needed.

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

    What should i Do to Learn Data Analysis With Python

    Posted: 25 Feb 2019 11:36 AM PST

    (Sorry for my Bad English )
    So i can say i just learned the basics of Python and i want to learn Data Analysis using it and i'm actualy confused i dont know where do i begin ... Do i read a Book ? but wich book is the Best ! Do i watch a video ?

    So Please guys help me with some advice

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

    I'm trying to understand how communication between server/client works using express and react. Looking for some help with a simple demo app I'm building.

    Posted: 25 Feb 2019 07:44 AM PST

    What should I share in a job shadow?

    Posted: 25 Feb 2019 10:19 AM PST

    Hey everyone. I'm a full stack .NET developer. In a couple of days, we're going to have kids (sophomores, I think) from the local high school come shadow us for a few hours. What do you guys think that I should show him about the job?

    I figured I'd try to teach him a bit about the database work (simple queries/sprocs), Git, maybe some simple code, how to push code to the server. Any other ideas? What would you have liked to see/know about programming, before you had any knowledge of it? Does anybody have any very simple code challenges?

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

    No comments:

    Post a Comment