Pull to refresh
1039.65

Programming *

The art of creating computer programs

Show first
Period
Level of difficulty

Go Quiz

Reading time3 min
Views3.4K

In this series, we will be discussing interesting aspects and corner cases of Golang. Some questions will be obvious, and some will require a closer look even from an experienced Go developer. These question will help to deeper the understanding of the programming language, and its underlying philosophy. Without much ado, let's start with the first part.


Value assignment


What value y will have at the end of the execution?


func main() {
    var y int
    for y, z := 1, 1; y < 10; y++ {
        _ = y
        _ = z
    }
    fmt.Println(y)
}

According to the specification,

Read more →

Algorithms in Go: Matrix Spiral

Reading time5 min
Views2.7K

Most solutions to algorithmic problems can be grouped into a rather small number of patterns. When we start to solve some problem, we need to think about how we would classify them. For example, can we apply fast and slowalgorithmic pattern or do we need to use cyclic sortpattern? Some of the problems have several solutions with different patterns. In this article of series Algorithms in Go we consider an algorithmic pattern that solves an entire class of the problems related to a matrix. Let's take one of such problems and see how we can handle it.

How can we traverse a matrix in a spiral order?

Read more

Checking QEMU using PVS-Studio

Reading time14 min
Views655
image1.png

QEMU is a rather well-known application for emulation. Static analysis can help developers of complex projects such as QEMU catch errors at early stages and generally improve quality and reliability of a project. In this article, we will check the source code of the QEMU application for potential vulnerabilities and errors using the PVS-Studio static analysis tool.
Read more →

Dark code-style academy: spoil if statement

Reading time3 min
Views2.2K

image


Do you want to raise your salary? Do you want always to be in demand? Do you want to have your job as long as you want? It is absolutely real! You just need to change the way you write your code. Basically, you need to increase your job security. You have to write code which will be almost impossible to maintain for everyone except you. And in these series of articles, I will tell you how to achieve it. Welcome under the cut.

Read more →

Implementation of Linked List in PHP

Reading time3 min
Views7.9K

A linked list is a linear data structure, which contains node structure and each node contains two elements. A data part that stores the value at that node and next part that stores the link to the next node as shown in the below image:


Linked List Node

The first node also known as HEAD is usually used to traverse through the linked list. The last node (next part of the last node) points to NULL. The list can be visualized as a chain of nodes, where every node points to the next node.


Linked List

Implementation of Singly Linked List


Representation:


In PHP, singly linked list can be represented as a class and a Node as a separate class. The LinkedList class contains a reference of Node class type.


//node structure
class Node {
  public $data;
  public $next;
}

class LinkedList {
  public $head;

  //constructor to create an empty LinkedList
  public function __construct(){
    $this->head = null;
  }
};

Read more →

A new experiment: Call .NET gRPC services from the browser with gRPC-Web

Reading time3 min
Views3.5K
I’m excited to announce experimental support for gRPC-Web with .NET. gRPC-Web allows gRPC to be called from browser-based apps like JavaScript SPAs or Blazor WebAssembly apps.

gRPC-Web for .NET promises to bring many of gRPC’s great features to browser apps:

  • Strongly-typed code-generated clients
  • Compact Protobuf messages
  • Server streaming

Read more →

Top Web Development Companies To Seek In 2020 For Startups

Reading time5 min
Views2.5K
2020 is going to be a competitive year especially for business people. A large number of startups and small businesses are outsourcing their projects to the best web development agencies because of the skilled resources, outsourcing-friendly policies, high-quality work, affordable price and favorable time zones they have.

But selecting a good company can be a daunting task because we are surrounded by a pool of such companies today. Keeping this in my mind, I have shortlisted some of these companies to help you choose the best one which offers world-class web development services at affordable rates.

I have checked the diversified portfolio, their tech teams expertise, client’s feedback, reviews from sites like Goodfirms and Clutch before making this list. Moreover, I have taken references from some popular platforms viz. hackernoon, dev.to, yourstory, quora, medium and habr.

Lets' dive into my research work on this which would surely meet your business requirements.

1) Sysbee

image

Locale: Pula, Croatia
Budget array: $1,000+
Employees strength:200 -250
Clientele: Infobip, Atheneum, IKEA

Sysbee is a group of systems engineers and infrastructure architects dedicated to bringing modern DevOps culture to small and medium enterprises, with more than 15 years of experience in the field of web services and cloud hosting.

Provides top-notch web development services for a transmission and media company. The client needed IT experts to help with the organization and maintenance of their AWS infrastructure. As a result of this project, the media company saw an influx of new users and improved its market position.
Read more →

How to Make Any Process Work With Transactional NTFS: My First Step to Writing a Sandbox for Windows

Reading time6 min
Views3.8K

TransactionMaster One of the modules in the Windows kernel provides support for combining a set of file operations into an entity known as a transaction. Just like in databases, these entities are isolated and atomic. You can make some changes to the file system that won't be visible outside until you commit them. Or, as an alternative, you can always rollback everything. In any case, you act upon the group of operations as a whole. Precisely what needed to preserve consistency while installing software or updating our systems, right? If something goes wrong — the installer or even the whole system crashes — the transaction rolls back automatically.


From the very first time I saw an article about this incredible mechanism, I always wondered how the world would look like from the inside. And you know what? I just discovered a truly marvelous approach to force any process to operate within a predefined transaction, which this margin is too narrow to contain. Furthermore, most of the time, it does not even require administrative privileges.


Let's then talk about Windows internals, try out a new tool, and answer one question: what does it have to do with sandboxes?

Read more →

VVVVVV??? VVVVVV!!! :)

Reading time10 min
Views2.3K
If you're reading this text, you've either thought that something was wrong with the headline or you've seen the name of a familiar computer game. VVVVVV is an indie platformer game that has stolen the hearts of many players by its pleasant external simplicity and no less pleasant internal complexity. A few days ago, VVVVVV turned 10 years, and the author of the game — Terry Cavanagh — celebrated this holiday by publishing its source code. What mind-boggling things is it hiding? Read the answer in this article.

Рисунок 1
Read more →

Here's an Update on Flutter 1.9 Release Coupled With Dart 2.5 Programming

Reading time5 min
Views1.9K


Recently during the Google Developer Days Conference in China that was held on September 10, 2019, Flutter 1.9 was released along with the updated Dart 2.5 programming language.h

The major highlights from the conference can be summed into three major points:

  • Google has announced Dart 2.5 programming update and a new Flutter 1.9 Version upgrade.
  • Dart 2.5 will support calling C code and intelligent code completion.
  • Flutter 1.9 will support iOS 13, macOS Catalina, and new Material widgets.

In this blog, I am going to discuss the major pointers in detail for you to understand the highlights and updates in detail!

Let’s begin!

What’s in store for Dart 2.5 as a programming language?

Dart is a Google borne programming language that has been used to develop mobile, web and desktop based applications. It is an object-oriented, class defined, garbage collected language with a C-style syntax, which is used to optionally compile into JavaScript.



The latest version of Dart 2.5 comes with these major highlights:

-> Support for Calling C Code straight through Dart using Dart FFI Library:

Developers who have knowledge about low-level programming languages will be excited from this announcement. The event also saw the launch of dart:ffi library, the preview of which allows calling into C code directly from Dart and Flutter.
Read more →

Introducing PHP 7.4: Performance, Features, Deprecations

Reading time7 min
Views3.5K

PHP evolves continuously and they just released their latest PHP 7.4 update. Performance and speed keep advancing, as we have already been proved in the past PHP 7 releases. Preloading is one of the most thrilling new updates. It quickens script execution and makes code cleaner and faster due to the simplified common lines of code.


PHP is an important element in the world wide web and is used in over 79% of all websites. Well-known websites like Facebook, Wikipedia, WordPress and much more are using PHP.
We can see a double speed increase when looking at WordPress sites running PHP and comparing PHP 5 and 7. While using the latest PHP version out there — WordPress powered websites gain the most.

Read more →

Angular: The Best Building Companion for Interactive apps

Reading time5 min
Views4.2K
Do you know there were 5 million apps in 2019? Out of these millions of apps, only a few are able to perform. There are many reasons for this but a major factor is the interactivity of an app.

No matter which product you are trying to sell, customers choose the one which allows them to get involved. Interactive apps are in demand for a long time. Are you wondering how can you make an interactive app?

The first thing which comes to our mind when we talk about interactive apps is the concept of single page application. This is because SPAs are known for their capacity to interact with the user by reloading some page elements dynamically depending upon the interaction by the user.
Read more →

Replit 101: Learn to Use Replit Agent and Deploy Your First App

Level of difficultyEasy
Reading time4 min
Views4.9K

Did you know that coding tools have evolved so rapidly that they're now shaping the future of programming itself? As technology advances, platforms like Replit are leading the charge, making coding more accessible and collaborative than ever before. In this article, I'll show you what Replit is and how to use it.

Read more