• Breaking News

    Thursday, January 30, 2020

    How to handle proprietary code on a repository? Ask Programming

    How to handle proprietary code on a repository? Ask Programming


    How to handle proprietary code on a repository?

    Posted: 30 Jan 2020 07:15 AM PST

    Hello,

    I'm a Ph.D. candidate developing a relevant computational library in my research field. It has been developed for almost 3 years and it is currently the state of the art regarding performance.

    From day one I designed this library so that, at some point, I could release its source code under some free software license and contribute to society. However, I had to accept a scholarship from this big company that paid my studies for 12 months. Long story short, this company made me sign a contract forbidding me to public release any piece of code developed during the scholarship time range.

    As I said, the code I produced nowadays is quite relevant to the field community and many techniques I developed in recent months (not under that scholarship domain anymore) could be very useful. I'm working on an article that describes them but I feel that releasing the source code would have much more value. However, I have about 70 commits created during those 12 months in the git repository. I know that some of those are related to things that do not exist on the current source code but some still do. I would like to evaluate which parts of the code are still there so I can remove them.

    The codebase is too big for just comparing the git diff between the last commit from that era with the most recent commit. At least using the terminal interface.

    This is my first rodeo on dealing with this situation and I'm a bit scared to overlook something and having legal problems in the future. Could anyone suggest tools or some methodology that can help me with this matter of identifying and removing this proprietary code?

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

    Why do people still hate PHP?

    Posted: 30 Jan 2020 09:54 PM PST

    PHP 7 has great, boilerplate free OOP support while retaining true ease of use and flair.

    It feels like a slightly cleaner typescript which people gush over.

    It can't only be history, can it?

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

    Multi-Platform question

    Posted: 30 Jan 2020 09:07 PM PST

    Hey all! I could really use Reddit's help on where to start on creating a cross platform (IOS, Android, Windows, Mac) simple (for now) database tracking program. All it'll do is receive typed input data from the customer and display it various ways to them. If I had to guess, target audience is around 10K.

    I'm familiar with programming, but that's about it. I plan on teaching myself whichever language seems like the best fit. I can do simple Excel VBA programming.

    Some needs:

    1) Be able to integrate payment/password options. I'd like to be able to track who bought the item as well as password protect it with a unique identifier for the buyer with periodic checks (am guessing some type of server side solution will need to be integrated). I'd like to avoid someone paying for the program then sending it to their buddies. That part might be best farmed off to a CRM company?

    2) Cross platform. Windows, IOS, Android, Mac. From what I can gather, programs like Visual Studio would accomplish this up to about 90%, then the rest of the code has to be added for each platform.

    Additional thoughts:

    C++ (with Qt) or Java (with JavaFX) seems to be the way to go from browing some forums, but I couldn't locate much information on how to secure it from people just removing the protection and forwarding it along.

    I'm not particularly interested in building a server side product, just a stand alone .exe/.app for Windows/Mac as I think that's only only way to encrypt/hide the source code. IOS App store/Google Play I'm not sure about in regards to protecting the source.

    I'd appreciate any help/insights/questions/answers that anybody with experience can give.

    Thanks!

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

    When is Haskell the right tool in a business setting?

    Posted: 30 Jan 2020 03:59 PM PST

    Functional programming is great for developing your problem solving skills but is it a serious language?

    Can anyone give examples where they had a business case for using a functional programming language for a work project?

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

    Are there any alternatives to LeetCode?

    Posted: 30 Jan 2020 06:23 AM PST

    I recently tried out LeetCode, and after about 10 minutes, I'm just absolutely frustrated. I know absolutely nothing about these problems. I even read some tutorials on these questions and don't understand what's going on. I've spent 2 years learning languages, the syntax, and the structure, and I don't understand how to do simple things compile two-sums or reverse integers.

    Is there anything (preferably free) that goes more in-depth on how these types of questions operate?

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

    Can I trust an Indian freelancer with my LinkedIn credentials to send my CV to 2000 recruiters I'm connected to, manually with my CV attached?

    Posted: 30 Jan 2020 01:04 PM PST

    Can I trust an Indian guy with my LinkedIn credentials to send my CV to 2000 recruiters I'm connected to, manually with my CV attached?

    I'd like to automatically send this message with my CV attached:

    Hi! Can you check if there's any DevOps, SRE or any similar roles available that would be open to hiring remote DevOps Engineers?

    Or would there be any way to automate this?

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

    JAVA Second opinions Hibernate vs. myBatis

    Posted: 30 Jan 2020 07:33 AM PST

    So we are starting this new project, micro(mini)service application on Java, has to work over MSSql, Oracle and Postgres DBs (because reasons). Eureka, docker, Spring boot, Feign client, Lombok, all the nice things, except one. Because someone decided that we have to use myBatis over Hibernate (spring-data-jpa actually) we are now working on making this work with myBatis.
    So, this was originally to be a AITA post, but I think local crowd might put forward more relevant ideas. I am firmly in spring-data-jpa camp, but there is this PM (who, until recently, did not know what JPA actually is, and I do not think he actually knows now) who is unwilling to even discuss this.
    I honestly can't see any good reason to use myBatis, can you, good people of reddit tell me some? Please, because it really pisses me off, not only because it was made behind closed doors by people who did never actually worked with either, and I am wondering if I am just not seeing something.

    Edit: some clarifications
    I am a lowly dev, but also, somehow, most senior dev on the team - I am not sure how but I seem to have transitioned from person who mostly asks questions to person who mostly answers questions. I suspect I am a senior dev now, is this how it feels?
    I looked into myBatis, it is basically a tiny bit of abstraction over basic JDBC access, with SQLs dumped into xml files (ok, there is more to it, but it only gets worse as far as I can tell).
    The main arguments are:
    - it is more difficult to to find devs who know hibernate (over myBatis, suuure)
    - hibernate is more difficult to maintain (on large data models, maybe, but we are doing microservices, right?) - plain SQL makes queries easier to debug (maybe, if you don't know what you are doing and can't turn on logging)
    - there is bad experience with hibernate in his company (I have LOADS of reasons to doubt competency of people in this company, but there is another story there)
    I can understand where these come from and I also know why they are BS
    I have a window of opportunity to leave the company in three months (basically a year contract with indefinite extension after), I am already looking into some other opportunities (hey, trial period works both ways).

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

    Doubt between Back-end and Front-end

    Posted: 30 Jan 2020 11:13 AM PST

    So, I recently started my way into programming, and after reading somethings about all the possible areas to follow, I decided to start with The Odin Project, more specifically the fullstack JavaScript program.

    After setting the whole enviroment, and spending some hours on it, I got to the HTML 5 and CSS basics topics. After doing the freecodeacademy HTML basics that they ask for, I realized that I really don't see myself building websites, and taking care of the whole design part.

    When I was doing research about where to start, I stumbled upon the Helsinki Java course, and with Automate the Boring Stuff with Python. After some reading about the back-end, I found these way more interesting then the web development area.

    As someone new, what are the jobs opportunities in the back-end ? How hard is it to become a back-end programmer ?

    And about the web development, what can I do in the front-end that doesn't involve building and design how a website looks ?

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

    Programming Job Titles - Am I being too Nuanced?

    Posted: 30 Jan 2020 11:07 AM PST

    I have been in my current role for little over two years, and while it's been a great experience to cut my teeth in the profession and gain valuable skills (and friends) I feel the time is right to move on. But move onto what, I ask...

    Most of my time in my current role my title was 'Application Solutions Consultant', which staying true to most job titles in the business, is pretty meaningless. It has now been changed to 'Software Developer' (not that I've done much software development lately, again staying true to the business not using people for what they were hired for!), but looking at other roles there's a vast range of titles. I thought I'd source knowledge from the community as whether I'm reading too much into them!

    • Software Developer - Writes code, more towards Java, C# and perhaps JavaScript. Development that's mainly backend systems.

    • Web Developer - Writes (browser based) frontend code, using JavaScript, HTML, CSS and touches on the backend with PHP, Ruby, JavaScript etc.

    • Web Designer - Makes the (browser based) front end look nice, not really anything functional.

    • RPA/Automation Developer - Very much back end coding, creating robotics and automation with both higher and lower level languages: Java, C#, C, C++, maybe even touching powershell.

    • Fullstack Developer - the full kit and kaboodle. Databases with SQL and NoSQL, both backend and frontend with their various languages. Even touching on architecture and UI/UX design.

    I take term 'engineer' to be interchangeable with 'developer' in role titles, which may be a misconception. There are also, language/framework specific roles which are too numerous to mention here.

    My personal areas of interest include frontend design (UI/UX), web-based applications (not websites, but full applications - I never know if that's a distinction that needs to be made), working with databases (in the context of an application), and developing the server side structure/logic.

    So, one simple question: Am I reading too much into what an exact job title is? And why? (that's two questions I know, but I did count from 0...)

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

    Cant seem to add a second find and replace. Google sheet script.

    Posted: 30 Jan 2020 06:52 AM PST

    I'm having difficulties making words auto replace in my google sheet. I have the following script(which works) to replace the number "1" with "Ontario". Where i am having difficulty is also getting it to replace "2" with "Alberta". How do I add this to the existing code below? Thanks in advance!

    function replace(){

    var sss=SpreadsheetApp.getActiveSpreadsheet();

    var ss=sss.getActiveSheet();

    var s=ss.getRange("B:B");

    var vlst=s.getValues();

    var i,j,a,find,repl;

    find="1";

    repl="Ontario";

    for (i in vlst) {

    for (j in vlst[i]) {

    a=vlst[i][j];

    if (a>=find) vlst[i][j]=repl;

    }

    s.setValues(vlst);

    }

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

    While loop menus in java

    Posted: 30 Jan 2020 10:17 AM PST

    We are making a bank account management program in our java class. So we need 3 menus, that each access each other. So the first menu goes to the second and the second to third. And you should be able to go outside on the menu to the "outer" one. My first thought was while loops. But the code gets a bit long and doesn't look clean. Is there any other way to do this?

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

    What is the minimum IQ to be a programmer?

    Posted: 30 Jan 2020 06:49 PM PST

    [HTML JS] How to properly prevent the page from refreshing when you hit the Submit button?

    Posted: 30 Jan 2020 09:48 AM PST

    Hello!

    I am making a "form". What I want it to do:

    1. have "input type" fields so I can manually read their "value" on "Submit"
    2. utilize the "input type" restrictions so that the user has feedback if he messes something up.

    I don't care about get and post, and would rather not even have them. I only need the input type popups that will tell the user if he wrote letters instead of numbers and if the length is too large or small. I intend to read the values directly from the elements.

    But from what I have seen, you can only get the popups if you:

    a) use a form
    b) have a submit button

    Now, the default form behaviour is to refresh the page (or rather, switch the page if you have "action", and then evaluate the post and get values. I definitely don't want that.


    The best solution I could find is: writing the following into the form element

     onsubmit="return false" 

    I have no idea what it does, and why it works, and I couldn't find any good info on the mozilla website. I am afraid that it might be just a hack, and not a legit solution, so I want your input on this. I also don't know which other unwanted behaviours come with having forms and submit buttons.


    If I had to do without forms, I would have to evaluate the values when I press the button, and then change the color of the element that is wrong, and then later change it back, and that might be slightly more difficult than having default behaviour that warns the user.

    Please educate me and tell me what to do.

    Tnx!

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

    Probably a dumb question

    Posted: 30 Jan 2020 09:07 AM PST

    Hi,
    I need someone to point me in right direction. I am currently building a drag and drop builder and I want to add the feature of publishing page to a custom domain. For example user creates the page and then publish it to his/her domain. User simply has to add CNAME record in his/her domain manager and it'll forward it to my domain.
    Now, I am stuck at how to manage this. i.e when the request lands on my page I present it with the relevant page for the domain.
    Not looking for a complete solution, just some direction.

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

    Can I Create An Organization Chart With Code?

    Posted: 30 Jan 2020 09:06 AM PST

    Hey sub,

    So I was just accosted at work with one of those 'Do you know how to ____" sort of lines and got voluntold to do something extra for the department. My background is in business but I have a working knowledge of HTML/CSS. So, now I'm running to you for help.

    I have been asked to create an organization chart with clickable links to other pages with HTML. I'm not sure if HTML is the best language for this. I thought maybe something like a table would be fine but an organization chart that you can put on a webpage and make functional seems a lot more complicated. Basically, they want me to list people by section and then make their names clickable; those links would take you to a page that could list their supervisor, what team they are on, their team members, etc. Basic information that will make communication easier.

    They basically want this is a website format and I'm not sure if I'll have a database or anything really. They just wanted coded in somehow. What is the best way to accomplish this task? I'm not good with other languages.

    My future performance review thanks you for this advice. :-/


    Edit: I don't know anything about Google Charts but I found this as a resource.

    https://developers.google.com/chart/interactive/docs/gallery/orgchart

    Is this a feasible option of some kind? I can then figure out how to make each name linkable and create bio pages for each person listed. Although, it's a big company. I'm not sure how I'd fit this all one page.


    Edit 2

    Random dart at the wall. Image mapping is old, old, old but might do what they ask. I can make the chart in photoshop and make map each image as a link to head to a new page. Thinking about this.


    submitted by /u/Rebel-500
    [link] [comments]

    How can I control, from my own computer, what my app displays on the end user's screen, everyday?

    Posted: 30 Jan 2020 08:06 AM PST

    I'm sorry for being so dense, I just never have received a straight answer to this question.

    My app (written in swift and in java) has a blank screen, with one quote in the middle of the screen. That's it. I want to know how I can change the quote (as it appears on my user's screen) to anything I wish it to be from my own computer without updating the app. Remotely

    I'm sorry again for being so dense; in case you could simply tell me what I should look into to have this^ happen, I'm sure I can see tutorials and documentations and get by myself.

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

    Is possible to have an app communicate with my private twitter account?

    Posted: 30 Jan 2020 07:39 AM PST

    I am a beginner, and in my very limited knowledge, I wish the setup to be such:

    I use twitter's api to allow the app to communicate with my private twitter account; and every time I post a new image, the app deletes the previous image and begins displaying the new image until I post another.

    To be clear, I wish the app to only display a single image on the screen (the one I have posted onto my twitter feed) and not a link to my twitter account.

    My questions are:

    1. Is this possible?
    2. Would you say such a set up is too difficult for a beginner?
    3. What concepts should I read up on to achieve this goal? (eg. URLSession?)

    I'm just looking for a nudge in the correct direction; I wish to do the coding myself but just don't know where to start.

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

    I have the opportunity to save time coding by writing code in such a way that it would fail in the year 2100. Should I go for it?

    Posted: 30 Jan 2020 06:47 AM PST

    It would be weird if this code was still being used by that time.

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

    Simple Access Calculator

    Posted: 30 Jan 2020 12:37 AM PST

    (For starters, I'm dumb as fuck; I was supposed to use Visual Studio, not Microsoft Access)

    I really need some help making a calculator for an assignment

    https://imgur.com/kHrwsfW

    For starters, I know that when coding forms in Access/C#, you can click the button itself and it will paste a code like "btnCtoF_Click(object sender, EventArgs e)

    How do I "do" that?

    Should I be using a specific project template for this/ preferred language, or is Console App(.NET Core) sufficient?

    I really wasn't making this post hoping someone would do my homework for my, but I'd be lying if I said I don't need (a lot of) help.

    submitted by /u/ll-Justin-ll
    [link] [comments]

    IDE that supports opening code files in separate windows?

    Posted: 30 Jan 2020 02:24 AM PST

    I have both at work and at home a lot of monitor area in use and would like to take advantage of it by opening multiple windows with different code files.

    I have used Visual Studio so far, but I kind of dislike the idea of tiling inside of one window. I mean yea it might be useful if I just need exactly 4 files open, but when I need 5 or 7 or some non-conventional number like that, I have to rearrange the tiling-setup.

    In a perfect world I would like to just open like multiple minimalistic Notepad windows that would contain separate pieces of code, and they would have syntax highlighting and Intellisense.

    O yea I'm mostly using C and C++.

    Thank you in advance! I hope the question is not too trivial to Google and hence triggers you. I just couldn't find anything with Google.. (I might suck at Googling though.)

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

    No comments:

    Post a Comment