Skip to main content

Posts

How Strict is Golang? #GolangDev

Hello everyone, in this occasion I would like to share about the strictness of golang. what kind of strict? let see below.

Golang is the functional programming that really have concern about performance, giving limitation to prevent overuse memory is the big deal. for example, golang has a variative type of data such as int, string, boolean, float, array etc. I wonder that you are thinking about "what kind of strictness that is? its totally similar other language", YES. but golang have specification in numeric type of data such as int have int8, int16, int32, int64. golang also have uint8, uint8, uint32 and uint64 which is its really strict you know. the following number after type of data is stand for the length. Obviously you could use the largest type of data for all the variables, but you know it could overwhelming if you put int64 in "is_valid" variable right? joking :D. golang really care about performance, because each length of variable is matters for memo…
Recent posts

The Advantage of Using HTTP Default Authorization Scheme #DigitalSecurity

Hello Everyone, This day I would like to introduce you to the default header for authorization in HTTP.

HTTP auth scheme is a guide or standardization scheme for the authorization header in the HTTP protocol. this standard is using key Authorization in the header and followed by a value that usually filled by key or token. for example :

Authorization : <type> <key/token>

this standard is the solution of the key header for authorization that really random was provided by developers to build an authorization header for their application, in my experience, developers used to "token" for their key in the header that usually followed by the hash value. the random key makes developers using more time for writing code for getting header key and validating the value which is you could use the library and focus on writing the logic of your application.

Depend on Mozilla site, HTTP auth scheme divided by 4 types, such as :
Basic (see RFC 7617, base64-encoded credentials. Se…

Variadic Function vs Slice Param Function in Golang #GolangDev

Hello everyone, good to see you again. I am gonna share about a simple thing in fundamental Golang, this article inspired by a QnA in a website and I think I will tell the answer more flexible and wider in my personal tutorial, so this is about differentiation between Variadic Function and Slice Param in Function.


# Variadic Function
Variadic function is an unique code, this code is enable us to passing a infinite params in one function, we know that we need to put parameters in function we need to put the space in there, for example : function(param1 int, param2 string), golang absolutely doing that thing too, seems like the other languages, but Variadic function is a something new, you could put many value in function and sapparated by comma, you maybe thing about passing array in parameters but this is something different, you dont need to put parenteses when you call the function, it just like you put regular parameters but have an infinite numbers.  for example :


we could see tha…

Create MVC Pattern Using Echo Framework #GolangDev

Hi, Back again. today I am gonna share about Go Language, yes it is a new programming language that really fast growing this day, so many startup using it, especially in indonesia, there is a Gojek, Dana, Tiket and many more. Go Lang is a programming language found by google engineer, this language is a multi paradigm language, you could use it as functional programming or treat it like an OOP bases.

Echo is an framework that use Golang as a main language, to use a fast and reliable backend/web apps, as you know Golang has a really fast performance than other language, one of the reason is because its compiled not interpreted, so the Echo claim that its 10x faster. insane right ? Actually I didn't test the performance yet, but yeah for newbie like me in golang its not the main thing that you must understand, so the thing that we should know is how we actually can do with Golang. 
I am person with MVC bases, before jump to golang, I have experience with Laravel, you know its typica…

Making a Segue Between Storyboard Part II #IOSDev

Hello everyone, in this tutorial i would like to continue my last tutorial about segue, if you dont have read it yet, just go to this link.

in this tutorial i would like to show you how to switch between view controller using programmatically in swift. interesting right? so here it is.
prerequisite:
* create new project
* know how to put segue by drag and drop

firstly, open last xcode project about segue in the first tutorial. and then add new viewcontroller. like bellow


connect segue from first viewcontroller to third viewcontroller by dragging first viewcontroller icon and drop it to third viewcontroller, you could use ctrl+click to drag and drop. after you drop, you will face new popup window, choose "show" like bellow 



click on the segue path link like bellow



on the right side bar, you will see some menu, choose the attribute menu. and then you can see identifier option right there. fill the identifier as you want, in this tutorial we put "seguePartII" as the n…

Image Recognition Example Using CreateML #IOSDev

Hello everyone, in this tutorial I would like to share about using CreateML Framework to recognition image. in the end of this tutorial we will achieve model from training data that can be use to be mlmodel in xcode. 
like example bellow

above picture means picture orange that we put on that view has recognise that it is an orange. so cool is'nt it?
lets go ahead.  
first, create and playground project and then choose macOS platform, like bellow.
note : we need to choose macOS project because, the framework that we use is only available on macOS platform. 
after that, put the code bellow in playground editor.  and then run it
when you run the code, MLUI will appear beside your editor, we use the MLUI to put our data training. so in the next step, you need to prepare the training data. in this tutorial I have collecting training data about some fruits, apple and orange. you could download it here
drag the training folder to MLUI until the image processing has done.

after process d…

How to Deploy or Debug Apple Watch Apps in Physical Device #WatchOSDev

Hello everyone, this is my first tutorial about watchOS hope you enjoy.

WatchOS is the operating system that support for apple watch, in this watchOS we could develop apps, but first thing that we must know, watch apps in 5 version and bellow are not support for independent apps, so the watch apps must develop with IOS apps in the seems time. but in WWDC 19, apple announce that WatchOS 6 will support independent apps, so the users could install apps directly from apple watch.
in this tutorial we will learn about how to create first Apple Watch Apps and deploy it in physical device, why this tutorial matter, because deploying apps in apple watch is not seems as you deploy IOS apps in IPhone or IPad, there is several unique thing that you should know. 
until this tutorial has written, I have not found anything tutorial that talking about this theme. so here it is.

first thing we must create an xcode project. and choose WatchOS like bellow

hit next, and fill the apps name as you want.


a…