How are you people in Microsoft ecosystem, and not using NuGet pacakges? Is it some kind of April Fools joke? It's been probably one of the biggest productivity improvements in the last decade. We ended up migrating all our internal libraries to NuGet as well, and integrated the process into our CI pipeline. Learn how to use the tool, before complaining about it.
BinaryReason
Posts
-
NuGET Packagies -
Need a word -
The potato paradoxWEIGHT_OF_POTATOES = 100 lbs
WEIGHT_OF_WATER / WEIGHT_OF_POTATOES = 0.99
WEIGHT_OF_WATER = WEIGHT_OF_POTATOES * 0.99WEIGHT_OF_WATER = 99 lbs;
(WEIGHT_OF_WATER - weight_to_evaporate) / (WEIGHT_OF_POTATOES - weight_to_evaporate) = 0.98
(99 - weight_to_evaporate) / (100 - weight_to_evaporate) = 0.98
weight_to_evaporate = 50 lbs;So the final answer is WEIGHT_OF_POTATOES - weight_to_evaporate = 100lbs - 50lbs = 50lbs
-
IT hardware auditWe used a dedicated instance of an issue tracker (Redmine) for that. Each hardware item was treated like a ticket, which was nice, because you could have history associated with it. All it needed was adding some custom fields for serial number, part number, date of calibration, who checked it out etc. And a third party plug in to enable periodic notifications about due maintenance.
-
.Net LoggingMeh. I'm getting paid for solving problems using software. Logging is a problem that's been solved numerous times already, and there's a multitude of amazing frameworks to choose from. Spend a few minutes reading (and understanding) the documentation, instead of wasting time trying to write another one from scratch. Not only will you end up with a better solution, it will be cheaper as well.
-
.Net LoggingYou're doing something wrong. With NLog, all you need to do is include a nlog.config file in your project, and then to log you simply do the following:
static Logger _logger = LogManager.GetCurrentClassLogger();
_logger.Log(LogLevel.Info, "Your message");
"There are only 10 types of people in the world - those who know binary and those who don't."
-
.Net LoggingAre you seriously suggesting re-inventing the wheel?
"There are only 10 types of people in the world - those who know binary and those who don't."
-
Have you ever come up with a programming idea so bizarre...Matlab's simulink does something like this: Simulink - Simulation and Model-Based Design[^] Also NI's Labview: LabVIEW System Design Software - National Instruments[^]
"There are only 10 types of people in the world - those who know binary and those who don't."
-
Are You Smarter Than A Sixth Grader (Taking Seventh Grade Math)?At each point you can move either right or up. The setup makes the step sizes irrelevant to the problem - they will always add to 28 (14 horizontal + 14 vertical), (1 + 2 + 3 + 4 + 5 + 6 + 7). That means we will reach (14,14) from (0,0) in exactly 7 steps. At each of the 7 steps you can either move right or up, so you have two choices at every step node. The answer then becomes: 2^7 = 128 possible paths. If you were to visualize it, you would simply draw a complete grid between (0,0) and (14,14)
"There are only 10 types of people in the world - those who know binary and those who don't."
-
Kindle, E-reader, Tablet, which one?I'm going to save you a lot of money right here. DO NOT BUY KINDLE TO READ PDFs!!! People that recommend that have either never tried reading PDFs on their Kindle, or simply have no clue what they're talking about. Sure Kindle is capable of displaying PDF's, but if we're talking technical/engineering books with code/images, forget about being able to read them on that aspect ratio. The only way to do it is by using landscape mode, which forces you to continuously scroll through content (and the refresh rates are abysmal). Kindle fire has the same aspect issue, although you'll be able to scroll easier. Google's Nexus 7 may be slightly better for that, because of a higher resolution, but you still won't be able to comfortably read a PDF page in a portrait mode. I was looking for the same thing as you. I wanted to be able to read PDF engineering books on a tablet. Currently iPad seems like the only device that can do that satisfactorily. The price is way too steep for what I would use it for however (I also hate anything made by Apple). As it is right now, I use my Samsung Netbook to read PDFs on a couch. But I keep a close eye on Microsoft's Surface this fall, and if the price is right I'll definitely but it.
"There are only 10 types of people in the world - those who know binary and those who don't."
-
Subversion is a mess : A Rant in E MinorI'm in the same boat. I've been using VSS for over a decade. In fact the company is still using the 6.0 version. We've never had any issues with it. EDIT: Just had a look at Mercurial, and will definitely give it a look. Local branches are just what I was looking for.
"There are only 10 types of people in the world - those who know binary and those who don't."
-
Why the world hates Hungarian notation?Back in my embedded C and MFC days I used to be big on hungarian notation. No more. These days I am working mostly with C# and stay away from prefixes as much as possible for a few reasons. 1. Readability As programmers we spend most of our time reading code not writing it. What's easier to read: sAccountNumber = CreateAccountNumber(nId, sLastName, wUniqueId); or accountNumber = CreateAccountNumber(id, lastName, uniqueId); 2. Maintenance Let's say I no longer want to use a string to store my account number. I want to encapsulate it inside a class. If you used accountNumber variable to begin with, you don't need to worry about renaming it. It's still just an accountNumber With modern compiler GUIs you really don't need to encode the variable type in it's name. You can hover with your mouse over it, and find out immediately whether it's an int or a string, or some other user defined type. In fact, you should try to avoid thinking about storage types as much as possible, and program at a higher level of abstraction. Only when you get to the low level code, take care of the types. I highly recommend Robert C. Martin's "Clean Code"[^], particularly Chapter 2: Meaningful Names apply to this discussion.
"There are only 10 types of people in the world - those who know binary and those who don't."