Skip to main content

Posts

Showing posts from April, 2018

Top 10 Most Popular Programming Languages in 2018

Here you will know about the most popular programming languages in 2018. Every year a survey is done among the developers and shared on stackoverflow. This year the survey was done among 100,000 developers and on the basis of that I am sharing the list of famous programming technologies. Top 10 Most Popular Programming Languages in 2018 In this list JavaScript is the most used programming language and maintaining this position from last 5 years. Being one of the fastest growing language, popularity of python is increasing day by day. This year python outranked c#, last year it outranked php. You can learn more about the survey here  https://insights.stackoverflow.com/survey/2018/ Comment down below what is your favorite programming language. Do share the article with you friends. The post Top 10 Most Popular Programming Languages in 2018 appeared first on The Crazy Programmer . from The Crazy Programmer https://www.thecrazyprogrammer.com/2018/04/most-popular-programming-lang

Adding Cross-Cutting Memory Caching to an HttpClientFactory in ASP.NET Core with Polly

Couple days ago I Added Resilience and Transient Fault handling to your .NET Core HttpClient with Polly . Polly provides a way to pre-configure instances of HttpClient which apply Polly policies to every outgoing call . That means I can say things like "Call this API and try 3 times if there's any issues before you panic," as an example. It lets me move the cross-cutting concerns - the policies - out of the business part of the code and over to a central location or module, or even configuration if I wanted. I've been upgrading my podcast of late at https://www.hanselminutes.com to ASP.NET Core 2.1 and Razor Pages with SimpleCast for the back end. Since I've removed SQL Server as my previous data store and I'm now sitting entirely on top of a third party API I want to think about how often I call this API. As a rule, there's no reason to call it any more often that a change might occur. I publish a new show every Thursday at 5pm PST, so I suppose I

Single Precision vs Double Precision

Here you will learn about Single Precision vs Double Precision. When talking about the numbers, amount of precision that can be reached using a representation technique has always been the major area of interest for the researchers. This curiosity to increase the precision and challenge the representation limits of numerical values, in computer science, lead to two major achievements – single precision and double precision. Single Precision Single precision is the 32 bit representation of numerical values in computers. It is also known as binary32. Some languages, like JAVA, C++ use float to store these kinds of numerals. Some languages (Visual Basic) refer single numerals as single. Single precision is most widely used because of its capability to represent wide range of numeral values, though it reduces the amount of precision achieved. Single precision uses 32 bit to represent a floating point number. First bit represent the sign of the number, negative or positive. Next 8 bi

15 Web Design Trends to Watch in 2018

The modern world is full of extraordinary things that influence our imagination and mood. Our soul needs a perfect atmosphere and impressive spots. To apply such things in practice, we have submitted the list of the web trends that deserve your attention. Robert frost design analysis will meet all your wishes and expectations. Image Source Web Design Trends to Watch in 2018 1. More Organic Shapes Until this year, web design, as well as mobile design, were based on the right-angled and sharp-edged shapes. However, it seems that this year will bring some significant changes in the field of web design. The recent trends will offer the absolute rounded corners. In addition, the web design of 2018 will make the real things look like the cartoonish ones. 2.   Bold Minimalism Although some of you may think that this web design trend will not attract the Internet users. Indeed, the notion of minimalism is often associated with boredom and dullness. However, in this case, bold minimalis

Difference between URI, URL and URN

Here you will learn about difference between URI, URL and URN. When it comes about accessing WebPages, data, files, audio, videos and other stuff, the foremost thing a programmer has to take care of is about URIs, URLs, and URNs. So what are they? What roles do they play on the World Wide Web i.e. Internet? And how they differ? In this tutorial we are going to find answers about these questions and understand these three terms. URI Uniform Resource Identifier or URI (by definition as per Wikipedia), is a string of character that is used to identify a resource. URI is actually used to provide an address to a resource on any system, whether over Internet or on your local machine. URI start with the protocol that should be used to access the resource which is followed by the actual address of the resource and other information or constraints parameters about the resource. URI consists of two main parts – URL and URN. URL Uniform Resource Locator (URL) is a subset of URI, which is

Adding Resilience and Transient Fault handling to your .NET Core HttpClient with Polly

Last week while upgrading my podcast site to ASP.NET Core 2.1 and .NET. Core 2.1 I moved my Http Client instances over to be created by the new HttpClientFactory . Now I have a single central place where my HttpClients are created and managed, and I can set policies as I like on each named client. It really can't be overstated how useful a resilience framework like Polly is. Take some code like this that calls a backend REST API: public class SimpleCastClient { private HttpClient _client; private ILogger<SimpleCastClient> _logger; private readonly string _apiKey; public SimpleCastClient(HttpClient client, ILogger<SimpleCastClient> logger, IConfiguration config) { _client = client; _client.BaseAddress = new Uri($"https://api.simplecast.com"); _logger = logger; _apiKey = config["SimpleCastAPIKey"]; } public async Task<List<Show>> GetShows() { var episodesUrl = new U

6 Most Difficult Programming Languages

You may faced difficulty while learning programming languages like C++, Java, PHP, etc. But those languages can’t be considered as very difficult to learn. In this article I will share some most difficult programming languages that will give you nightmares if you try learning them. These languages are also called as  esoteric programming languages .   These are not meant for development purpose and are popular among hackers and hobbyists. 6 Most Difficult Programming Languages 1. Malbolge It was created by Ben Olmstead in 1998, and considered to be one of the hardest programming language. After invention of this language, it took almost 2 years to write first program using it. Hello World program in Malbolge looks like: (=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc 2. Brainfuck It was created in 1993 by Urban Müller. As the name suggests, you will get brain fuck if you try to learn it. The languages consists of only eight commands and the pro

Difference between File System and DBMS

Here you will learn about difference between File System and DBMS in tabular form. File Management System, better known as File System is the most ancient and still the most popular way to keep your data files organised on your drives. On the other hand, when it comes to security and appropriate management of data based on constraints and other stuff that we are going to talk about, the first choice of many experts, is Database Management System (DBMS). So what are they? What are the parameters to decide the best one for your need? Let’s come to these aspects now. File Systems is the traditional way to keep your data organised in a way which is easy for physical access, whether it’s on your shelf or on the drives. Earlier people used to keep records and maintain data in registers and any alteration/retrieval to this data was difficult. When computers came, same agenda was followed for storing the data on drives. File System actually stores data in the form of isolated files which

6 Ways to Generate Random Number in Python

In this tutorial, you will see how we can generate random number in Python. Random number means we can’t predict that which number will be returned or printed. Let’s see some different ways in python to generate random number. Ways to Generate Random Number in Python 1. using random.randint() from random import randint print(randint(1,100)) We can not predict the output here. The output will be different every time we execute this program. But we can predict that it will be a number from 1 to 100. Let’s say we want a random number but it should be multiple of 5. from random import randint print(randint(1,20)*5) It will print a random number from 0 to 100, but it will be a multiple of 5. In above program random.randint(1,20) will generate a number from 1 to 20, after that we’re multiplying that generated number with 5. So that the minimum number that can be printed is 1*5 = 5 and maximum can be 20*5 = 100.   2. using random.randrange() from random import randrange print(ran

7 Reasons Why Making Your Website Mobile Responsive is Crucial in 2018

The only thing more important than having a website is making it easily accessible to everyone. In 2018, people of all generations regularly use multiple devices. Once you’ve covered the website basics , it’s time to make sure that your site functions no matter which way visitors would like to access it. The technical term for this is responsive design, meaning that your website is capable of functioning seamlessly with the formats that correspond to the display sizes of all devices. There are a fair number of sites that have not yet taken this next step, but it’s safe to say that these sites are behind the times. Read on to learn more about how taking this step can help your site remain competitive. Image Source Promotes a Greater Reach A mobile responsive website allows you to connect with more people than you would otherwise. As I mentioned earlier, most people use different devices at various points in their day. Picture the people you want to target with your website using thei

Retrogaming on original consoles in HDMI on a budget

My sons (10 and 12) and I have been enjoying Retrogaming as a hobby of late. Sure there's a lot of talk of 4k 60fps this and that, but there's amazing stories in classing video games. From The Legend of Zelda (all of them) to Ico and Shadow of the Colossus, we are enjoying playing games across every platform. Over the years we've assembled quite the collection of consoles, most purchased at thrift stores. Initially I started out as a purist, wanting to play each game on the original console unmodified. I'm not a fan of emulators for a number of reasons. I don't particularly like the idea of illegal ROM come up and I'd like to support the original game creators. Additionally, if I can support a small business by purchasing original game cartridges or CDs, I prefer to do that as well. However, the kids and I have come up with somewhat of a balance in our console selection. For example, we enjoy the Hyperkin Retron 5 in that it lets us play NES, Famicom, SNES,

Difference between SQL and NoSQL

Here you will learn about difference between sql and nosql or sql vs nosql. Both are a complete different concept, which could be better understood by the following explanation. SQL SQL or the Structured Query Language is a Database language for storing, retrieving and accessing database. SQL stores data in the form of data-tables i.e. SQL is a relational database system (RDBMS). It contains queries like commands through which we can get to access, retrieve and manipulate our data. Also Read:  Difference between DBMS and RDBMS These commands are standardized for the making the migration of projects easy from one system to the other. For instance: The SELECT command is used to select particular records from the given or designated table. It is used to select only those records which we need to perform any action on. The selected records are then stored in the result-set and any action (if required) is performed on only those records. Likewise, many more commands are available wit

Difference between Flowchart and Algorithm

Welcome back readers, today I’ll be discussing the difference between flowchart and algorithm. But before getting started, I want to discuss a bit about both the topics. Flowchart A flowchart is a diagram which represents different steps that can help in solving a problem. It is a diagram which is made step by step using different shapes and sizes of arrows which show their connection. It was first introduced by Frank Gilbert in 1921. The chart consists of some mathematical shapes like arrows, square, rhombus or diamond, hexagon, parallelogram, etc. Types of flowchart: Document flowchart Diagram flowchart System flowchart Data flowchart It is a flow of information that illustrates a solution model to a particular program. It is the pictorial form of representation of a process and algorithm is done using a step by step process. Algorithm An algorithm is a step by step process which is used in solving mathematical or sometimes computational problems. The word ‘algorithm’ ca

Easier functional and integration testing of ASP.NET Core applications

In ASP.NET 2.1 (now in preview) there's apparently a new package called Microsoft.AspNetCore.Mvc.Testing that's meant to help streamline in-memory end-to-end testing of applications that use the MVC pattern. I've been re-writing my podcast site at https://hanselminutes.com in ASP.NET Core 2.1 lately, and recently added some unit testing and automatic unit testing with code coverage . Here's a couple of basic tests. Note that these call the Razor Pages directly and call their OnGet() methods directly. This shows how ASP.NET Core is nicely factored for Unit Testing but it doesn't do a "real" HTTP GET or perform true end-to-end testing. These tests are testing if visiting URLs like /620 will automatically redirect to the correct full canonical path as they should. [Fact] public async void ShowDetailsPageIncompleteTitleUrlTest() { // FAKE HTTP GET "/620" IActionResult result = await pageModel.OnGetAsync(id:620, path:"");