• Breaking News

    Wednesday, September 2, 2020

    i'm a very novice programmer, but i developed a windows forms application in C# on my own time. Now the company i work for seems to be interested in it Ask Programming

    i'm a very novice programmer, but i developed a windows forms application in C# on my own time. Now the company i work for seems to be interested in it Ask Programming


    i'm a very novice programmer, but i developed a windows forms application in C# on my own time. Now the company i work for seems to be interested in it

    Posted: 02 Sep 2020 03:28 PM PDT

    Tomorrow morning the company that i work for has asked me to demonstrate an application that ive made that can simplify a lot of repetitive tasks.

    i'm worried that they will really like the application and try to move straight into developing it further and implementing it, but leaving me in the dust.. i'm nowhere close to a professional programmer, but i want to make sure i maintain some kind of ownership or get some kind of compensation in one form or another...

    what should i do to make sure i dont get screwed over?

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

    How "micro" to make microservices?

    Posted: 02 Sep 2020 08:40 AM PDT

    Or in general, can anyone point me to a book/article/whatever that you think did a good job explaining how to segregate their monolithic apps into microservices? I've googled around and I'm getting a lot of conflicting information.

    Yeah, yeah, "it depends". But what are the factors used when making the decision?

    My team is planning out a rebuild of our main application to be K8S native and we'd like to adopt a micro-service architecture. What I'm not sure about, is how small to make them?

    Here's a specific example: we have a part of our API that calculates usage, and another that calculates pricing by combining usage data with prices stored in a database. A third API returns invoices as JSON (for the client to use) or PDF formats, and it has some concept of tenancy and who should see what information. Should that be one "usage and billing" microservice? Should it be 3+? Should it even be separate from the other APIs we have? Currently everything is just a giant flask monolith running in Docker with over a hundred API endpoints.

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

    Examples of communication that do NOT fit the Client - Server Model

    Posted: 02 Sep 2020 06:19 PM PDT

    So the question for my Web Systems Architecture class is to name an example of communication that does not fit the client-server model. In my mind I am thinking phone calls don't follow it right? If I understand correctly they follow Peer-to-Peer right?

    If I am not right please help me out because I really don't know.

    Thanks in advance.

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

    How to Count Lines in Multiple Specific File using Python?

    Posted: 02 Sep 2020 09:12 PM PDT

    Guys! I want my python script to count the numer of lines in multiple files (eg., only files that ends with .txt) then divide it by 4 and outpur it into the terminal?

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

    Improve my pseudocode? Creating a tool for game modding

    Posted: 02 Sep 2020 04:29 PM PDT

    I'm about to embark on a programming project for the first time in many years. I have been video game modding using config files but this one requires an actual script. Can you guys give me C&C on my idea?

    Here is the scenario: the game is an RTS called Star Trek Armada 2 and I need to generate a series of weapon definition files. The game does not support modifying weapons damage dynamically, however it does allow weapons to have individual damage values for each target. So in effect, I need to calculate the modifiers beforehand and slap them in a large number (roughly 9000) of text files. The parameters are as follows:

    -A ship can be Small, Medium, or Large
    -A ship can be Short, Medium, or Long ranged
    -A ship can be a Destroyer, Cruiser, Support, Battleship, Station, or none
    -A ship can then have passive modifiers, such as "receives half damage from Long range enemies"

    The game features several weapon types. Pulse weapons deal increased damage to Small targets and reduced damage to Large targets, while Projectile weapons deal increased damage to targets with low hitpoints. Ships may also have passives that cause them to deal more or less damage based on the target's Class (usually bonus damage to stations).

    Each combat unit in the game has one or more weapon files, and each weapon file has individual line entries for each possible target. If a ship deals +50% damage to Long range targets, its weapon files will have line entries for every Long range target with a damage number that is 50% higher than its base damage. A previous modding team had created a script to generate these files, but it has been lost to time and I am attempting to rebuild it.

    Right now, my Pseudocode prototype has two data structures, both 2D arrays. One is the Target array where each row is a target and each column is a modifier: for example a "Small Short-Range Destroyer" row has a 1 in the Beam column, a 1.25 in the Pulse column since Pulses deal 25% extra damage to Small targets, and so on.

    The second array is the Weapon array. Each row is a weapon and each column is a modifier, with the cell containing True if that modifier applies and False if it doesn't. In addition, some information about the weapon's base damage will be included. When the script runs, it will create a new text file for every weapon, and in that file it will create a line entry for every target by checking the Weapon array for Trues and, when it finds one, multiplying the damage by the corresponding value in the Target array. If the script determines that the damage has not changed from the weapon's base damage, it can skip printing the line.

    Obviously this is a very simple, brute-force method and I think there must be ways to make it run faster and more effectively. In the mod, ships have the ability to rank up and each rank gets its own file and weapons, so the script needs to spit out roughly 9000 weapon files each considering over 4000 targets. Are there other data structures or methods that would allow it to crunch through this better? And what language would perform best, that I can easily obtain an environment for at home?

    For reference, right now I am building the database in Excel (where I can sort and manage it easily) and was planning to export to CSV before having the script read it in.

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

    GO or Typescript

    Posted: 02 Sep 2020 01:40 PM PDT

    Hi everyone,

    It's been about 6 straight months of learning the MERN stack and I'd say I'm sort of comfortable with working with the stack, NodeJs in particular.

    Despite the progress I've made so far, I've realized while job hunting that MERN stack opportunities are sort of tailored to senior Devs with more years of experience, hence landing a Junior/Mid role has been laborious.

    This experience thus far, has sparked a desire to pick up a second backend language that can complement my existing and growing Javascript skills, with the aim of making me a competitive candidate to prospective employers.

    My mind has been somewhat fixed on a choice between GO & Typescript, but unsure of what the best choice is, hence my post. From your experience, what language will you recommend is best to learn?

    Clime: Africa.

    Work Target: Remote US/EU.

    PS: I don't have a CS background.

    Many thanks in anticipation of your kind responses.

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

    Is Python worth mastering?

    Posted: 02 Sep 2020 07:40 AM PDT

    Hi guys,

    I am very inexperienced developer who worked in industry shortly and now I am looking to master something and I am a bit afraid I will choose something that is not for me.

    I started to listen some udemy courses like "Complete web developer" and "React master course" but I am having hard time to find right and proper way to code my projects, I am struggling with what is best way to do something and constant thinking am I doing it right and finding some job where I will get mentor and start as practitioner is very hard in my country.

    I was thinking maybe front-end is not for me and I got "Python ML" course, I worked briefly with BrainJS (for react, which is ML but for JS) and had fun time doing it. Now I was thinking to start Python ML course and see maybe that is my language I wanna master, but I have few concerns:

    1. If I realize that ML is not for me, can I use Python as a backend language? I heard about django but I also heard that it is pretty much dead?
    2. In my country I didnt see much job offerings for ML developers so I am afraid that if I invest time into that I wont be able to find job
    submitted by /u/matejx123
    [link] [comments]

    I am literally looking for a web developer/ teacher

    Posted: 02 Sep 2020 07:20 PM PDT

    Good morning Everybody,

    I currently have a non-profit project, I am literally looking for a web developer/ teacher. Please if anyone feels interested in and has some free time, please leave me a message.

    My sincere appreciation.
    Please take care & have a nice day ahead.

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

    Is the World Wide Web the biggest database in the world or not?

    Posted: 02 Sep 2020 07:15 PM PDT

    How To Get Login Credentials To Auto Login Into Websites

    Posted: 02 Sep 2020 02:52 PM PDT

    Am trying to create a subscription based web application and the website needs login authorization from different website.

    The users on our platform doesn't need to login into other websites. Our credetials will be used.

    we're trying to automate login into other websites without having to manually login there.

    It's a web application that needs authorized access to websites before it can perform it's task.

    How can i get to login on other website by parsing the header and cookie into my application

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

    OT. Considering that most of us worked from home this year, it would be nice if we have a discussion about best way to claim part of the house as home office, for the taxes

    Posted: 02 Sep 2020 06:12 PM PDT

    I'm sure many of your already claimed home office in the tax forms. Teach us how to do it too.

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

    Launchctl help

    Posted: 02 Sep 2020 01:57 PM PDT

    Hi everybody, just wondering if anyone has experience with launchctl on Mac and would like to help. Here's a link to the question: https://stackoverflow.com/questions/63710314/launchctl-plist-help-to-kill-a-process-every-hour

    Thanks!

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

    How to Make Google Form Autofill answer?

    Posted: 02 Sep 2020 05:36 PM PDT

    Not sure if this is the right place or not, but I've been working with Google Forms and am trying to figure out if there is a way to edit a script that will have the form collect a name based on the email address of the person filling out the form.

    To get a better understanding, I work at a school and staff is now required to log each room they enter. I've created a Form and set up a QR code for each room in the school. When a person scans the code and signs in with their school email it will autofill the Location Name and Room Number and take you directly to the submit page. My hope is to add a question for name and have the form auto fill that based on the name associated with the email address (the form is set to be limited to people on our domain).

    Any help would be appreciated. And if there is anyways to get that form to actually submit with out the user having to hit any buttons that would be awesome.

    Thanks so much

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

    React proper way to start

    Posted: 02 Sep 2020 07:47 AM PDT

    Hi guys,

    I am very inexperienced developer who worked in industry shortly and now I am looking to master something and I am a bit afraid I will choose something that is not for me.

    I started to listen some udemy courses like "Complete web developer" and "React master course" but I am having hard time to find right and proper way to code my projects, I am struggling with what is best way to do something and constant thinking am I doing it right and finding some job where I will get mentor and start as practitioner is very hard in my country.

    My struggles began with all these courses being outdated, first they teach you Class based programming and I am spending so much energy on learning that and then realize that it is not proper way to do it anymore, now you got functional components, there is multiple way to do routing, to use Redux or to replace it with Hooks, there is something called Next.js that show you something else and etc.

    My question is what is the best way to learn React and best practices to learn and to land a job, how to know what is good practice and what is bad? Is there any course that is true and will show you only good practices so I can go ahead and practice projects on that, not showing me 5 ways to do routing and then leaving me lost on what to choose out of that and other similar confusing stuff. I am currently very confused and not sure how to continue and what is industry looking for.

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

    Where do I go to learn how to edit this program? I believe it's in C.

    Posted: 02 Sep 2020 07:41 AM PDT

    I have an extremely lucrative idea, but I need someone that knows how to code AI to help me out.

    Posted: 02 Sep 2020 07:03 PM PDT

    Just as the title says. I have a great idea that can make a lot of money, but I lack the knowledge of how to program the AI to accomplish the task. I'm willing to pay if the program works.

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

    [Moq] Unsure how to mock object from SDK that doesn't have an interface

    Posted: 02 Sep 2020 02:48 PM PDT

    Edit: Sorry, forgot to mention this is in C#

    I'm having a bit of trouble writing a unit test for something and was wondering if anyone had any suggestions.

    I'm working with an SDK which includes API calls. The API has a method that returns an object, let's call them apiRequest() and apiResponse, respectively.

    apiResponse has a status property. I want to mock the value of that status property. However, status only has a get and isn't virtual, and apiResponse does not have an interface.

    Is there any way I can mock apiRequest() to return apiResponse with my desired value in status?

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

    What is the best way (languages) to learn web developing on Windows for a person who is perfect in .NET Windows applications and only knows C#?

    Posted: 02 Sep 2020 02:38 PM PDT

    Would you please recommend a paid/free video course online possibly with a link to it?

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

    "Cracking the Coding Interview" Practice Questions Difficulty

    Posted: 02 Sep 2020 02:30 PM PDT

    I have been working through a few chapters in this book and I am wondering if the last questions in each chapter are supposed to be MUCH harder than the first ones. I have found myself getting through the first few questions in Arrays & Strings, for example, quite easily but questions 8 and 9 took me FOREVER and took a lot of hair-pulling.

    Thanks in advance.

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

    Should you trust users to upload tasteful content?

    Posted: 02 Sep 2020 01:17 PM PDT

    Hey

    I'm creating an app where users will be able to upload pictures, and type in ingredients for recipes. The app will check the DB if the ingredient exists, if it doesn't it will insert a new row into the ingredients table. I'm concerned about the potential of users uploading inappropriate photos/ ingredients.

    Does anyone have experience with this? How do you try to ensure appropriate content without limiting available options to users?

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

    Attempting to pass an array pointer, cannot extract values in another function

    Posted: 02 Sep 2020 12:00 PM PDT

    Hey everyone! I had a quick question about my code. I decided to do some coding to refresh myself as I just started college again and I'm stuck on a problem. I am trying to find the numbers under 1000 that have multiples of 3 and 5. I have the math down, just stuck on some syntax issues.

    My issue is that I'd like to pass an array pointer to a function, then de-reference that array pointer and then put those values in another array. I know the solution is probably super easy, just can't see it for some reason. Any help is appreciated!

    The code is below:

    #include <iostream> using namespace std; const int numberCount = 1000; int* getNumbers(); int getSum(int*); int main() { //Define variables int* arrayPointer = NULL; int sum = 0; //Set pointer to returned array address arrayPointer = getNumbers(); //Send array to getSum and get the sum sum = getSum(arrayPointer); //Display the sum cout << "The sum of numbers in range 0 < x < 1000 with multiples of 3 and 5 is: " << sum; } int* getNumbers() { int thousand[numberCount]; //Fill array for (int i = 0; i < numberCount; i++) { thousand[i] = i + 1; } return thousand; } int getSum(int* arrayPointer) { int multiples[1000]; int counter = 0; int sum = 0; //Discover multiples for (int i = 0; i < numberCount; i++) { if (*(arrayPointer + i) % 3 == 0 || *(arrayPointer + i) % 5 == 0) { multiples[counter] = *(arrayPointer + i); counter++; } } //Add multiples for (int i = 0; i < counter; i++) { sum += multiples[i]; } return sum; } 
    submitted by /u/SaludMyDude
    [link] [comments]

    In what ways is the programming corporate and comunity non-inclusive?

    Posted: 02 Sep 2020 05:48 AM PDT

    There are few businesses that talk so much about inclusion. I have never seen anyone define what is non inclusive in the current state of companies and communities. Please help me give examples of how it is non-inclusive.

    Edit: I would like to add to the question: Do you believe programming industry is more non-inclusive than other fields and then why?

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

    Python question - number of rectangles from Cartesian coordinates

    Posted: 02 Sep 2020 10:23 AM PDT

    Given a set of Cartesian coordinates, find the number of rectangles possible ( sides are parallel to axes ).

    Sample input : [ [0,1], [1,1], [2,1] ,[0,0], [1,0], [2,0] ] Sample output : 3

    Can anyone help me figure out the solution for this problem in python? Thanks!

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

    What would be the best programming language to write my logic puzzle solver and editor in?

    Posted: 02 Sep 2020 10:17 AM PDT

    Hello! I've been working on a program which allows you to create a logic puzzle (like Sudoku, Slitherlink, Fillomino, etc.), save it to your computer, and load other logic puzzles and then solve them. It's all grid based (right now just squares), and different puzzles use different objects - Slitherlink has numbers in the cells and dots on the intersections, and the user can place lines connecting them, but another puzzle might have white and black circles placed in cells and the user has to draw a path connecting all the cells in one big loop.

    I have tried to use Python alongside Pygame for graphics and Tkinter for GUI/windows, but it struggles to even load a 20x30 grid, and it feels like I'm using a tool that's not right for the job. I've looked into C++ or Unity, but C++ looks very intimidating and Unity looks more geared towards traditional games rather than an editor thing. Would a web-based approach work?

    If I wanted to remake this, what would be the best programming language/environment to use? I'm quite new to making big projects like this and don't have much intuition as to how to structure things. Thank you!

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

    No comments:

    Post a Comment