ThatSoftwareDude

Musings of a .NET Developer, CTO and Tech Enthusiast

c-sharp
1
how to "get" companies from hubspot using c#

I haven't used too many CRM platforms in the past, but for sure HubSpot's features are plentiful for the small business person on the go. And if you're looking to integrate your own data with HubSpot, they also offer a free (though rate limited) RESTful API, of which I will be covering today.

. . .
Read more
how to read any kind of file in c#

If you're a data analyst or data scientist or work with data in some way, shape, or form, then at some point you've had to deal with random text files full of data that needs to be extracted. And more than likely, you end up forgetting how to do this each and every time in whichever language you use in your endeavors. So today I'm going to cover all the possible files that you may need to read into your programs in the hopes that this can be a one-stop shop for your data extraction needs.

. . .
Read more
8
how to post a tweet using c# for single user

In this post I'll be showing how to post a Tweet to Twitter using C# and no 3rd party libraries. This is a pure .NET approach, and it's more time consuming but it also gives you a much deeper understanding of how oAuth and Twitter work together behind the scenes. I'll be breaking down the entire process step by step from generating the appropriate tokens to the final signed request getting sent off. As of me writing this, Twitter's REST API is on version 1.1, so it isn't future proof, but for now it'll do the job.

. . .
Read more
working with generics in c#

In this post I will talk about another nifty feature that C# has offered for a while now, Generics. You probably won't run into Generics on a day to day basis. If you work alot with data collections however, you might find them useful at some point. I've probably personally used Generics twice on my own personal websites, and they come in extremely handy and can save alot of time and help avoid writing too much repetitive code. If you're familiar with C++, Generics are somewhat comparable to Templates in the old STL.

What are Generics?

With Generics you can postpone setting parameter types to a function or class until that function or class has been instantiated by the client. So for example, let's say that we have a function that performs a generic operation on a set of parameters being passed in.


public class SampleClass
{
    public void DoWork(int data)
    {
        // do something with the data, anything
    }
}

That's pretty straightforward. But now let's assume that we want to have the same operation run but instead of an integer, it takes in a decimal value.

. . .
Read more
working with delegates in c# for beginners

I don't normally run into delegates in my day to day coding, but at some point you will run into them and you'll want to know what they are and how they work. This has also been a popular interview question that I've received in the past, and normally one that I found difficult to answer. At the very least having a textbook definition at the ready will at least have you somewhat prepared. Good news for us, delegate are simple structures and relatively easy to use.

. . .
Read more
1
implementing amazon's product advertising api in c#

If you have an Amazon Affiliate account then at some point in your life you're probably going to be tired of managing products manually and will want a more automated approach, like I did on Laptop-Info.com.

. . .
Read more
how to watermark images in c#

As a developer, I hate using 3rd party software to accomplish things that would take a few minutes or hours of work. For example, watermarking images. At my last job one of the websites that I happened to grace my eyes upon had such a library to watermark uploaded images. One day, it stopped working and I had to figure out why. Days later, it turned out that there had been an update to that library and it required some further configuration that didn't get updated and there we were.

. . .
Read more
how to work with coordinated universal time (utc) in c#

Working with Dates in any programming language is normally a pretty straightforward task. You save a date in the database and get on your merry way, and display it whenever the need arrives. If you were looking to save a record with the current date let's say, in C# you would do something like the following:

. . .
Read more
how to calculate "time ago" in c#

You see this time format all over the internet nowadays. Posted 3 hours ago. You can see in any of a number of situations. For example, how along ago comments were posted or how long ago a blog post was published.

. . .
Read more
"sometimes you have to delete, to find your answer"
Copyright © 2018 thatsoftwaredude.com
humans.txt
TOP SCORES
Score in the top 10 and leave your Instagram handle.
Start
0
snake left
snake up
snake down
snake right