Questions tagged [code]

Questions relating to computer coding practices.

Filter by
Sorted by
Tagged with
7 votes
3 answers
1k views

How to offer code-reviews to a junior colleague who has been in the office longer than I am?

I am a senior software engineer, on an algorithm development team, with the algorithm engineer title (I wanted to stop being a software engineer by title, and move to algorithm development, which I ...
user avatar
  • 813
-4 votes
1 answer
774 views

Is it bad for software developers to sign their comments in the code? [closed]

I am a software developer and I work in a big team where everybody works on everybody's code. I am used to comment a lot, indicating what I am editing, why, and what is expected to happen after a ...
user avatar
  • 693
0 votes
2 answers
1k views

What steps should I take to use GitHub copilot in my work? [closed]

A few weeks ago I got access to GitHub copilot, probably many of you have seen hundreds of news about GitHub copilot, if you do not know, in essence it is a kind of AI that helps you create code, I ...
user avatar
  • 109
-4 votes
1 answer
341 views

Using different programming language as coworker

I do alot of text file parsing at work and I like to use python since it's a lot of times easier and less code to write but the rest of my coworkers use C# or VB with .net. People do their own work ...
user avatar
  • 612
2 votes
4 answers
988 views

What does it mean if I am non billable on my project yet a useful resource. Will they fire me?

I work as a non billable member in my company. But I complete my tasks assigned to me on time for my project. Is there a chance that in future my company will fire me just because I am non billable?
user avatar
  • 37
-2 votes
7 answers
2k views

Got rejected in a coding interview even though I felt I could get to the next round. How can I be consistently successful in coding interviews? [closed]

About two months ago, I was interviewed by a developer from a start-up company and he asked me to write C++ code for a straight-forward problem (Given an array of integers, return the prime numbers in ...
user avatar
  • 299
53 votes
19 answers
12k views

Are questions on theory useful in interviews?

Our company have been interviewing for a C# position recently. One of the questions we ask is "can you explain the difference between an abstract class and an interface". I've been to many ...
user avatar
  • 567
41 votes
14 answers
13k views

My colleague got upset, did I insult him?

I am an international female student, working as a part-time employee in a fairly big company in Canada with a group: 2 other international male students and one male employee, "Jack", who ...
user avatar
  • 1,490
-1 votes
1 answer
209 views

How to avoid these duplications and streamline? [closed]

I working in a departmentA, where I write my own code and perform required task. Some other departmentB is working on the same area (departmentB is not aware that departmentA already completed) which ...
user avatar
7 votes
3 answers
2k views

How do to ship "utility" code that's not really part of the "value add" work

I hope this is the right forum for this. I do software work for clients and typically the client owns the code I write. Now this work can include "utilities" i.e. useful code that I have ...
user avatar
  • 88.7k
61 votes
13 answers
12k views

How can I get a new developer to significantly improve their code?

I'm technical lead and we have a recent hire that's very inexperienced. He's also very opinionated and proud for a newbie and his code style diverges too much from the team. But he still produces low-...
user avatar
-1 votes
3 answers
452 views

What are my rights regarding IP (in UK) when there was no written contract and business never paid fully for the code

Hope you will be able to help me here. I do not really know if this is the correct place to ask such questions. In 2014 I started to work for a certain company – the setup was that I was hired by my ...
user avatar
58 votes
11 answers
24k views

I'm in isolation - How can I prove that I can code without leaving the house or paying much money?

This is a shot in the dark, but I'm hoping for the best. My situation is as follows: I have a Master's degree in mathematics and have been trying my best to get a statistics job, or better yet, data ...
user avatar
  • 685
6 votes
9 answers
2k views

Team doesn't take my code review comments seriously

I am a mid level software developer in a small software company. I have been here for the last 8 months and due to my approach with code reviews I was added to the mandatory reviewers list early on. ...
user avatar
148 votes
16 answers
27k views

When I need to constructively criticize someone's code, what can I do to "soften the blow" and increase the impact at the same time?

A junior developer was having some issues on a project. As the deadline got closer without any resolution in sight, my manager asked me to help out. I'm a mid-level developer on the team. After ...
user avatar
  • 6,190
8 votes
2 answers
1k views

The Value and ownership of programming interview questions for developers

During taking interviews for developer positions, it is common to ask to provide snippets of code that fulfill specific requirements. Therefore, recently I was asked to create an entire application ...
user avatar
52 votes
16 answers
12k views

How to do code reviews to people whose programming skills are weak?

I am a developer and I was recently promoted so I am doing significantly more code reviews now. Part of that includes doing code reviews on Github with people who are either not very competent or lack ...
user avatar
  • 413
30 votes
9 answers
4k views

I feel ashamed about my old code

Last year I entered in a software company as a Junior developer and started to work with new language and technologies. I tried my best, studied, and did a lot of features. Because of this, I gained ...
user avatar
  • 351
14 votes
3 answers
3k views

Coworker ignores my code review suggestions

I work as a developer in a small team containing 5 developers and a team lead. I have been on a project since its beginning so I understand the code better than others. It happens sometimes that, I ...
user avatar
  • 161
12 votes
11 answers
10k views

Manager asked me to reconsider my resignation and he sounded quite convincing, should I listen to him? [closed]

As stated in this question: Just resigned as backend developer. How do I acquire the skills needed for my next job? I have resigned from my job as backend developer. Today my manager and I had a ...
user avatar
3 votes
2 answers
2k views

Just resigned as backend developer. How do I acquire the skills needed for my next job?

I am an engineering graduate from a Non CS background. I have been working as a backend developer for almost two years now. The tasks had become a little repetitive for me and frankly speaking a ...
user avatar
1 vote
5 answers
821 views

Reviewing old code database, how to start interacting with the dev team?

TL, DR: There was this software product being developed in my company, I needed to review a lot of the codebase. How do I talk to the development team? The not-so-short version: Due to several reasons ...
user avatar
  • 3,563
6 votes
7 answers
2k views

Coworker thinks code review cost too much time

Almost a year ago I switched to my current job. I have 2 prior years of programming experience but this is my first time working on an entirely new product. I am part of a small team of (5 or less) ...
user avatar
4 votes
4 answers
5k views

Respect and Code Reviews [duplicate]

How do you respect your boss when he asks you to write the code in his fashion for no objective reason other than he likes it that way? I submitted my code for review and passed all lint checks and ...
user avatar
  • 179
8 votes
6 answers
2k views

Can I reuse the code of an application written in my spare time if it has been deployed and used in the internal company network?

I have written a small application to offer a service to all employees where I work. This was done outside of work almost 100% using my personal laptop (only small fixes were done at work mostly ...
user avatar
  • 5,672
-2 votes
3 answers
675 views

My interview answers are "overly engineered/complex and too hard to read" [closed]

I'm a graduated computer sience student (with a gpa of 95/100) and maintain some open source projects. I love to code and this is my daily job in a company that almost declined me in the interview ...
user avatar
-2 votes
4 answers
371 views

what I will choose, while giving any coding interview -- Own Algorithm or Any predefined algroithm if the complexity isn't mentioned? [closed]

In a coding/technical interview, your interviewer may ask you to write an algorithm -- for example, one that efficiently can return "longest possible increasing order" from a stream of numbers. Will ...
user avatar
14 votes
3 answers
2k views

How do I know if I suck at code reviews?

I’m a senior frontend developer. My career is going great but I feel like I'm terrible at reviewing other people's code. There’s a much higher level of complexity that I can understand when its code I'...
user avatar
  • 281
32 votes
6 answers
12k views

How to approach protecting my code as a research assistant? Should I be worried in the first place?

I am an undergraduate working as a research assistant for a university, primarily alongside a supervisor. While I have my own project, my job still has me assisting my supervisor in his main research. ...
user avatar
3 votes
3 answers
559 views

Colleague prefers to roll their own solutions that are completely unnecessary

How do I help a coworker with more years of experience write cleaner code? Let's call them Dario. What are some tips on how to gradually introduce clean code concepts while still being respectful and ...
user avatar
1 vote
4 answers
633 views

Who to go to about a code review?

I am an apprentice at a large-ish company (500-600 employees). It is an engineering firm. I have written a web app which was not requested by anyone to start with but when I demonstrated the potential ...
user avatar
  • 59
76 votes
14 answers
14k views

Is it a problem that pull requests are approved without any comments

I've recently joined a new company within this pretty small team. I'm running into this issue where my coworkers approve my pull request a few seconds after I ask them to review it. There never are ...
user avatar
  • 609
131 votes
26 answers
28k views

Team member is vehemently against code formatting

I am the manager of a small team of developers (5 engineers, including me). A few months ago, on the suggestion of another colleague we introduced mandatory code formatting in the code base, for our ...
user avatar
  • 1,117
5 votes
5 answers
627 views

Code Ownership Vs Responsibility&Credit

I'm having mixed feelings about a situation in my workplace. I’m getting the impression that a colleague wants to claim my work as his, but I’m also suspecting it might be unfair of me to think so. ...
user avatar
106 votes
19 answers
31k views

Can I criticise the more senior developers around me for not writing clean code?

I am a junior developer. Although I already programmed in different languages for the last 5 years I still have a hard time debugging more complex issues. On the other hand I like clean code and try ...
user avatar
28 votes
7 answers
3k views

Professionalism: protecting code quality

TL;DR: Questions under the text I am a software developer at the R&D center. Due to my seniority, I am oftentimes asked to review time/scope critical changes to our code-base. Due to the hectic ...
user avatar
  • 301
8 votes
3 answers
1k views

I developed code and "donated" it my workplace to speed things up. Now do they own that code? [closed]

I work at a small startup as a full stack developer. We previously used PHP to develop all of our applications and I told my boss we should eventually move to C# which he agreed. Over the coming ...
user avatar
  • 275
2 votes
3 answers
993 views

Technical interview coding and bad code sharing web applications [closed]

During tech interviews, some companies open up a web application like "codeshare.io" or coderpad.io and they ask an algorithm question etc. I normally use Intellij Idea whenever I code and I'm not ...
user avatar
  • 29
5 votes
5 answers
768 views

How can I identify coding skills without any IT background? [closed]

We are a small company and looking for a full-stack developer (NodeJS) with focus on Node and React. Since we all don´t have an IT background it´s difficult to really check on the quality of the ...
user avatar
  • 75
-10 votes
6 answers
2k views

How to deal with a software developer who doesn't seem to understand that he's just a coder?

As a manager for a software development team, how do I deal with developers who don't seem to understand what their job description is? In particular, I am currently dealing with a junior developer ...
user avatar
  • 33
9 votes
6 answers
2k views

How to not sound passive aggressive in code reviews?

As a young guy in my first programming job, I can't figure out how to avoid sounding passive aggressive when providing code review comments or when responding to such comments in my own code. It ...
user avatar
6 votes
1 answer
695 views

How should I approach my boss about more code-reviews?

I work as a trainee in a large IT-company for a little more than one year now. After a few weeks of crash course training, I was assigned to update the front-end for one of our departments. It ...
user avatar
  • 475
1 vote
2 answers
610 views

Code sample for embedded software developer application? [closed]

Unexpectedly, I've the chance for a dream job as an embedded software developer. The application requires a code sample to be included with the CV. I have a very good experience in C. But ...
user avatar
72 votes
10 answers
21k views

Coworker reviewing code too late in process

Over the summer I changed jobs from a big company as a senior engineer to a way smaller company as a principal engineer. Now I oversee about 20 jr-to-mid-level engineers working on 3 different ...
user avatar
3 votes
2 answers
412 views

How to pass interviews if you never contributed to an open source project? [duplicate]

I am getting stuck already in few interviews when the companies ask me to show them my source code. During 10 years of career all "my" source code is private, sealed by many NDAs source code that is ...
user avatar
  • 1,609
10 votes
4 answers
1k views

Co-worker letting coding standards drop again after large refactor - how to enforce better practices?

After we spent 4 years cleaning up the code and it is working OK again, my colleague started to get messy again. Ignoring Reviews with the usual phrase "I have more important tasks to do atm" means ...
user avatar
  • 213
5 votes
2 answers
531 views

How can I encourage my coworkers to produce better quality code? [closed]

I'm a team lead for a small group of programmers. We share several projects with other teams. Lately the quality of two other teams' code has deteriorated to the point where it is slowing us down and ...
user avatar
  • 169
9 votes
9 answers
3k views

How do I convince developers not fight code style enforcement?

I'm developer infrastructure and tools engineer. My org structure is like so (fictional names for convenience)(job level in parenthesis) Bob(3)/ Me(1)/ Alice(2)/ Sam(1)/ John(...
user avatar
  • 477
11 votes
5 answers
2k views

How to navigate working with a development process that is not supportive of clean code?

I started working at my current job just over a year ago. When I started the code base was a complete mess. All of the code was in one file, it was not maintainable and best practices were not ...
user avatar
  • 3,325
157 votes
13 answers
30k views

Is it reasonable to ask a potential employer for samples of their code and/or employee contact information, to determine if I want to work there?

I'm currently looking for a new job as a developer. There are two things that companies usually require that bother me a lot: long programming assignments and reference checks. There are plenty of ...
user avatar
  • 1,231