Where do you draw the line between personal code and work code? (Legally) via /r/learnprogramming


Where do you draw the line between personal code and work code? (Legally)

My employer doesn't have much as far as written policy for software development and recently there has been a few lawsuits in my field so I'm trying to gauge where I have to draw my limits for my work. I have a few questions I want to ask our management but I feel like it would be suspicious if I asked them all at once… My personal development work somewhat overlaps with the development I do for my employer and I just want to cover my ass, just in case.

Could someone give me an idea of what is normal for software development? Also if anyone has any resources for this topic I would really appreciate it!

  • Can I rewrite code I previously wrote for another employer? (i.e. I don't have any of the code but I know how to write it)

  • Can I work on personal code (on personal time and equipment) related to work code? (i.e. same subject matter)

  • Can I rewrite code from scratch that I already wrote at work? (i.e. write code outside of work for a problem I already solved at work)

Submitted February 29, 2016 at 06:37PM by notacs
via reddit http://ift.tt/1RBC7sF

Not sure where to start, I’ve been through the FAQ but would like some opinions via /r/learnprogramming


Not sure where to start, I’ve been through the FAQ but would like some opinions

I'm currently at a time in my life where I have lots of free time on my hands. As such, I'd like to try to make the best of it and dive into something that's always interested me: programming. I have a math degree, and a lot of jobs in the mathematical finance sector require knowledge in C++. So ideally I'd like to learn that language. I'd also like to learn how to make iOS apps. Could someone kindly show me where to begin? Thanks!

Submitted February 29, 2016 at 06:18PM by everstriving0
via reddit http://ift.tt/21xuI5I

How to sum first N elements of sequence using two loops? via /r/learnprogramming


How to sum first N elements of sequence using two loops?

My assignment is to sum the first N elements of a sequence ,following the instruction ELEMENTn = DIFF + ELEMENTn-1, using two nested loops. Not looking for the answer, just looking for some guidance.

Example: if DIFF = 3, N = 5 1, 4, 7, 10, 13, 16.. SUM = 1 + 4 + 7 + 10 + 13 = 35 

Submitted February 29, 2016 at 06:23PM by jadensmithsson
via reddit http://ift.tt/1oU0I2V

Can someone help me with these bugs?? via /r/learnprogramming


Can someone help me with these bugs??

So i've been using FindBugs on some code, and I have two bugs that I cannlt wrap my head around. Here is the gist link to the code

The first bug I have is on line 6 "Field should be package protected", the field is the AccountServerFactory singleton, I unserstand that the field is vulnerable to external changes, but I can't for the life of me figure out what access modifiers will protect the field, and I have read that creating static methods can work, but if I do that any other reference to singleton becomes an error.

Second is " Incorrect lazy initialization of static field banking.primitive.core.AccountServerFactory.singleton in banking.primitive.core.AccountServerFactory.getMe() [Of Concern(17), Low confidence]" I'm really not sure what this one means, it claims to be on line 12. Is it something to do with "singleton == null"?? will the fix to the previous error help with this?

Also, I have a "scariest" bug, that says Integer is incompatible with expected argument type String in banking.primitive.core.ServerSolution.saveAccounts(), invoked on accountMap. This is in a separate file here

I'm truly stumped on these bugs and how to fix them, any help is appreciated.

Submitted February 29, 2016 at 06:12PM by celticfan008
via reddit http://ift.tt/1TiBp7m

What are some mini programs I can create with JavaScript to solidify my programming skills? via /r/learnprogramming


What are some mini programs I can create with JavaScript to solidify my programming skills?

Hey guys, I am now done with the first half of my JavaScript book. I have learned all of the basic programming concepts like Variables, Arrays, Math, Loops, If Else Statements, Functions, etc.

Before I jump into the 2nd half of the book, which covers manipulating HTML and CSS with JavaScript, I would like to create some mini programs on jsfiddle to help solidify my programming knowledge. Does anyone have any ideas or lists?

Are all these concepts universal across all languages?

Submitted February 29, 2016 at 05:52PM by Ryan_77
via reddit http://ift.tt/21xrDCQ

Completely new to coding, but would like some assistance. via /r/learnprogramming


Completely new to coding, but would like some assistance.

I've never really coded anything before but my idea is pretty basic, with a little nudge in the right direction I'm sure I can do it.

I want to make a picture viewer that changes picture when I press a certain button, preferably working in the background and not requiring focus.

for instance:

Picture 1 shows when I press "1".

Picture 2 shows when I press "2".

Picture 3 shows when I press "3".

etc etc.

Anyone have an idea how a noobie like myself can make something like this?

Submitted February 29, 2016 at 05:34PM by Ginnge
via reddit http://ift.tt/1Qhy9Fn