Total Beginner Question Ask Programming |
- Total Beginner Question
- Should I use C# WPF or some graphics engine for my university end of semester assignment?
- What languages are used for Android and iOS app development?
- What's the "proper" way to avoid duplicating a lot of code for very similar, but performance-critical functions? (C++)
- Stupid Question: How to test features in a Project?
- How to solve this problem with running C code on vscode?
- Text / code generation
- Is software dev getting more abstract and convoluted?
- Can you create a remote Github repo locally?
- Does programming to an interface mean not having any additional methods in a class?
- Need assistance on choosing a language
- [C#] - Help distinguishing file type (JPG)
- Recently joined a small company with a very messy db schema and dev ops foundation - looking for ways I can improve the system
- Unit / Automated Tests as living documentation for Test Cases
- Trying to learn about microservices and would like some advice...
- Where save programms etc?
- What language for repetitive .CSV reformatting?
- Developer support
- Frameworks for scalable REST API
- Changing the value of a HTML-dropdown list using Javascript?
- I need help in coding a problem.
Posted: 12 Feb 2021 02:10 PM PST I'm very new in this topic and have therefore a total beginner question. How hard is it, to develop an application or program that allows an input with a pen? (For example Onenote or Drawboard..) I'd like to have a program that feels smooth to handwrite in but have no idea how complicated this is to code. [link] [comments] |
Should I use C# WPF or some graphics engine for my university end of semester assignment? Posted: 12 Feb 2021 12:39 PM PST I'm taking a C# course this semester and our task it to create a game. Our prof told us that we are not allowed to use game engines but we are allowed to use graphics engines like OpenTK. Which one should I choose? I want to choose some form of a graphics engine as that would be more practical for a game but I'm not sure which one should I choose and whether it will way more difficult than working in WPF. I haven't decided what kind of game I'll be making, I was thinking about a card game so far but I'm not settled on that either. First, I just want to choose the engine (I know, usually it should be the other way around, but I'm not looking for game engines, only graphics engines and their pros and cons compared to WPF). Thank you all in advance. [link] [comments] |
What languages are used for Android and iOS app development? Posted: 12 Feb 2021 03:08 PM PST I have experience with languages related to windows apps and linux but no experience on android and iOS. With what should i start? [link] [comments] |
Posted: 12 Feb 2021 06:50 PM PST I have a program where speed is of the essence. It has a number of different "output" functions, specialised depending on whether certain conditions are met. What I've done at the moment is define some macros to use in the most critical parts: Then I do this:
That last line of code there is where the OM macro is used, in the most critical loop, to perform the various combinations of SSE intrinsics. At the time this seemed like a good idea. It meant I only had to write the code once (there are actually eight different variations, not the three shown here), and it meant the code was fast - faster, if I recall correctly, than having to include a bunch of But I'm less of a fan of macros these days. Is there some new-fangled way of achieving this, maybe using lambdas or function pointers? Or will that also add an overhead, however slight, that will impact performance? [link] [comments] |
Stupid Question: How to test features in a Project? Posted: 12 Feb 2021 05:53 PM PST Hi there, Yeah, my friend and me have our own software (Web and Desktop App) in our company (the software is oriented to the academic information management), every six months we need change the global parameters in the database and after this action we need test so much functionalities, specially on the Web app, for example: One of the most important feature is a report (Rdlc in .Net) that display several information (invoice values, names, discounts, numbers and much numbers, etc.) from the database, in this point I want to test the output dataset or the stored procedure output. Actually, for test we use cases (users accounts) and the process is configure the test environment and login with this cases in the Web app and use the feature for review the data expected. I have listened about the famous Unit Tests (Visual Studio) but... doesn't it break the unit test concept if I test the Entity function mapped (Store procedure in the model)? Is the unit test the test type for to test this scenario or which is the correct focus for test this scenario? How do you test your features on the Web App automatically after finish any change on the code? My goal is improve (reduce time and errors) the task of development and test continuously, if I will change something on the app feature I want run this test (with my scenarios) and don't stay concerned about if the X cases tested X days ago can fail after the change. Sorry, but I am not expert in the Testing World and the English Language :( [link] [comments] |
How to solve this problem with running C code on vscode? Posted: 12 Feb 2021 09:32 AM PST I am really new to using vscode ,it was working just fine until i tried executing this code(it's a problem from hackerrank , it worked for me fine with all tests)
, it worked for me in Code::Blocks fine , but when i moved to vscode problems started , when i try to execute a program i go to the terminal and write gcc file_name.c -o runn and then ./runn but it doesn't work (only with this code other code works perfectly) , error message :
for english it roughly says : cannot execute runn.exe : the process cannot access the file bc the file is used by another process.. even trying code runner i get this error can anyone help me with this. [link] [comments] |
Posted: 12 Feb 2021 09:21 PM PST Hello, Is there a specific language, library, standard or a best practice for writing a code generator? I have a json file that specifies a keyboard layout and an ugly Python script that converts it into C code with the keyboard layout definition for QMK keyboard firmware. The code is a mess and I am struggling to design a good architecture for the short program. It would be nice if there is a tool or a system that would allow to do so elegantly. [link] [comments] |
Is software dev getting more abstract and convoluted? Posted: 12 Feb 2021 02:46 PM PST It's been a while since I've done any web dev. I remember when I could just FTP my files to my web server and call it good. I'm working through a few tutorials to build a modern web app. It lathers on layer after layer of abstraction, and I just can't keep up. The typical workflow looks like this:
Holy goddamn hell. How many layers of abstraction and CLI tools do I need learn before I can host a catalog of cat facts on the internet? Is this the way we do things now? Is modern app dev becoming stupidly convoluted, or am I just an old dog struggling to learn new tricks? [link] [comments] |
Can you create a remote Github repo locally? Posted: 12 Feb 2021 04:03 PM PST Take the example of starting a project locally and all dependencies for it have been installed. The issue though is that you forgot to create a remote repo on Github; followed by cloning it so changes can be tracked and pushed. Is there a way to work through this were I create a local repo and it push it to Github where it acts as a remote repo? Then I can pull and push changes as desired? I'm unsure as to what steps must be taken in terms of the commands needed to pull this off if it's possible. Or is there a tutorial that goes over this? [link] [comments] |
Does programming to an interface mean not having any additional methods in a class? Posted: 12 Feb 2021 10:53 AM PST Let's say I have (1) List myList = new ArrayList<>(); With this approach, I can just swap out ArrayList to whatever other list implementation I need. However, by doing so I can only access the methods that are part of the List class. If I want the object "myList" to have a method not part of the List class ex: myList.SomeMethod() (Assuming someMethod isn't being called as an implementation of a List method) I would need to do (2) ArrayList myList = new ArrayList<>(); So does programming to an interface mean to always try to go for the first (1) approach and not include additional methods? [link] [comments] |
Need assistance on choosing a language Posted: 12 Feb 2021 03:36 PM PST So, I have a project that I want to tackle, but need to decide what language to start my adventure in... I have been waffling back and forth between c# and c++, but figure there may be other options that are better. About me, I am very knowledgeable about data, mainly SQL at this point in my career, but grew up using Excel formulas and VBA. Logic should be the easy part if this project. About the project, my project will have to do extensive and automated regression analysis many, many times. The ability to perform this quickly is really the main factor. Eventually, I will need to put a front end on my project, but that is a tomorrow problem and should factor in much less than analysis performance. What direction should I take? [link] [comments] |
[C#] - Help distinguishing file type (JPG) Posted: 12 Feb 2021 06:37 PM PST Any idea why some of my files that appear to have a .jpg extension in windows properties show up as "Other file" and some show up as "This is a JPG file"? Could this be due to the filetype not originally being a JPG then changed later? I'm just confused as to why some appear to be recognized and others don't. Processing: Checking signature: Checking file type: [link] [comments] |
Posted: 12 Feb 2021 02:28 PM PST The company's been around 35 years. Over the course of that period they have developed a suite of saas apps that one can add to a regular site via a login portal and it would 'empower' that site with some project management capability. We have clients that we've designed the front end website for and then we've added our login button to get into the suite of apps. There are two machines both running IIS and SQL servers. They each have a giant code repository locally that tracks a remote repo via azure dev ops. One of them is the dev environment, the other the live. This code repository contains all of the saas apps code, along with the clients front end website code as well. The clients are submodules in the larger repo. Depending on if we're working on the larger saas app code or not, our dev ops cycle looks something like branch off dev branch to work on some feature, if it looks good merge back to development, push to remote, pull on dev environment which tracks the dev branch, do more testing, then if everything is okay, merge dev branch into prod branch and then pull on the prod environment. So my first question is this methodology correct when it comes to programming? This is my first job and I can't really tell. Now as for the second part is the database question. The db schema tracks all of the saas info. Now given the OG author is long gone, the more recent devs have been updating the saas apps to only use a small subset of the larger db schema, and the small subset that the new saas apps look at are mostly written by the new devs. The OG schema is wack, with html code inside of the db. However we still need the bloated db schema to init a completely new client, and the way we currently do it is extremely bad practice where we duplicate a live client's db and then hook up the new client's site to it. There really is no good way to create a zeroed out db template schema since we have no idea what to get rid off. And while the new client may not able to access the old client's data since the newer saas apps look at a portion of the db that we do zero out since we know that new portion of the db properly, ultimately the underlying data is still there. Obviously this doesn't scale. My immediate thought as a new dev is 'let's just get of the old db, recreate the usable subset in the old db the new apps interact with as a new db and go from there.' But one of my seniors is persisting that doing it this way is fine, we just gotta clean up the db at some point and create a template, which again like mentioned is hard to do. Plus creating a whole db schema from scratch is no easy task either and you really need a full time specialist for that, unless it's gotten easier with amazon's prebuilt dbs. But ya anyway, I'm not entirely sure what I'm even looking for. maybe some thoughts, idk [link] [comments] |
Unit / Automated Tests as living documentation for Test Cases Posted: 12 Feb 2021 07:44 AM PST My company recently transitioned to the SDET model. At first, the developers were asked that in addition to putting a bigger emphasis on unit and automated tests, that we should start writing test cases with step by step instructions for testing a ticket. Fast forward a few months, and now we're being told that writing the step by step instructions and keeping a formal "test suite" isn't necessary. Instead, we can write a high level test document for each ticket. This document will be peer reviewed and once "certified" a developer will then write unit / automated tests. From there, the document is thrown away and our test code should serve as the the "living documentation" for requirements/acceptance criteria. I use the term "living documentation" loosely as the aim isn't really to have massive amounts of documentation in the source code, but instead, you can infer a feature's requirements/happy paths/negative paths/etc from the testing code itself.
I was curious if anyone else has experience in doing this and how it has worked out? My gut reaction to this idea is it is a bad idea. I worry it will be really hard to infer acceptance criteria from testing code itself. Also, I fear it will be difficult to put all the pieces together when having to look across both unit and ui automation tests. [link] [comments] |
Trying to learn about microservices and would like some advice... Posted: 12 Feb 2021 06:46 AM PST Hi all, Would the following software layout be considered as having a microservice based architecture? I have taken an interest in various software architectures and decided to write a small search engine in python. The idea is that each service is decoupled as they only communicate via Redis Streams or Set/Get. If you have any resources/advice on microservice architecture then feel free to share! TIA! [link] [comments] |
Posted: 12 Feb 2021 08:22 AM PST I have never quite understood where I should download programms, to root,c, create new folders to keep all organized. Does it matter what I'm downloading, for example python vs pycharm vs steam games? I'd like some well organized folders for everything. [link] [comments] |
What language for repetitive .CSV reformatting? Posted: 12 Feb 2021 07:01 AM PST Hello. I need to make a small app to reformat a large (~8 million records) CSV by dropping certain columns, rearranging and renaming others. It's too take the output of one piece of software (a database snapshot) and convert for input into another. I do not have an option to amend either piece of software hence I need a little bridge. Once set up this will be done on a permanently air gapped Windows PC at a remote site. This is too many records for Excel so I can't just use a macro. I can do this easily using R and the tidyverse, but not everyone who uses this app will be particularly technical, so the text interface for R is not great, plus the windows R runtime environment is just one extra thing to go wrong. Python seems like it would do the job but I don't know how to add a user interface, having never used it for anything I'd need to distribute before. What would your recommendation be for the language/package to use to do this seemingly simple task with a friendly GUI? [link] [comments] |
Posted: 12 Feb 2021 07:01 AM PST If anyone has ever looked to get help or support from a product when it comes to building an integration or fixing a bug, what do you look for? Has anyone ever had any really good experiences? [link] [comments] |
Frameworks for scalable REST API Posted: 12 Feb 2021 06:54 AM PST I'm just looking for some suggestions for a fast and scalable REST API framework. I know Spring Boot is probably the most popular production ready framework however I'm looking to explore new options, any suggestions? All languages are welcome. [link] [comments] |
Changing the value of a HTML-dropdown list using Javascript? Posted: 12 Feb 2021 06:42 AM PST Hello people, How do I synchronize the current chosen value of a html dropdown list to be changed when clicking on another button/element (using Javascript)? For example, when I click on the value "USA" (which is on another list) I want the chosen value of the dropdown to be synchronized - and also change to "USA" automatically. So in other words, the value of the drop down should be linked with the other list so both lists always shows the same value. I have so far tried to play around and use this eventlistener : document.getElementById("anotherList").addEventListener("click", function(e){document.getElementById("myDropdownlist").innerHTML = e.target.innerhtml;}); e is the element that I click on (on the other list) and " .target.innerhtml " is the pathway to the value USA on that other element, it's also worth mentioning that "USA" is already one of the options in the dropdown list - but the value of the dropdown doesn't seem change to USA when doing this way, so what can I do to make this work? All tips are appreciated. Thanks in advance [link] [comments] |
I need help in coding a problem. Posted: 12 Feb 2021 09:58 AM PST The problem is convert from one unit in speed to 5 other units. In visual basic language. [link] [comments] |
You are subscribed to email updates from AskProgramming. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment