• Breaking News

    Friday, January 4, 2019

    What code do you keep reusing on new projects and what is it for? Ask Programming

    What code do you keep reusing on new projects and what is it for? Ask Programming


    What code do you keep reusing on new projects and what is it for?

    Posted: 04 Jan 2019 11:02 AM PST

    When starting a new project some people always declare a string variable to store the version of that project, what are some other things you keep adding to projects that are not tied to any one type of project?

    EDIT: If open source, provide link if possible :)

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

    Help on creating simple GUI cross-platform program

    Posted: 04 Jan 2019 06:40 PM PST

    So today as a joke I made a simple soundboard program with my friend's voice clips being played via buttons using Windows Forms in Visual Studio and I wanted to share it with a friend. I totally forgot that he was on Mac so he couldn't run them since they were Windows Executables and that got me thinking, how do I write programs for cross-platforms?

    I scoured the internet and came across a lot of guides on how make cross-platform GUI programs but I had no idea how to either use them or install them. I came across Mono and Mono-Develop since I've used Mono-Develop before when Unity used to include it in it's installer but now they use Visual Studio. Now I've become accustomed to using VS for Unity, C++ in school projects, and etc. Plus the guide on how to install Monod-Dvelop for Windows requires that I install a bunch of libraries, packages, and other programs to get it setup and I'd rather just install an all inclusive program if possible rather than dealing with a million programs installed on my computer. I tried using NClass and Glade but didn't know how to program in them and compile applications, so now I'm completely lost.

    What is the best way to write a GUI program in either C++ or C# for Windows, Mac, and Linux? I really like how the editor is for Windows Forms since I'm a big fan of "What you see is what you get" programs in terms of designing UI elements. It helps me determine exactly how the program will look when a user is interacting with it, rather than trying to abstractly write code and do guess/check to see how it looks on run-time.

    I'm open to any solutions though and don't want to be picky. I want to have better programming practices and not get stuck only knowing how to make Windows Form Applications for anything GUI related. I heard of Windows Presentation Foundation (WPF) but that's not included in any of my Visual Studio Projects even after install the required packages in the Visual Studio Installer, and I'm still not even sure if I can compile non-exe files in Visual Studio in Windows.

    As you can probably tell I'm very new to GUI programming since most of coding knowledge is making console applications in C++ in school, a small bit of Python console apps in school, and a couple small games in Unity C# over the past couple of years.

    Simply put I have no idea how to start and all I really want to do is make a simple soundboard program with some buttons that play audio, that my friend on Mac can open up and play (also as practice making cross-platform applications).

    TL;DR: I have no idea how to create a cross-platform GUI program in Windows for Mac and Linux

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

    Is there a good method to convert many files from Shift_JIS to UTF-8?

    Posted: 04 Jan 2019 09:57 PM PST

    Not sure if this is the right place to ask, but if not I will delete my post.

    I am doing a fan translation for a freeware game and I need to read 976 small files of Japanese text. However the files are encoded in Shift_JS so it appears as garbage symbols on my computer.

    I found a site like this to convert single files, but that seems like it would be incredibly tedious for so many files. Is there a better way of doing it, via some text editor or software?

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

    Java 8 Features

    Posted: 04 Jan 2019 08:36 PM PST

    Java 8 changed the Java Programming Style, very interesting

    https://ravivermajavablog.com/java-8-features/

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

    [C++] Trying to put in a destructor causes all hell to break loose

    Posted: 04 Jan 2019 12:59 PM PST

    Ok so I’m making a text based rpg in java and kiddy finished a big update that I want outside feedback on. Where would be a good place to ask?

    Posted: 04 Jan 2019 08:08 PM PST

    Request on clarification on declaring pointers in C

    Posted: 04 Jan 2019 06:49 PM PST

    Hi all, in C I've seen pointers declared as int* x, or int *x. I tested both myself, and in some answers I found online there is not much of a difference. However, if I say int *x = &a, I read it as "assign the value at the address pointed to by x to &a", which is not the case. I always thought that *x would refer to that value at the pointed address though, yet it seems in that line it actually assigns a's mem address to x, even though it is specified as *x (which mentioned above I always thought is the actual value). When I first declare a pointer, does whatever value I initialize it with get treated as a mem address, and is assigned to the pointer (even if the pointer is declared as *x instead of int* x)? Am I reading/interpreting *x wrong in this context? How should I go about thinking about it? Thanks!

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

    Are these Python books worth it ?

    Posted: 04 Jan 2019 08:53 AM PST

    It's all in one bundle and it says that in it are books worth $1,335 and they are on sale for $15. I'm talking about This Bundle and there are 23 books about Python only. Are they worth it ? I know it's not much but I'm beginner and don't want to buy anything that I won't learn from.

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

    Algorithms for Graph Generation

    Posted: 04 Jan 2019 03:43 PM PST

    I am working on a project that involves enumerating all possible directed control flow graphs but am having issues finding literature to help me get started. Does anyone have experience generating sets of graphs and could point me in a proper direction? Thanks!

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

    would like to increase the number of titles showing in pc jukebox

    Posted: 04 Jan 2019 02:25 PM PST

    Hi, new to Reddit with no programming knowledge, hoping this is the right section to post my request.

    I am using a pc jukebox (http://www.arcadejukebox.net/) but would like to display a lot more titles per screen.

    I have tried getting in touch with the owner but he has not replied, possibly because of the age of the site.

    Is there anyone who could help me increase the number of titles displayed in this program as no others seem to layout like this.

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

    Best way to learn Python?

    Posted: 04 Jan 2019 01:31 PM PST

    Does anyone have advice on the most effective way to learn Python or a new program language? I do better with text books than online but just looking for other fellow programmers out there and best advice! Also how long did it take you to be able to successfully implement it?

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

    Is it possible to run a Nintendo switch game on an android?

    Posted: 04 Jan 2019 12:29 PM PST

    I am not much of a tech guy myself. But is it possible to translate the code for super smash bros into one that can be read by an android and then download the game onto my phone to play?

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

    Any good Electron alternatives?

    Posted: 04 Jan 2019 08:37 AM PST

    Hi, I always had an interest on doing some very simple apps for both pc and mobiles. Originally I was going to use IntelXDK but it was discontinued, so I'm going with Jquery Mobile for the very simple stuff i have in mind.

    However I do want to try something more complex in the future, and was thinking of using Electron. I heard today that it is starting to have some RAM problems (despite me never having problem with say, discord). I was wondering if there is any alternatives?

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

    Program that allows you to prevent an application from running on certain days?

    Posted: 04 Jan 2019 12:13 PM PST

    This is sad as an easier solution to my problem would be self control, but never mind that.

    I am looking to see if there is a way to write code that will prevent an application like a game from running until its the weekend? I am very new to programming in C++ so if this is very complicated then can anyone point me to any free software that will do a similar thing? Maybe other solutions the minds of you bright programmers can think of?

    Thanks

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

    Determining big O of recursive fibonacci

    Posted: 04 Jan 2019 11:50 AM PST

    For divide and conquer algorithms, we can use the master method to get the running time.

    Is there some mathematical model for recursive fibonacci (which clearly is not divide and conquer)?

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

    How do you call a recurring event where a team member shares knowledge to other team members?

    Posted: 04 Jan 2019 02:39 AM PST

    Like a presentation or short workshop that is prepared by someone with specific knowledge about a topic.

    I guess that has a name? How would you call that event?

    This event should be every month. And the responsible person is always someone else from the team. The audience is just the team.

    submitted by /u/el-lugy
    [link] [comments]

    What programming language(s) are you most interested in learning in 2019?

    Posted: 04 Jan 2019 12:54 AM PST

    No comments:

    Post a Comment