2010 Replies - 65322 Views - Last Post: 17 January 2017 - 10:07 AM
#586
Re: What are you working on today?
Posted 07 October 2016 - 07:08 AM
Today is a door closed ear phones in leave me the F alone type of day. I have entirely too much work to do and really don't want to deal with people. I am going to be re-architecting an entire workflow to fit into a new system. It's proving to be harder than first imagined. The request and callback response don't fit well together as is, so trying to get it to work with the new system is not going well.
#587
Re: What are you working on today?
Posted 07 October 2016 - 07:30 AM
NeoTifa, on 06 October 2016 - 09:35 PM, said:
If you go look at my MATLAB snippets, you'll see how crazy I get with documentation.
/>
Also, some c
Also, some c
int p = 0; // number to which you wish to find primes int prev = 2; // previous prime for determining pair int pairs = 0; // number of prime pairs int sieve[MAX]; // array of numbers for sieve int i = 0; // indexing var int n = 2; // another indexing var
Why not just make that
int primeLimit = 0; int primeFloor = 2; int primePairs = 0; int sieve[MAX]; int outerIndex = 0; int innerIndex = 2;
seems self documented to me
#588
Re: What are you working on today?
Posted 07 October 2016 - 07:59 AM
Because screw you that's why. This is NeoStyle. It's the best style.
#589
Re: What are you working on today?
Posted 07 October 2016 - 08:05 AM
hmm.
That was everyone's style when we were doing programming 101. In fact, I remember this one kid used to code each and every line including the start class, end class braces or start while, end while I almost seen the code that had all sorts of comments.
You dont leave personal notes relevant to bugs?
So far whatever that I have submitted was commented in the sequence of my name, what this program suppose to do, and if there are further steps needed I would make a note of that in the comments as well.
So something like:
That was everyone's style when we were doing programming 101. In fact, I remember this one kid used to code each and every line including the start class, end class braces or start while, end while I almost seen the code that had all sorts of comments.
ArtificialSoldier, on 06 October 2016 - 11:46 PM, said:
I don't comment my code because when I come back to fix bugs I want there to still be a challenge.
You dont leave personal notes relevant to bugs?
So far whatever that I have submitted was commented in the sequence of my name, what this program suppose to do, and if there are further steps needed I would make a note of that in the comments as well.
So something like:
ASSIGNMENT: MVC CRUD
DATE: 10/6/2016
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
/*PERSONAL NOTE 1USE THE COMPONENT MODEL LIB FOR DATA ANNOTATIONS, THIS WILL ALLOW YOU TO SPECIFY THE ID IF IT IS NOT "ID" IN THE MODEL
FURTHER VALIDATIONS SUCH AS REQUIRED AND DETAILED REQUIRED FIELDS CAN ALSO BE ACCESSED WITH THIS*/
/*PERSONAL NOTE 2: MAKE SURE YOU USE JQUERY DATE PICKER INSTEAD OF DATE PICKER PROVIDED BY C# DATA ANNOTATIONS
* REASONS: C# DATA ANNOTATION DATE PICKER WILL RESET THE DATE, EVERYTIME YOU TRY TO EDIT RATHER THAN
* SHOWING YOU THE PREVIOUS DATE.
* PERSONAL NOTE 3: FOR STARTERS, ANY FRONT END VALIDATIONS AND MODIFICATIONS USE THE JQUERY AND JS
*/
/*IN DATABASE: THE DATABASE IT WILL SHOW AS "UsersDBContext" SHOULD YOU NEED TO CONNECT TO DB IN CODE FIRST.
MAKE SURE THAT YOU ARE USING .\SQLExpress TO CONNECT TO THE SERVER.*/
namespace UserMVC.Models
{
public class User
{
[Key]
public UserID {get; set;}
//[Required] ??
public UserHandle {get; set;}
#590
Re: What are you working on today?
Posted 07 October 2016 - 08:22 AM
Personally I use Source Control for annotations.
So my code is clean and self documented then whenever I do a check in I leave a comment as to what I have done, that comment plus the history of source control should be enough for any developer to see what I have done and why in my eyes.
The only time that I leave comments in code is when I have had to put a hack in, for example to increase the the transaction timeout. The comment is there just to mention why I am increasing the transaction timeout and the answer is nearly always bad database design so deletes take forever.
Also I do write notes to keep me focused but I delete them as I go, so by the time I check in a working version of the code they have been stripped out.
So my code is clean and self documented then whenever I do a check in I leave a comment as to what I have done, that comment plus the history of source control should be enough for any developer to see what I have done and why in my eyes.
The only time that I leave comments in code is when I have had to put a hack in, for example to increase the the transaction timeout. The comment is there just to mention why I am increasing the transaction timeout and the answer is nearly always bad database design so deletes take forever.
Also I do write notes to keep me focused but I delete them as I go, so by the time I check in a working version of the code they have been stripped out.
This post has been edited by maceysoftware: 07 October 2016 - 08:24 AM
#591
Re: What are you working on today?
Posted 07 October 2016 - 08:32 AM
ding ding ding
I put all my notes in Source Control. I can look at the a line and see what changeset it was committed with, and review the notes for that changeset. No reason to muddy up code with documentation that should be separate.
I only comment when something is weird. For instance, I wrote a cshtml page with Razor that was also using Javascript. To make sure a variable was cast correctly as an int when it hit the code behind, I wound up having to force java to see it as an int. Since java's vars are all generic until a type is needed, I just added 0. So you had this series of var declarations that basically ended with "var sessionIID = @session.IID + 0 //force compiler to see the session ID as an int"
I don't even remember the exact reason for that. It was like 2 years ago.
I put all my notes in Source Control. I can look at the a line and see what changeset it was committed with, and review the notes for that changeset. No reason to muddy up code with documentation that should be separate.
I only comment when something is weird. For instance, I wrote a cshtml page with Razor that was also using Javascript. To make sure a variable was cast correctly as an int when it hit the code behind, I wound up having to force java to see it as an int. Since java's vars are all generic until a type is needed, I just added 0. So you had this series of var declarations that basically ended with "var sessionIID = @session.IID + 0 //force compiler to see the session ID as an int"
I don't even remember the exact reason for that. It was like 2 years ago.
#592
Re: What are you working on today?
Posted 07 October 2016 - 08:51 AM
modi123_1, on 07 October 2016 - 10:03 AM, said:
So.. anyone evacuating the hurricane zones, or will we have a few D.I.C. boots on the ground for coverage?
My guitarist is stuck in Florida. He got married in St Petersburg on Monday, and planned down be down there until Wednesday. I asked last night and apparently they're now stranded down.
We have our CD release next Friday so I'm hoping this doesn't impact his ability to return home next week.
#593
Re: What are you working on today?
Posted 07 October 2016 - 08:59 AM
Source Control, as in the read me file on git?
#594
Re: What are you working on today?
Posted 07 October 2016 - 09:05 AM
UGH, I just want to punch a bitch... I'm sitting here trying to get 2 weeks worth of work done in a day and I have an employee who apparently doesn't understand the concept of a closed door. It's closed for a reason. That reason is because I don't want you to come in and disturb me... If you have something THAT important send me a message first. I kept my messenger open for that reason. I'm sitting here trying to figure out a way to get VB6 and .NET to play nice together with out the use of COM. It's been a real treat.
#595
Re: What are you working on today?
Posted 07 October 2016 - 09:09 AM
#596
Re: What are you working on today?
Posted 07 October 2016 - 09:22 AM
I definitely need to check that out.
#597
Re: What are you working on today?
Posted 07 October 2016 - 09:47 AM
I'm confused. Someone's using "source control" as a brand name? What asshat came up with that idea?
#598
Re: What are you working on today?
Posted 07 October 2016 - 09:58 AM
I don't know, Nite is posting some confusing crap that makes no sense again, getting us all off track.
#599
Re: What are you working on today?
Posted 07 October 2016 - 10:04 AM
So something in my guitar chain went out at practice last night. My fear is that it's the jack in my guitar - 3 cables all exhibited the same defect. Now, to be fair, two of those soaked in beer during a house show a couple weeks ago - and I had thought the third one was working, but it was also cutting out - though in a different way. It's possible that those two cables are bad and the replacement was also coincidentally also bad, but 3 is a pattern. I couldn't get any sound to come out of my guitar, but using the third cable I could get sound from another guitar.
So Saturday I'm gonna open it up and see what's going on.
I'm bummed. But I have a backup bass I can use in the meantime, at least.
Tomorrow MCRNR is recording a new song, so I'm excited for that, too!
So Saturday I'm gonna open it up and see what's going on.
Tomorrow MCRNR is recording a new song, so I'm excited for that, too!
#600
Re: What are you working on today?
Posted 07 October 2016 - 10:17 AM
Time to break out the old multimeter!

New Topic/Question
This topic is locked





MultiQuote







|