HNHacker News
TopNewBestAskShowJobs

tegeek

1,089 karma · joined September 11, 2012

A software developer living in Stockholm. Can be reached via tgeek at msn.com
submissionscomments
tegeek··on Bottom Type in F#
One of the remarkable property of ML languages is algebraic data types and then type systems. Look here

type Bottom = private Bottom of Bottom

Modeling any kind of data is intuitive and simple. This is why ML languages (F#, oCamel etc.) shines in industries where you've complex data like Finance. Reading any F# code is like reading a novel. It starts with modeling of data and small functions. Then these small functions and data evolves into bigger features. File by file you keep moving upwards. For example if you are writing a Json parser in F#, you start with Modeling Json data first. And here it is

type JsonValue = | String of string | Number of decimal | Float of float | Record of properties:(string * JsonValue)[] | Array of elements:JsonValue[] | Boolean of bool | Null

Then everything starts from here.

tegeek··on Why Karachi Floods
MQM and coalition was brought in power in 1983. Since then PPP has no mandate, they have no power to run the city. There are no funds available to any PPP representative in Karachi. All development or non-development projects run by the City administration. It is always the winning parties who decide about city development. How come a party which doesn't have any significant representation in city administration for 40 years is responsible for its development??? Karachi's city administration has been receiving one of the largest funds than any other city in Pakistan.
tegeek··on Why Karachi Floods
Since early 1980s, Karachi city is not under PPP govt. So it really doesn't matter how corrupt Pakistan Peoples Party is, Karachi has not been voting for them for nearly 40 years now. It is always MQM with some coalition who runs Karachi. Right now PPP has only 3 NA seats from Karachi.
tegeek··on Rust Is Surprisingly Good as a Server Language
I agree that whenever I've to "adjust" something in HTML, CSS, its always a struggle with multiple tries and write-run-write-run cycle. But again, this has nothing to do with how you design and write code in a static language.
tegeek··on Rust Is Surprisingly Good as a Server Language
That's spot on. I mostly work with C#, F# in a day to day job and I build my code only a few times. This is also true when I work with Java, Angular and TypeScript. When I pick a new feature to implement I design that on paper with pencil and then mostly translate that to code. Mostly I can code for hours without compiling since this is where Typed Languages have strength.
tegeek··on Why Is the Human Brain So Efficient? (2018)
Comparing Human Brain with a CPU is misconception. In the past when we didn't have digital computers we used to compare Brain with other machines. And now with a CPU. A Brain from a primitive neuron to higher level is not comparable to any machine at all including the CPU.
tegeek··on Ask HN: How do you continuously monitor web logs for hack attempts?
There is a product called Unomaly [1] which does exactly what you wrote.

1. https://unomaly.com/

tegeek··on How Sweden is building the world’s second-longest road tunnel
That is not entirely true. You are implying that entire population who lives on South side don't travel to Arlanda airport and in the same way, people on north side don't go to Karolinska Huddinge which is situated on South side.

This huge project is a "bypass" and it'll work as any other bypass in other cities around the world. Which means any kind of traffic moving from North to South and vice versa, will bypass entire Stockholm, and right now I see huge amount of traffic every day on this route.

tegeek··on How Sweden is building the world’s second-longest road tunnel
Yet another criticism is that the highway doesn't really solve the problem, because there's actually very little existing traffic that goes between the points it will connect.

The route between Kista and Huddinge is perhaps one of worst traffic route in entire Country. This is because there is HUGE traffic almost 8-9 hours a day on this route. I drive this route twice a month and its horrible. So I don't know who told you that there is very little existing traffic here.

tegeek··on SoftBank Agrees to Buy Boston Dynamics From Alphabet
I doubt that the billion's dollars business decisions are taken because of the programming models of the products.
tegeek··on In Manufacturing and Retail, Robot Labor is Cheaper Than Slave Labor Would Be
There is a really good short novel Manna [1] that explore two models of Post robotic world.

1. http://marshallbrain.com/manna1.htm

tegeek··on Passport Index 2016
Incidentally the Germanic nations (German, Sweden, Finland, Denmark, Switzerland etc) always ranks in top 5 in almost every ranking of this kind.
tegeek··on Ask HN: What's the best tool you used to use that doesn't exist anymore?
I loved the Macromedia Fireworks.
tegeek··on JavaScript libraries should be written in TypeScript
TypeScript is ES6 with types, so it is not a different language at all.
tegeek··on Do you need to know math for doing great science?
Mathematics is a fundamental tool to convey your imaginations to others in a way they can test it for approval or disapproval. IMO if you take away mathematics from Science, the only thing left are novel ideas (which you can also find in sci-fi novels).

Of course a person can have deep imaginations and solutions to the great science problems, but if she can't express the ideas then how to prove them right or wrong??

tegeek··on Why We Use OCaml
If you've a look at F#, you get all of the things you said plus OCamel syntax (without functors etc.).
tegeek··on The Joyful, Illiterate Kindergartners of Finland
I live in Stockholm, Sweden and more or less day care system is same here. My son is 4 years old & he started day care when he was 1 and half. His life is so rich in terms of social activities, learning etc. We absolutely love this system. The money we pay is $130/month and thats the highest a family pay if both parents are working.
tegeek··on Ionide – F# Dev Tools for the Atom Editor
What a coincidence? I installed Win 10 through bootcamp just to practice & develope a hobby project in F#. I logged in to Win 10, installed VStudio 2015, F# tools etc. & then checked HN. And found this. So Now I just shut down Win and came back to Mac to Install Atom and then Ionide.
tegeek··on Why Japanese Toilets Are Failing in America (2013)
If anyone wants to give it a try, here it is a cheaper alternate [1].

This doesn't require the electricity since it is manual but more or less play the same role like Japanese toilets (without drying facility but you can use TP after using it).

1. http://en.wikipedia.org/wiki/Bidet_shower

tegeek··on Introducing Hello
Here in Sweden we use TrueCaller [1] which is almost the same as FB Hello. It is available for Android, iOS, and WP. And pretty much cover the entire world. It will be interesting to see how TrueCaller can compete with FB Hello.

1. http://www.truecaller.com/

tegeek··on F# Survey 2015 Results
A desktop app on Windows either uses WPF or WinForms. In either case F# doesn't stop at all. In fact I would say that building WPF desktop on F# is more intuitive than C#.
tegeek··on F# Survey 2015 Results
I would also like to add that F# is functional, imperative & OOP language. If any program uses any combination of these, it is still the F# code. But I agree there has to be more taste of "F#" since it is a functional first language.
tegeek··on F# Survey 2015 Results
What do you mean pure F#?

Majority of providers in FSharp.Data [1] are idiomatic F# code (also contains imperative & a bit of C#ness to use lib outside F#)

1. http://fsharp.github.io/FSharp.Data/

tegeek··on Learn AngularJS
You are completely wrong on your assumption when you are linking AngularJS's origin to Server-Side Java.

Most of concepts in AngularJS directly came from Silverlight and WPF. Before even Angular came into existence, I used to use the same pattern for building Windows/Browser centric client side apps on WPF/Silverlight. When AngularJS announced in 2009, it took me 30 minutes to get my head around everything & there has not been much changes since then.

The only thing AngularJS invented was Dependency Injection for JS.

tegeek··on Redis Conference 2015 Recap
Thank you for writing this tip. Hopefully I can cut some of my hobby projects & finally complete one thing even with less features.
tegeek··on Angular 2: Built on TypeScript
Looking at the example source code & having experience of AngularJs & TS, I would say this is a huge development in term of enterprise adoption.

Statically typed, annotations, built-in dependency injection, comprehensive test support (easy to write testable code), declarative UIs, 100s of already available libraries & above all support from Google and Microsoft. I can say this with confidence that even with a complete rewrite & not backward compatible, AngularJS 2 with TS is going to be a huge success for everyone.

And sooner or later, all other frameworks will adopt ECMA Script 6 because of standardisation of so many things (modules, classes etc.)

I would also like to add that this is a very exciting time for JavaScript developers because there are so many things happening & companies of all sizes will keep investing good amount of money moderating their JS code bases.

tegeek··on Side projects
I've been in this situation for as long as I can think of. But lately I've found something which is working for the time being.

I don't use my car to commute to office. It takes 25 minutes via public transport (one way), so I use that time and build all the complex logic/data structure/algos in that time for my hobby project.

Cooking doesn't break my mental loop. So I keep thinking & solving things regarding my hobby project while cooking. (I also cook for my office lunch almost daily)

Most of the labour work (putting up CRUD forms or repeatable things, some graphics work etc) I do mostly on weekends when I don't have to use much brain but just keep moving things which are important.

Things are much better now than before. Even still my hobby project is slow moving but I can see it moving further.

tegeek··on The Elm Architecture
Interesting. So basically Reactive Haskell right inside the NodeJS.

Did you able to run any performance test yet? I'm interested to learn more about this.

tegeek··on Show HN: Matterhorn – Your new project manager
Interesting.

So if a successful & profitable software company is about to hire you but you would decline the offer just because She is using JIRA.

Apparently this also says how hard it is to manage people rather than dealing with just code and tricking the compiler.

tegeek··on Windows 10 for Raspberry Pi 2
I personally want a trimmed down version of .NET (perhaps the new Core CLR which is just 10 MB) so I can run F#.

Mono is too heavy and have millions other dependencies I dont want to grab.

Running a modern & practical functional language on RB Pi will be extremely joyful for me.

← PreviousPage 2 of 5Next →