• Breaking News

    Sunday, April 1, 2018

    Do you guys ever find yourself wasting too much time on minor details? Ask Programming

    Do you guys ever find yourself wasting too much time on minor details? Ask Programming


    Do you guys ever find yourself wasting too much time on minor details?

    Posted: 01 Apr 2018 06:11 PM PDT

    I'm a CS student in community college (almost done with my associates) and I try to do what I can to supplement my learning online, but I constantly find myself running into issues with time management. One problem I have is wasting too much time trying to do things beyond my level of understanding. I also feel like I'm too picky with my programs. If my programs don't do things exactly the way I envisioned them, I spend hours trying to get them to work exactly as I see it in my mind, but often I just can't get it right and I have trouble letting it go. Sometimes it really makes me angry at myself and how difficult something that seems like it should be simple turns out to be.

     

    I'll give you a recent example. This semester I'm taking a course in C# and for my final project I wanted to make a really nice GUI. I like the modern borderless GUI look of programs like Visual Studio and Photoshop. In order to make a program like that you need to customize the titlebar which apparently requires you to have knowledge of the Windows API because it is part of the non client area. I spent way too much time trying to get that to work, Googling to try to find out potential solutions, etc. In the end I still didn't get it to work. It's not just this though, I find myself getting caught up on little details like this all the time when I feel like I should be spending the time studying things like Algorithms and focusing on the bigger picture with the programs I create.

     

    Did/does anyone else struggle with this? If so, how did you overcome this? How do you just learn to let it go?

     

    P.S: Sorry if this isn't the right sub for this sort of question, but it seemed relevant.

    submitted by /u/-CJF-
    [link] [comments]

    Functional design resources

    Posted: 01 Apr 2018 06:41 PM PDT

    Hi there

    Functional design is the name for the English Wikipedia version (in French it's "Analyse Fonctionnelle") so I hope it's the correct translation.

    I would like to know if you have resources about the matter. I will start an internship soon in which I will have to work on the Conception of a software of Functional design (for conveyor systems installation in bottling industry).

    I was told that it is unlikely that I'll start the programming part and that I'd work mostly on the conception/modelisation phase of the app.

    So I would like to get familiar with Function design and software conception/modelisation.

    Thx for your help,

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

    Probably a very frequently asked question.

    Posted: 01 Apr 2018 03:06 PM PDT

    I am 16 and looking to start programming. assuming I know absolutely nothing about it, how and where should I start?

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

    How does ClipGrab work?

    Posted: 01 Apr 2018 09:27 PM PDT

    How does the code itself function?

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

    (Java) What’s the best way to store the English dictionary (just words) in Java?

    Posted: 01 Apr 2018 12:15 PM PDT

    Which data structure? Operations being performed: searching for specific words

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

    what language / program should i use to make a simple program focused around an UI and where to start?

    Posted: 01 Apr 2018 02:20 PM PDT

    I'm a pretty redundant person so you may want to check out the TL;DR first :/ Also sorry if this is not the best place to post this

    Sorry if it's a very general question, i have experience in c# on unity but never did anything non-game related. I want to make a simple program that pretty much just sorts out some items using math, and the only pseudo-complex thing that i want to do with it is retrieving information from internet to get simple binary variables.
    My question is if i should use c# (And visual studio) to make something like this or if is there a simpler or better language to do something that is pretty much just an UI and basic math.

    Also and TL;DR,
    If anyone has a concrete place to get started with UI stuff or retrieving values from a website that would be great.

    submitted by /u/1HPChronobreak
    [link] [comments]

    Mapping (keyboard) input to actions.

    Posted: 01 Apr 2018 02:09 PM PDT

    I'm working an a game engine using GLFW and of course I need to be able to interpret user input but associating user input to the actions that should be taken isn't something that I see being discussed at all and Google has not been useful to me. I'm mainly taking about keyboard input but GLFW provides you with access other forms of user input in much the same way so I feel that any solution to one could easily be expanded to the others.

    Many examples of this, regardless of the purpose or project, simply consist of a switch statement or a long chain of if statements that call a function which seems highly inelegant. My intuition says that using a map to associate input to a response would be much cleaner (and allow me to let the user remap keys easily) but it also tells me that it would result in higher overhead for each action and therefor slow response time. On the other hand, I also feel as though the overhead, although higher, would also not be significant from the perspective of the user. I also suppose that given a long enough switch statement the map approach might actually be faster on average but I don't see that as being realistic. I also assume that there's a good reason for the use of if statements, but that reason may very well be for the sake of simplicity.

    In short, what would be the preferable way to associate user keyboard input to in-engine actions? Is one method generally preferable? If there are multiple viable ways, what the pros and cons of each?

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

    What should I study for a System Architect job?

    Posted: 01 Apr 2018 07:50 AM PDT

    Hi all, I know not strictly programming but there may be a job coming up as a system architect that I'd love to apply for. Some background on me is I'm an electrical engineer but working in an IT graduate role for close to 15 months mostly as a business analyst/project manager role.

    I do development in my own time though mostly in java/Android and electron (nodejs) and pretty much anything I think is fun.

    The role is definitely a beginner role and I'm going to be straight forward and honest in my skills (they know my background as its the same company but different location sort of thing and its more like a friend of a friend of the company has told me to go for it).

    It sounds interesting though but I'm not too sure what its about or what to study or anything? My friend isn't too sure either they're just super supportive and always trying to help me lol.

    From my understanding you have software architectures which look into specific software, how things run throughout, probably UML design, understanding of different languages, etc?

    Then there is hardware architecture which would be hardware view of things, servers, wireless/wired connections, harddrives, CPU, GPU lag? maybe star networks, tree networks etc?

    So I'm guessing a system architecture does a whole system view, how one program connects to another? How a project may utilise varying APIs and software and hardware to connect one from another, or similar? Pretty much choosing the correct software and system overall to use (like say a proper CMS and view like DOMO or PowerBI etc?).

    Is this right? Is there anything online that can teach me more? I found an online course for software architecture, would that help? I know its an entry level job, but I'd like to go in there with some knowledge if I can. Thanks everyone!!

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

    Run Python Script from JavaScript

    Posted: 01 Apr 2018 04:11 PM PDT

    I have a JavaScript script from which I have to call a specific function in an external python script. How can I go about doing this?

    I was reading answers on stackoverflow, but they all required some sort of server setup, but I am trying to ignore that. Since, my application is just going to be running locally. Are there any options to do this?

    If the only option to do that is via using a server, how does server-side scripting work?

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

    Java object oriented programming HW help

    Posted: 01 Apr 2018 03:59 PM PDT

    I'm not sure if this is the right place to post this, the assignment statement is kinda long it involves creating a rational number class that does different things when executed such as adding subtracting and dividing rational numbers. My main problem is that when I run the rational test class (this was given to us) it fails many of the tests. I am really not sure what I am doing wrong here.

    Here is all my code I have so far it three classes a rational class a class for zero denominators and a class to test the rational class Any help would be appreciated thanks

    https://pastebin.com/4mhb7hJh

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

    gcc -O optimisation.

    Posted: 01 Apr 2018 10:09 AM PDT

    I have a task to make a simple C program and then perform 3 optimisations

    gcc -S -O1 -o main1.s main.c

    gcc -S -O2 -o main2.s main.c

    gcc -S -O3 -o main3.s main.c

    All files now have 100 lines of assembler code. How to explain what kind of optimisations was made? I cant understand any line here.

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

    Why use underscore naming convention for private members in languages like C++?

    Posted: 01 Apr 2018 08:16 AM PDT

    As far I know, naming members with a preppended underscore (_variable) is a good idea for most languages. I was recommended this when learning C++ as well.

    I can understand its purpose for languages without visibility, like Python, but why would we use it in Java or C++? You already have explicit visibility, why be redudant with the naming as well?

    I remember students asking professors this question and they would just say it's to make it even more clear that the variable is private. But honestly, if the compiler is already going to do that for you, why bother? It's like with the pascal naming convention. The language is already typed, why would you want to include the type in the variable's name? The language already gives you tools to define the visibility of the variable, the type of the variable. Why do you need to repeat yourself?

    Anyway, I hope some of you can clarify the reasoing behind all this. I'm not trying to say it's categorically bad, I am just trying to understand why it would be a good practice.

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

    Is C# both an imperative & declarative language?

    Posted: 01 Apr 2018 11:31 AM PDT

    Hello everyone. I am considering learning the the C# programming language and just had a question regarding something I stumbled across on Wikipedia, which was that it is a "strong typing, imperative, declarative, functional, etc. language." What exactly is meant by this?

    Is this basically stating that code in C# could be written in both imperative (descriptive for-loops and other 'how do we get the answer' formats) and declarative (.map/.reduce/.filter & other shortcut 'what answer do we want') formats? I was under the impression that it was one of the other. Also, what is meant by the functional paradigm description? I was under the impression that C# does utilize variables and performs the 'side-effect' that would deem it a non-functional language per the paradigm?

    Any clarifications would be greatly appreciated!!

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

    Is there a way to make reddit propose to discover subreddits that it thinks would NOT interest me?

    Posted: 01 Apr 2018 01:45 AM PDT

    Hello, sorry if it's not the place, but askreddit's rules of submissions seems to expel it.

    There is a program proposing subreddits that may interest someone, I would like to know if it's possible to make it propose subreddits least likely to interest me?

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

    Given a 2D array, find path that allows you to travel through every block/node except for special blocks/nodes

    Posted: 01 Apr 2018 12:39 AM PDT

    I am doing an assignment where we must solve this game (https://www.cut-the-knot.org/Games/MirrorMaze/MirrorMaze.shtml) through recursion. This is a high school assignment, not a university project. We weren't taught graphs, but I've done my research on it and I would like to implement my solution through it. The basic premise is this:

    10 x 10 grid where you must find a path that visit each possible block only once when given a starting point and ends at the starting point.

    There is only one possible solution (one path).

    Certain blocks affects travel: solid blocks prevent travel and must turn left and right triangular blocks force you to turn 90 degrees (4 types) linear block force you to travel 90 degrees from both directions No diagonal travel, only up/down/east/west.

    see the link for more details about the maze

    How might I go ahead and implement this? This seems different than a lot of the problems out there. If I construct a graph, it would be an undirected, unweighted graph with edges connecting each possible node, but I'm not sure how to connect certain nodes or search for the path or even create it in the first place. Thanks for your help!

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

    Helping with cancer research with programming?

    Posted: 01 Apr 2018 04:07 AM PDT

    Hi, I am a programmer who spends most of his time programming and learning new stuff. If i wanted to contribute to cancer research(or any other disease) with my programming skills where do I turn to for helping people out, is there a forum or website where people help out researchers ? I don't want to do this for money, so any idea is welcome. Thanks in advance

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

    My PC get frozen in charging windows 10?

    Posted: 01 Apr 2018 09:34 AM PDT

    I had not turn on my pc for a while, in this days I did not have Internet in my home, well in the monday the Internet come for a while and turned on my PC, works perfectly I remember that the only things that I did was try to download Net-beans but in the end, the download fell off because the internet has gone. Well yesterday, the Internet fully comeback to my home and turn on my PC, the PC first got frozen in the choose user page, and after started to get frozen in the beginning windows page, I already cleaned the processor, and today I was able to began in Secure Mode and start a recovery from a previous date before the pc gone screw, I am seriously thinking about formatting the pc and reinstalling windows 8 (I was with the 10), do you have another suggestion?

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

    No comments:

    Post a Comment