• Breaking News

    Thursday, April 4, 2019

    What skills and tools do you use in your software engineering job? Ask Programming

    What skills and tools do you use in your software engineering job? Ask Programming


    What skills and tools do you use in your software engineering job?

    Posted: 04 Apr 2019 10:03 AM PDT

    Hi everyone,

    I am taking a course on Software Engineering for which lectures have ended already this semester. It felt like most of the material discussed was theoretical in nature and not practical to Software Engineering work. I have assembled three lists consisting of topics that I thought were useful, topics that didn't seem useful, and topics that I would have liked to learn about.

    Topics that I thought were useful:

    • Scrum
    • Version Control
    • Git
    • Delta Debugging

    Topics that did not seem useful:

    • Hoare Triples
    • Uniform Modeling Language
    • Symbolic Execution
    • Concolic Execution
    • Korat
    • Fuzzing / American Fuzzy Lop

    Topics I would have liked to learn about:

    • Documentation
    • Collaboration
    • Docker
    • Frameworks
    • Build Systems
    • Code Review
    • Paired Programming
    • Continuous Integration
    • Metrics
    • Application / Technology Stack

    I would like to learn more about what skills and tools are practical in Software Engineering. Are some of the topics I didn't find useful more useful than I thought? Perhaps we simply weren't taught how to apply some of the topics I didn't find useful. Are there other tools we should learn about?

    Please share your experiences and any skills / tools you think are useful / not useful.

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

    From beginner to expert in a programming language

    Posted: 04 Apr 2019 09:51 AM PDT

    I found this very interesting answer (most voted) on stackoverflow with a comprehensive guide to go from beginner to expert in Haskell and I was wondering if anyone had seen or has a answer like this regarding other programming languages.

    https://stackoverflow.com/questions/1012573/getting-started-with-haskell

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

    Good resources to learn Javascript/Node.js, React, and MongoDB?

    Posted: 04 Apr 2019 08:32 PM PDT

    What online coding sites do companies hire internationally from?

    Posted: 04 Apr 2019 07:23 PM PDT

    Book suggestions on code architecture

    Posted: 04 Apr 2019 03:37 PM PDT

    I'm a programmer for 4 years now and I've been working on quite a few mobile game projects. I know object oriented programming and design patterns.

    However I feel like I'm not quite good in code architecture. I'd like to read some books on this topic to hopefully fill some gaps in my knowledge. What are your suggestions?

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

    Question about efficiency

    Posted: 04 Apr 2019 09:37 AM PDT

    Hello!

    I would like to ask a question about performance when inserting element into array.

    Let's say I have an array of the size 10000 and it is not known how many elements are in this array. I execute the while loop to find the place where the new element needs to be added. If I want to add a this new element is it better to:

    1. Implement a while loop and iterate starting at the place where the new element needs to be added until the value null is returned and then executing the for loop until the place of the last element in the array and shifting each value by one thus making space for the new element.

    2. Just execute a for loop until the end of the array and shift each element by one thus making space for the new element.

    Basically my concern is what would be faster: to first find how many elements are there in the array and then shift their place, or just shift every element without first finding out how many elements there are and just going till the end of the array. I'm curious which of these methods would be better to use if the number of elements are unknown (because if there are, let's say only 10 elements in an array with the space 10000, it would be better to use the first method, right?).

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

    Scalability and Maintanability: .NET vs Django, Angular, Node.js

    Posted: 04 Apr 2019 05:23 PM PDT

    TL;DR: How seriously should I consider switching from .NET framework to one of the listed frameworks (or any others suggested)? Will it really help with maintenance/scalability/etc.? If we continue to use .NET what things should we look towards to ensure the system is scalable/maintainable/etc.?

     

    Background: I am working on a .NET WebForms application that runs on AWS (Elastic Beanstalk [t3.small], Classic Load Balancer [max 2 instances, CPU usage based], RDS [MS SQL Express, db.t2.micro]). The web app aides the company in running the business (Organic Waste Collection for, currently, about 10k residential customers and about 100 commercial customers), automating many time consuming tasks and centralizing, not just data, but the various tools that the company has (via integrations). I, essentially, am and have been the sole developer for the 7+ years I've been there (one of the co-founders will, on rare instances, also dabble in some coding of the app as well, very minor, and I had a friend help for a month too on minor tasks).

     

    I started working on this with very limited knowledge (after taking 3 non-credit courses at night at community college towards end of 10th grade) mid-11th grade at the request of my cousin and his partner who had just started the company recently and could not afford to hire real dev(s), but knew they couldn't keep running things as they were given the level of growth they were experiencing. I promised nothing, taking a stab at it using what I knew at the time (.NET + C# + HTML/CSS) and learning a lot along the way.

     

    Through my schooling (still on going), a few internships, and self-teaching I've developed my skills more and have implemented that knowledge on new development as well as, for certain things, gone back and replaced my old, poorly written code with newer, better code. With all that, I never really considered switching frameworks since it seems to work well and, in my opinion, will scale just fine and is easy enough to maintain/update. The only thought I have had is moving away from WebForms and towards MVC or, now that it's more stable, Core, but that was something to do once we grew more and had an actual dev team. It is currently only an internal use application, with client access planned to launch later on so they can manage account/make requests/see stats/etc.

     

    Current situation: Recently the company was sold (one co-founder staying on in new role, the one that I've always worked on this project with) and the new owner wants to ensure that he isn't spending money to develop something that will ultimately not perform given the expected large amount of growth that is expected to happen in the coming months/years. He was able to get ex-colleagues to agree to provide us guidance pro-bono; they are more seasoned developers and have built large scale applications used in the energy industry.

     

    One of the comments from them that stood out to me was that our application currently "did not have a framework" (could be that message was lost in translation as they are not native English speakers) and that we should adopt a framework, such as "Django, Angular, NodeJS or any other [which] would provide structures that would make [our] developing task easier now and the maintenance in the long term simpler." They also added that, should I leave the company, "the handover of the development to new individuals to be in charge of the tool would be less of a nightmare" and that "the structures of a framework should enable [me] to progress fastest and to make coding more efficient."

     

    Now, I am not opposed to looking into other frameworks and making a change, I just would like to hear what opinions you all have on this, as they have not really provided any detailed, compelling arguments (yet). My feelings are that:

    1) While these frameworks are newer and offer some cool features and make certain things easier/better, they aren't necessarily more scalable or maintainable than if we were to stick with the .NET framework

    2) It would require a larger investment than continuing current dev, which includes performance enhancing tasks (continuing to get rid of old, poorly written code; optimizing DB queries; using SPs/Views; maybe even off-loading certain tasks to lambda functions; etc.)

    3) Sort of related to the above, we should be looking at other things right now (caching, data architecture, switching to something like MySQL/MariaDB as SQL Express limitations are approached, etc.)

    4) .NET has made large strides with v4.X, especially with MVC/Core and being Microsoft backed assures, to a degree, that it will continue to be improved upon and be stable as there is no foreseeable lack of funding to do so

     

    Note: I just got this feedback and intend to discuss further with them, but I also want to hear other perspectives/opinions on this feedback.

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

    Need help deciding on an IDE for a (first) C project

    Posted: 04 Apr 2019 08:32 AM PDT

    I'd like help deciding on an IDE for developing my first serious project for a university course.

    I've had little experience with real software projects, with the most serious being a <500 line data structure implementation in Java, working with Eclipse. I've had a reasonably pleasant experience working with Eclipse.

    The "Official supported IDE" for the course is Eclipse, so all else being equal I'd rather use it, but it's not a game-changer.

    I'm a little concerned as I've always had a bit of a problem getting into the debugging interface of Eclipse and I always fall back on print statements (I'm a Pythonista at heart), so if any IDE has a particularly noob-friendly debugging experience that would also be great.

    As a university student I have access to a pro Jetbrains account, so CLion is definitely a serious contender (I use Pycharm for a different course). Other IDE's I've heard are good are VSCode and code::blocks

    Thank you beautiful people in advance!

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

    Question about Majors

    Posted: 04 Apr 2019 05:08 PM PDT

    Im about to register for my 3rd semester as a computer science major and I have to to chose a focus between:

    • Software engineering • Data Science • Computer engineering • Game design

    My question is which one of these are the hardest or most rewarding which are the easiest? How much work would you typically expect from each?

    I don't have a "dream job" as of now that I relates to one of these. I want to chose a focus that is not too difficult but I also don't want something that doesn't feel challenging.

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

    Where to find Flight Data for a airplane tracker

    Posted: 04 Apr 2019 04:37 PM PDT

    Hi guys

    As a fun project I want to try and make standalone flight tracker device. My first idea was just to buy a cheap tablet and either show a webpage or app and call it a day but I'd like to be able to display an overlay with next flight takingoff/landing which I haven't been able to find data for.

     

    I've kinda looked into ASD-B as all the planes in Australia seems to have the data broadcast but I can't actually find a database or anywhere to scrape it from.

     

    Has anyone done this before or looked into this? This is a project which could be easy or insane depending on the data availability (and feature creep if I'm not careful).

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

    How do I manage memory for objects that point to containers of their own type?

    Posted: 04 Apr 2019 11:55 AM PDT

    class position final { private: std::shared_ptr<std::unordered_map<position, int>> history; int x; public: bool operator==(const position& other) const; // compares x, ignores history position(int); set(int); } position::set(int x_) { x=x_;} position::position(int) { x=0; history.make_shared({*this,0}); } 

    I construct a position object that creates a smart pointer to a new map.

    When positions are copied, the copy points to this same map. When there are no positions that point to this map left, the smart pointer calls its destructor on the map.

    I can then initialise a handful of positions that point to different maps, and not have to worry about memory management.

    The spanner in the works is that I would like this map to have keys of type position but this segfaults.

    What is going wrong?

    Somehow the map is getting deleted and I end up attempting to insert objects into a nullptr.

    I feel my only option is to have history outside of the object breaking encapsulation or using new. Both of these work but I am looking for a more elegant solution.

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

    Question on C typedef struct

    Posted: 04 Apr 2019 06:43 AM PDT

    Not sure what the 'Books' part of this code is - the type, if I were to declare one, is 'Book', which comes after the ending curly brace.

    typedef struct Books { char title[50]; char author[50]; char subject[100]; int book_id; } Book; 
    submitted by /u/0xBAMA
    [link] [comments]

    Outlook Interop and Data Store Cap

    Posted: 04 Apr 2019 02:56 PM PDT

    I'm trying to parse messages to large amounts of data stores (.pst files). I am using AddStoreEx() to create a new data store or open an existing one, then adding the message to it, then using RemoveStore() and releasing the COM object. When I get to AddStoreEx on the 151st data store, it failed to load.

    It always happens at 151 so there is a 150 store limit here.

    Anyone know how to remove the 150 .pst store cap? Or what may be causing this?

    I have verified that the COM objects are being released and the current Stores.Count is only at 2 between each iteration (my personal store and the store I'm parsing the messages from). So apparently this count is coming from somewhere else.

    Thanks!

    edit: in case anyone is wondering I'm using c#.

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

    Any strategies or libraries for Java that can do complex conditional validation of form data?

    Posted: 04 Apr 2019 06:41 AM PDT

    Essentially we have a business requirement which I am tempted to throw back at the Product Owners for being too complex but here it goes anyway.

    We require the ability to make certain form fields mandatory depending on how other form fields have been completed.

    This so far has been done to a basic level with React, Formik and Yup.

    However there are some complex requirements coming in such as.

    if field A is complete && field B is null, then field C is required if field A and field B is null, and field C is null too, then field D is disabled 

    These are fairly simple, there is one requirement for 20 decisions to determine whether one field is required or not.

    I looked into decision trees and DMN tables however this seems "enterprisey".

    So any recommendations for backend Java validation of fields?

    My gut feeling is this is a crazy requirement and there must be another way to control user behaviour effectively.

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

    How wide-ranging is the average professional's programming ability?

    Posted: 04 Apr 2019 02:11 PM PDT

    could the average programmer create something similar to PowerPoint if they had to? Flappy Bird? A social media website? or are programmers more specialized?

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

    How to detect collision before it happens and how to stop it. Javascript game

    Posted: 04 Apr 2019 02:05 PM PDT

    I cant figure out how the relationship between ores and player will stop the function from allowing that movement. If we know player.x + 1 == ores.x we can assume that the ore is to the right of the box and therefore we cant go to the right

    //To begin the creation of a game you have to make the HTML source code. That links this javaScript program to Google Chrome
    //Then we can create the canvas//
    const cvs = document.getElementById("game");
    const ctx = cvs.getContext('2d');
    const box = 20;
    //Set the games background image up//
    let goldoreImg = new Image();
    goldoreImg.src = "goldore.png";
    let silveroreImg= new Image();
    silveroreImg.src = "silverore.png";
    let copperoreImg = new Image();
    copperoreImg.src = "copperore.png";
    //Make your player.
    let player = {
    x : 18 * box,
    y : 20 * box,
    oldx : 18 * box,
    oldy : 20 * box
    };
    //Create the random loot//
    let ores = []
    for (let i =0; i < 2; i++){
    ores.push({
    type: goldoreImg,
    x : Math.floor(Math.random()*20+10) * box,
    y : Math.floor(Math.random()*10+30) * box
    })
    }
    for (let i =0; i < 4; i++){
    ores.push({
    type: copperoreImg,
    x : Math.floor(Math.random()*20+10) * box,
    y : Math.floor(Math.random()*10+30) * box
    })
    }
    for (let i =0; i < 7; i++){
    ores.push({
    type: silveroreImg,
    x : Math.floor(Math.random()*20+10) * box,
    y : Math.floor(Math.random()*10+30) * box
    })
    }
    //Create the score//
    let money = 0;
    //Control the player//
    document.addEventListener("keydown", direction);
    function direction(event){
    let key = event.keyCode;
    if(key >= 37 && key <= 40){
    player.oldx = player.x
    player.oldy = player.y
    };
    if( key == 37){
    player.x -= box;
    }else if(key == 38){
    player.y -= box;
    }else if(key == 39){
    player.x += box;
    }else if(key == 40){
    player.y += box;
    }
    draw()
    }
    function draw(){
    ctx.strokeStyle = "red";
    ctx.strokeRect(player.x,player.y,box,box);
    ctx.fillStyle = "white";
    ctx.fillRect(player.x,player.y,box,box);
    ctx.strokeStyle = "black";
    ctx.strokeRect(player.oldx,player.oldy,box,box);
    ctx.fillStyle = "black";
    ctx.fillRect(player.oldx,player.oldy,box,box);
    for (let ore of ores){
    ctx.drawImage(ore.type,ore.x,ore.y)
    }
    }
    let game = setInterval(draw,1);

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

    Transferring data between forms in WPF

    Posted: 04 Apr 2019 03:48 AM PDT

    I am having trouble transferring the data input I get from a textbox in one form in WPF into another form.

    I have a login screen where you type a username. The username is connected to a database. When you've logged in you shoud be able to create a project and the project should be specific to the user. Therefore the username I get in the login form should be used in the create project form.

    I hope someone is able to help. :D

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

    Need help finding a Kalman library

    Posted: 04 Apr 2019 05:41 AM PDT

    I need to use a library with Unscented Kalman Filter in order to use on two sensors with noise in real time. The problem is I haven't found one that I can get working. I have tried pykalman ( https://github.com/pykalman/pykalman) aswell as filterPy ( https://github.com/rlabbe/filterpy) but I can't get them to work.

    Does anyone have any recommendation on library I can use (with instructions preferably)?

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

    Is there a way to take a photo, scan, or laser an object into a vector file at 1:1 ratio?

    Posted: 04 Apr 2019 04:00 AM PDT

    Cannot display nested value in JSON file on web page. Help please.

    Posted: 04 Apr 2019 11:02 AM PDT

    Good afternoon.

    I have a JSON file that looks sort of like this:

    "features" : [

    {

    "A" : "0",

    "B" : 1,

    "C" : {

    "C1" : 5

    }

    }

    ]

    }

    How can I display the value "5" on a webpage?

    I have successfully displayed the A and B's numbers with the following code, but I only get [object Object] for C's number. I know it has something to do with the nested values but I can't figure it out. Any help would be greatly appreciated.

    <div class="mypanel"></div>

    <script>

    $.getJSON('jsonurl.com', function(data) {

    var text = \A Number: ${[data.features.0]}<br>\`

    B Number: ${data['features'][0]['B']}<br>

    \C Number: ${data['features'][0]['C']}<br>```

    $(".mypanel").html(text);

    });

    </script>

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

    Problem with HackerRank output : Debug shows correct output --stdout shows no output

    Posted: 04 Apr 2019 10:29 AM PDT

    I'm in a bit of a pickle here. We're tasked with completing a QuickSort on HackerRank. The answer is perfectly fine if I insert my own values for the array / arraylist, however reading in input from Test Cases is where it goes south.

    Here's my code: import java.io.; import java.math.; import java.security.; import java.text.; import java.util.; import java.util.concurrent.; import java.util.regex.*;

    public class Solution {

    public static void main(String[] args) throws IOException{ //taken from quickSort 1 to read in values Scanner scanner = new Scanner(System.in); BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH"))); int n = scanner.nextInt(); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); int[] arr = new int[n]; String[] arrItems = scanner.nextLine().split(" "); scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); for (int i = 0; i < n; i++) { int arrItem = Integer.parseInt(arrItems[i]); arr[i] = arrItem; } ArrayList<Integer> array = new ArrayList<Integer>(); for (int number : arr) { array.add(number); } bufferedWriter.newLine(); bufferedWriter.close(); scanner.close(); quickSort(array); } public static ArrayList<Integer> quickSort(ArrayList<Integer> ar) { if (ar.size() <= 1) { return ar; } ArrayList<Integer> leftArray = new ArrayList<Integer>(); ArrayList<Integer> rightArray = new ArrayList<Integer>(); ArrayList<Integer> finalArray = new ArrayList<Integer>(); int pivot = ar.get(0); for (int i = 1; i < ar.size(); i++) { if (ar.get(i) < ar.get(0)) { leftArray.add(ar.get(i)); } else if (ar.get(i) > ar.get(0)) { rightArray.add(ar.get(i)); } } finalArray.addAll(quickSort(leftArray)); finalArray.add(pivot); finalArray.addAll(quickSort(rightArray)); printArrayList(finalArray); return finalArray; } public static void printArrayList(ArrayList<Integer> ar) { for (int number : ar) { System.out.print(number + " "); } System.out.println(); } 

    }

    And here is the output: https://imgur.com/a/7Uud9jB

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

    How to write an application monitoring tool at the command line that runs like 'top' or 'ntop'?

    Posted: 04 Apr 2019 07:57 AM PDT

    I have an application I'd like to monitor, but I find that printing out a whole screen of data causes a lot of flicker and the momentary flash while the screen is updating is distracting.

    How do I update only certain elements on the page (i.e. the data) in the same fashion that top and ntop do?

    Thx.

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

    Where can I do W3C validation test for my website?

    Posted: 04 Apr 2019 03:06 AM PDT

    Basic Javascript Question

    Posted: 04 Apr 2019 02:36 AM PDT

    Does anyone know why this block of code defaults to 1 every time?

    here it is: function RandomBUNumGen(v) { return Math.floor(Math.random() * v); } for (arraylength = 0; arraylength <= RedRouletteWheelValues.length; arraylength++){ var PredetColour = "red"; for (c=0; c<=17; c++){ GenDivNum[c] = RandomBUNumGen(2); }if (GenDivNum[arraylength] = 0){ GenDiv[arraylength] = "Odd"; }else{ GenDiv[arraylength] = "Even"; } for (b=0; b<=17; b++){ GenHLNum[b] = RandomBUNumGen(2); } if (GenHLNum[arraylength] = 0){ GenHL[arraylength] = ("High"); }else{ GenHL[arraylength] = ("Low"); } }

    Could anyone help?

    Heres a screenshot aswell https://gyazo.com/167fd741d2265e674927f2b5eff0cbee

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

    No comments:

    Post a Comment