• Breaking News

    Tuesday, September 28, 2021

    I need to hire a Java developer but I know next to nothing about the language Ask Programming

    I need to hire a Java developer but I know next to nothing about the language Ask Programming


    I need to hire a Java developer but I know next to nothing about the language

    Posted: 28 Sep 2021 10:53 PM PDT

    I'm not sure if this is the correct subreddit to ask this, but as the title says, I need to hire a Java developer. The issue is that I know next to nothing about Java. I was hoping you guys can help me figure out some questions (and answers) that I can ask during the interview process to help me assess who actually knows the language, so I do not get mislead.

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

    Have you ever done nothing at a job for weeks or months?

    Posted: 28 Sep 2021 04:24 AM PDT

    I have an experience of 3-4 years as a fullstask programmer (PHP/JS). I don't know what's wrong with me, may be my depression, burnout or both (or none - don't know). But I don't do my job at all. 90% of time are being wasted. I can just sit for hours and do nothing. It all started a couple of months ago but in last 2-4 weeks I literally do nothing. I CANNOT make or force myself to do a job. I've never faced such a problem. What is it? Has anyone experienced this? And what to do?

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

    2 inline-blocks aren't fitting on the same line

    Posted: 28 Sep 2021 10:50 PM PDT

    I take 2 divs and the display: inline-block and width:50% for both of them . So instead of sharing the 50% width on the same line the 2nd div just goes on the next line. I even commented off the white space for inline-blocks .Can anyone tell me what's happening here ??

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

    How to deal with an otherwise competent programmer with a belligerently weird style?

    Posted: 28 Sep 2021 04:17 PM PDT

    I work on a 5-person programming team (plus one supervisor). It's not a standard programming language and it's a small enough community that I am not going to name it here for the sake of anonymity.

    We have a code style guide that we settled on which is mostly industry standard best practices, with a few extra additions specific to our company. Most of the guidelines had little to no opposition among the team when proposed, but there was two specific areas where one of the team spent well over an hour arguing over the superiority of his preference compared to what is the industry standard, and in the end our supervisor intervened and basically told him that he'd been outvoted and we, as a company, were going to do things the way the rest of us preferred and that was much more standard to do them.

    Again, I can't name specifics, but I assure you that this isn't a small thing; it's effectively the equivalent of the "indent with semicolons" code style, but in the specialized language that we use. Sure, you can make a few arguments as to why it helps (like, sure, it does mean that you can never forget a semicolon at the end of a line, and you can visually see the indents so you don't have to check if they are spaces or tabs) but in the end it's so visually jarring compared to normal code and takes such a weird amount of extra work to do that it's definitely not worth it. And he's been here long enough that he's writing code that is now starting to be integrated into the company code libraries, thus making the rest of us now have to see and often debug code written in his weird and annoying style.

    The problem is that this guy, with the exception of his fixation on this one bizarre code style, is actually pretty good at what he does, and it would be really difficult to replace him because not only would we have to find someone who knows the somewhat obscure language at a high skill level, it would take weeks or months for them to reach his level of familiarity with company-specific systems. And hiring anyone right now is difficult enough what with the world being the way it is...

    So I ask you all, is there anything in general that you can think of that could be done here? I've considered writing a script to parse his code and remove the weirdness, but he could just revert it back in source control plus my boss would call it a waste of time. Because he's writing otherwise good code, he won't get fired over this. The best I can think of is that on his next review he gets marked down for not being a team player, and gets a sub-par raise, and either quits or changes his mind, but I don't see that as a strong possibility. I have talked to our supervisor already, who talked to the guy, who basically said that he is still convinced his is the better way and he's not going to stop doing it despite being outnumbered 5 to 1.

    Edit: General response to the ~50% of responses suggesting plugins/linters/whatever to automatically reformat his code or reject it before committing: With this language and the development environment we use, that isn't possible with the source control we use. If I want to "correct" any of his stuff, the only option is to get his last commit, alter it, then submit that as my commit, and it's only partially automatable. I'd end up spending roughly 25% of my time reformatting his stuff.

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

    Good progress?

    Posted: 28 Sep 2021 09:57 PM PDT

    Started school 3.5 weeks ago, first time learning programming, just wondering if this is good progress or if I should know more by now? C++

     #include <iostream> #include <vector> using namespace std; int main() { char letter; vector <int> numbers {}; do { cout << "P - Display numbers" << endl; cout << "A - add number" << endl; cout << "M - Display mean of numbers" << endl; cout << "S - Display smallest number" << endl; cout << "L - Display largest number" << endl; cout << "Q - Quit" << endl; cout << "Enter your choice" << endl; cin >> letter; if (letter == 'A' || letter == 'a') { cout << "Enter a number: " << endl; int number_to_add {}; cin >> number_to_add; numbers.push_back(number_to_add); } else if (letter == 'P' || letter == 'p') { if (numbers.size() == 0) cout << "No values, add a number using 'A' or 'a'!" << endl; else for (auto num: numbers) cout << num << endl; } else if (letter == 'M' || letter == 'm') if (numbers.size() == 0) cout << "No data, add a number" << endl; else { cout << "The mean of the numbers is: " << endl; int total_of_numbers {}; for (auto num: numbers) total_of_numbers += num; cout << static_cast<double> (total_of_numbers)/numbers.size() << endl; } else if (letter == 'S' || letter == 's'){ if (numbers.size() == 0){ cout << "No data, add a number" << endl; } else { cout << "The smallest number is: " << endl; int smallest = numbers.at(0); for (auto num: numbers) if (smallest < num){ num = smallest; cout << smallest << endl; }} } else if (letter == 'L' || letter == 'l') { if (numbers.size() == 0) cout << "No data, add a number" << endl; else { cout << "The largest number is: " << endl; int largest = numbers.at(0); for (auto num: numbers) if (num > largest) largest = num; cout << largest << endl; } } } while(letter != 'Q' && letter !='q' ); return 0; } 
    submitted by /u/Zuptex
    [link] [comments]

    Why use python over bash?

    Posted: 28 Sep 2021 06:00 PM PDT

    Why does the linux dev use python scripts instead of bash when there is already bash programming exits for linux?

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

    C++ Fibonacci Tabulation error

    Posted: 28 Sep 2021 06:26 PM PDT

    Hey, I am trying to code fibonacci using tabulation but, does anyone know why the code:

    #include <vector>

    #include <iostream>

    using namespace std;

    class Solution {

    public:

    int fib(int n) {

    static vector<unsigned long int> values;

    if (values.empty()) {

    for (int i=0; i<n; i++) {

    values.push_back(-1);

    }

    }

    if (n == 0 || n == 1) {

    values.at(n) = n;

    return n;

    }

    int fib1 = values.at(n-1);

    if(fib1 == -1) {

    fib1 = fib(n-1);

    values.at(n-1) = fib1;

    }

    int fib2 = values.at(n-2);

    if(fib2 == -1) {

    fib2 = fib(n-2);

    values.at(n-2) = fib2;

    }

    return fib1 + fib2;

    }

    };

    Throws the error:

    terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check: __n (which is 2) >= this->size() (which is 2)

    Thanks for the help

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

    Swarm robotic simulator question

    Posted: 28 Sep 2021 11:11 PM PDT

    I can't figure out what the (2) is in the line that controls altitude for a swarm simulator. How do other programmers troubleshoot what things mean if they can't google it?

     double heading = sc::Angles::angle_2pi(atan2(vel_result(1), vel_result(0))); vars_.output(desired_alt_idx_, state_->pos()(2) + vel_result(2)); vars_.output(desired_speed_idx_, vel_result.norm()); 

    It's from this: https://github.com/gtri/scrimmage/blob/b696da4b5e57563c1f4bab42dddae439bf441050/src/plugins/autonomy/MotorSchemas/MotorSchemas.cpp

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

    fitness app java Android project help, advice/hints

    Posted: 28 Sep 2021 04:32 PM PDT

    Hi! im trying to develep an android app with java. its a fitness application that helps the user with the exercise sets and reps.

    my plan is to use firebase with the different (4 different training days) training routines that i later can count down the sets. the user will manually click a button after each set is done.

    can you guys please give me some advice and hints on what i should do and how!

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

    Can You Use Machine Learning To Recognize Someone's "Voice" In Text?

    Posted: 28 Sep 2021 12:35 PM PDT

    Hello friends. Everyone has a writing style that affects the way people interpret what you write. Some people have really recognizable voices in their writing. Has anyone built a program that recognizes specific people by the way they write? IE, could I take someone's linkedin profile (along with some writing pieces by them), and find their reddit account?

    If you wanted to make something like that (or make something that would prevent that), how would you go about doing it?

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

    Looking for a wordpress/CMS template for a website about online contests. It should be easy for visitors to sort by category, age group, prizes, etc.

    Posted: 28 Sep 2021 04:04 PM PDT

    Sorry if not purely programming related. I would be happy to repost in the correct Ask subreddit. TIA.

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

    Software development jobs that don't require web development?

    Posted: 28 Sep 2021 12:08 PM PDT

    I love programming but hate web development. Unfortunately the web seens to be everything these days.

    Which software development jobs Don't need Web development?

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

    How to think like a programmer?

    Posted: 28 Sep 2021 03:52 PM PDT

    I am majoring in something similar to Computer Science, it is pretty much a lot of programming and data science classes. I am struggling in basic programming classes and I don't really know why. This semester I was taking an Advanced Web Programming course that focused a lot on JavaScript. When it came to doing basic tasks like "Pascals Triangle", I have a hard time approaching the problem. I felt I wasn't ready for the class so I withdrew. I want to retake it next semester but I want to better prepare myself. Many of the classes I need to take have an intro Python class as the prerequisite but I don't think this Python class really helped in setting the foundation for other classes. I did pass the Python class.

    What do I need to do or work on in order to wrap my head around the concepts? Would taking some Udemy courses be beneficial for me?

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

    Java Issue

    Posted: 28 Sep 2021 03:11 PM PDT

    Hi, I am working on a java code that should calculate the average of N of students CGPA in an array and the input is taken from the user, I am done with the code but I want to take the input(CGPA) from the user as a double not as an integer and I keep on getting errors trying to fix it.

     import java.util.*; public class Test4{ public static void main(String [] args){ Scanner adnan = new Scanner(System.in); System.out.println("Enter number of students : "); int length = adnan.nextInt(); int [] input = new int[length]; System.out.println("Enter the CGPA of students : "); for (int i=0; i<length; i++){ input[i] = adnan.nextInt(); } double average = average(input); System.out.println("Average of students CGPA is : " +average); adnan.close(); } public static double average(int [] input){ double sum = 0f; for ( int number : input){ sum = sum + number; } return sum / input.length; } } 

    Any help would be really appreciated.

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

    Which language/framework could i use to build this?

    Posted: 28 Sep 2021 12:12 PM PDT

    Hi.

    While im not new to programming im only know how to program in C/Python. I was curious about some software and would like to know what languages/frameworks could i use to build an app (desktop or web based).

    The idea is to have some interface like microsoft office with a canvas (rulers, page format) where i can put some text (with rotate/rezise/etc), some images, some barcodes, copy/paste, etc... essentially a "label designer" for a homemade project that im working on it.

    Something like this, this, or this. This images are desktop like but wouldnt mind if its web based.

    I understand that there are some softwares like inkscape/adobe spark/photoshop that could resolve this easily but i would like to learn how to implement it myself.

    For web i was thinking something like react/angular (is there any library for this?) and have it hosted on cloud or with electron js. For desktop is QT (c++) or .NET for this? other alternatives? any resource to read?

    Thanks

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

    SQL clustered columnstore index in CREATE TABLE

    Posted: 28 Sep 2021 11:34 AM PDT

    CREATE TABLE [Staging].[FactEnrollmentOutcomes]( [EnrollOutcomeKey] [bigint] IDENTITY(1,1) NOT NULL, [CourseKey] [bigint] NOT NULL, [InstructorKey] [bigint] NOT NULL, [SectionNumber] [varchar](3) NOT NULL, [DateKey] [bigint] NOT NULL, [StudentKey] [bigint] NOT NULL, [EnrollLetterGrade] [varchar](2) NULL, [EnrollnumberGrade] [tinyint] NULL

    INDEX cciEnrollOutcomes CLUSTERED COLUMNSTORE, CONSTRAINT [PK_EnrollOutcomes_enrollOutcomeDateKey] PRIMARY KEY NONCLUSTERED ( [EnrollOutcomeKey], [DateKey] ) ON ps_OrderDateKey(DateKey) 

    ) GO Msg 35306, Level 15, State 1, Line 11 "The statement failed because a columnstore index cannot be specified using INDEX specification at the column level."

    It worked before, I dont know why it stopped. this code was given to us by the prof as part of our assignment where we have to modify it it for partitioning based on the datekey. I've been trying to figure it out and trying different things, but to no avail. anyone see where the problem is? this is just the very last part of the project and it's taking longer than the rest combined. Thanks

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

    doubt in simple python program

    Posted: 28 Sep 2021 10:35 AM PDT

    IN 4th line below python code i am not able to understand what is happening?pls help

    if __name__ == '__main__': n = int(input()) for i in range(n): print(i+1,end="") #line 4 
    submitted by /u/Amaanullah1102
    [link] [comments]

    As an intern I am usually on the right path but I always ask questions/confirmation to make sure, often to my detriment. How do I become more confident in what I’m doing?

    Posted: 28 Sep 2021 10:26 AM PDT

    Hi everyone, I've been dealing with this since I've started interning as a software dev. I am fairly familiar with our code base and when I pick up a task I know "somewhat" what I need to do, but I always ask my seniors just to make sure that it is good.

    My seniors are always responsive and helpful. However I feel like I could be more independent. I usually have a fear of pushing the wrong thing in my branch (even thought it goes through a code review).

    But when I ask questions I think I end up looking even dumber than pushing a piece of code that might be incorrect. I often realize that I was actually on the right path but I was too scared to dig deeper or to make a mistake by pushing code on my own.

    So, how do I better myself? Should I push code that I am less confident about and stop bothering my coworkers, or rather should I ask for confirmation? How do you guys deal with this when you are new at a workplace?

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

    Converting JSON to something readable for a transcriber/translator

    Posted: 28 Sep 2021 09:53 AM PDT

    Hello all. First post in this forum so please be gentle.

    My employer has tasked me with the following challenge. We currently administer a virtual assistant to help our customers. We have a team of AI trainers that continuously train and improve the assistant in Norwegian. However, we want to hire a consultant to translate the responses and corresponding training data to also give replies in English. For security reasons, we do not want to give the consultant access to the admin panel in order to do the translations, as it would require certification and a lot of extra hassle that I doubt they have the technical competence to complete, nor the interest of such an untraditional way of working.

    The exported files from the admin panel gives us JSON files that give the full overall structure of the flows involved with each particular topic. Like I explained above, we cannot expect the translator to be technically proficient in code, so we need to make a conversion of some kind. I've been using VSC to try and convert it to CSV, but the extension fails in the conversion and I don't get any output.

    Now, for my question that I hope you all can help me with. What would be the best course of action for me to extract the necessary data to another format (preferably something MS Office that most people use) from a JSON file? For security reasons, I cannot share any of the code with you, but I'm hoping that someone out there has some good suggestions for me. I also want to say in advance, that my own experience with JSON is limited, so ELI5 answers are appreciated. Thank you!

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

    Have any articles/material for how to manage a development team?

    Posted: 28 Sep 2021 09:50 AM PDT

    Hi everyone, in the last month i was charged to be a leader/manager of a small team of programmers, i never had any experience on that and im trying but i want to make sure that i will be making a good job with that.

    Do you guys have materials, books, articles about that? Or any tips that you think it should help

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

    Break good or Break bad?

    Posted: 28 Sep 2021 09:31 AM PDT

    My programming teacher told us that we should not use breaks, continues, empty returns in our code. We have worked in Java (mainly) and Python (a little bit). The reason was that it makes a code "not readable" and creates spaghetti-code. I don't agree with this, and I think that it can, in certain circumstances, make the code better and more efficient, while not sacrificing readability. What is your opinion on this? Do you agree? Do you disagree?

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

    Do you have/know a good "go-to" framework for service / microservice development?

    Posted: 28 Sep 2021 07:28 AM PDT

    in the .net world MassTransit and NServiceBus are pretty good products/frameworks to help build distributed systems and services, they seem to be a good blend of getting started (relativity) quick, as well as covering the really difficult side of living with distributed and event based systems (audits, monitoring, orchestration, coordination, tracking, retry, replay, etc..)

    I would love to know some options others use, specifically in other tech stacks.

    I see Spring (spring.io) mentioned often for Java, are there any others that see much use? Anything for the python world?

    Always looking for things like this because I think mature frameworks at minimum show viable end-to-end solutions for specific problem areas. I'm not looking for The Way, just wanting to grow my knowledge of whats out there.

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

    Any books about theoretical GUI and Web Dev?

    Posted: 28 Sep 2021 07:01 AM PDT

    I am studying web development through "ASP.NET core" and any book i read instructs me on how to do things without intuition why it should be done like that. so I am asking about books or readings old books "because some how old books are the only so far to be sufficient it this career" or new ones talking about the subject.

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

    Are raw sockets the basis of any higher level protocol that isn’t UDP or TCP?

    Posted: 28 Sep 2021 12:43 AM PDT

    I recently discovered QUIC which built on UDP offers a few advantages over TCP albeit with some added complexity. I'm now wondering if any reliable protocols are out there that use raw sockets?

    For example you could conceive of a UDP-like protocol where an error correcting code can, instead of dropping a packet, tell you that your packet was one of a few possible options. You could then cache computations for each before re-requesting that packet.

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

    No comments:

    Post a Comment