Quantcast
Channel: Programming Rants
Browsing all 204 articles
Browse latest View live

Go ORM Benchmark on MemSQL

I was looking for fastest ORM in Go, and found that someone already do the benchmark: kihamo's code which based on beego's (my fork for this benchmark), the result for 5 iteration was:MemSQL 6.7.16...

View Article


State of Svelte UI Libraries

Awesome list of Sveltecomponent libraries, which is CSS Framework that have Svelte integration. Here's the comparison among them all:ComponentSvelteStrap 3.2.8SvelmaBulma...

View Article


Create Leaderboard using MongoDB and Go

So now I tried to create a leaderboard using MongoDB and Golang (since I failed to make on using CouchBase), first you need to install MongoDB using these commands:wget -qO -...

View Article

Svelte Tutorial 1: Introduction to Svelte

Svelte is a tool for building fast web applications. It's a competitor to React, Vue, Ember, Aurelia, and Angular, but it's better since it was compiled/errors checked at compile time before combined...

View Article

Svelte Tutorial 2: Reactivity

Reactivity is the ability of the system in svelte to keep DOM in sync with application state. Svelte automatically update DOM/invalidate state if there's an assignment operator. Below is explanation of...

View Article


Svelte Tutorial 3: Component Properties

Props or properties used when we want to pass data or value from one component to its children.Declaring propsTo declare props we need to use keyword 'export'. For example when we have app like...

View Article

Svelte Tutorial 4: Logic (Branch, Loop, and Async)

Svelte offer ways to express logic, which HTML doesn't. Rule of the thumb is {# to start logic block (if, each, await){: for continuation logic block (else, then, catch){/ to close logic blockIf Blocks...

View Article

Svelte Tutorial 5: Events

EventsAs we've briefly seen already, you can listen to any event on an element with the on: directive:<script>let m = { x: 0, y: 0 };function handleMousemove(event) {m.x = event.clientX;m.y =...

View Article


Svelte Tutorial 6: Bindings

BindingsAs a general rule, data flow in Svelte is top down — a parent component can set props on a child component, and a component can set attributes on an element, but not the other way around....

View Article


Svelte Tutorial 7: Lifecycle

LifecycleEvery component has a lifecycle that starts when it is created, and ends when it is destroyed. There are a handful of functions that allow you to run code at key moments during that...

View Article

Svelte Tutorial 8: Stores

StoresNot all application state belongs inside your application's component hierarchy. Sometimes, you'll have values that need to be accessed by multiple unrelated components, or by a regular...

View Article

Svelte Tutorial 9: Motion

TweenedTweened is svelte tools to help you build slick user interfaces that use animation to communicate changes. Below is example of progress bar, tweened is used to make transition smoother. Easing...

View Article

Image may be NSFW.
Clik here to view.

Tricks to be Motivated

Recently I being so much unmotivated with my work, and I think I know the reason, but anyway, these are the generic things to get things done:Buy a pen, and small notebook, seriously! Make a TODO list,...

View Article


Elixir/Erlang better than Go, really?

The microbenchmark result for spawning short-lived concurrent process:# Go 1.8.0$ go build test.go ; for k in 5 50 500 5000 50000 500000; do echo -n $k; time ./test $k > /dev/null; done5CPU: 0.00s...

View Article

Image may be NSFW.
Clik here to view.

TechEmpower Framework Benchmark Round 15

As usual, the only one matters are data updates and multiple queries.Top ranker languages are C, C++, Java, C#, Dart, Python, Go, Perl, Scala, Javascript.Top ranker language for multiple queries: Dart,...

View Article


Cross Platform Mobile App Development

There's some new alternative for near native performance out there today:Flutter Beta1 (Dart), pros: developed by Google, hot reloadcons: the Dart programming language have a bit awkward syntax,...

View Article

Image may be NSFW.
Clik here to view.

Rendering Sprite using ECS and JobSystem in Unity

Old style Unity programming, known for slow performance when number of GameObjects grows, that can be solved by managing the update call ourself. Object pooling known to be used to minimize GC overhead...

View Article


Image may be NSFW.
Clik here to view.

Hybrid ECS in Unity

Previously we tried the Pure ECS to create a Pong animation, this article will show example snippet of how to use Hybrid ECS. With hybrid ECS we can use normal game object to act as the entity. What...

View Article

Image may be NSFW.
Clik here to view.

Costajob HTTP Benchmark

Learning about Pony, a new (at least for me) programming language that designed to be elixir-python-golang like (imho), got me to this page:It's interesting to see the memory usage of those...

View Article

Svelte Tutorial 4: Logic (Branch, Loop, and Async) (English & Indonesia)

EnglishSvelte offer ways to express logic, which HTML doesn't. Rule of the thumb is {# to start logic block (if, each, await){: for continuation logic block (else, then, catch){/ to close logic blockIf...

View Article
Browsing all 204 articles
Browse latest View live