Skip to content
<T>alreg.com

<T>alreg.com

Code and more (code)

×

<T>alreg.com

  • Home
  • About me

Category: Programming

Getting the object type in a case statement
Programming / Ruby
  • September 24, 2018
  • / Leave a Comment on Getting the object type in a case statement
  • 1 min
  • 4 years

Getting the object type in a case statement

If you have a case statement and you need to determinate the type, you can’t use something like this: If you’ll run irb and try it with ==, it will work, but not in a […]

Read More
Print in python
Programming / Python
  • June 7, 2017
  • / Leave a Comment on Print in python
  • 1 min
  • 5 years

Print in python

Every python programmer knows that basic print function:print(1) will print 1, print(“hello”) will print hello and so on. Here are a few tricks:To print a formatted string, you can use the string.format method, e.g”hello {}”.format(“world”) […]

Read More
C++ copy constructor and elision
C++ / Programming
  • March 15, 2016
  • / Leave a Comment on C++ copy constructor and elision
  • 1 min
  • 6 years

C++ copy constructor and elision

Lets say we have a file class object with a file buffer, like so: This is not an uncommon pattern. Now, what do we need to do, if somewhere we’ve created a function like this? […]

Read More
The C++ pointer
C++ / Programming
  • March 8, 2015
  • / Leave a Comment on The C++ pointer
  • 1 min
  • 7 years

The C++ pointer

So, this is an interesting topic. Again, about craftsmanship. While most c++ if not all using them, it seems that some basic knowledge is lacking; This time, I’ll touche some basic facts: the const pointer. […]

Read More

Posts navigation

Previous 1 2 3
C++ 20 modules -short intro
C++
C++ 20 modules -short intro

Latest Posts

C++ 20 modules -short intro
C++ 20 modules -short intro
July 5, 2021
Transferring your projects to module go
Transferring your projects to module go
March 23, 2021
Custom buttons with Android
Custom buttons with Android
December 25, 2020
Templates: specialization
Templates: specialization
December 14, 2020

Categories

  • Android
  • Ansible
  • Bash
  • C#
  • C++
  • Cloud
  • Database
  • DevOps
  • Express
  • GCP
  • Go
  • Java
  • JavaScript
  • MERN
  • MongoDB
  • Network
  • NodeJS
  • Programming
  • Python
  • Ruby
  • Rust
  • Tips
C++ 20 modules -short intro
Transferring your projects to module go
Custom buttons with Android
Templates: specialization
Rust Regular expressions
Working with Go plugins
C# anonymous class

<T>alreg.com

Proudly powered by WordPress | Theme : New Blog a free WordPress theme : by : Postmagthemes