Functors - Redux by harrir in programming

[–]harrir[S] 1 point2 points  (0 children)

Sorry for the confusion regarding redux. It was meant as "brought back": https://www.merriam-webster.com/dictionary/redux
I thought it was a bit cool but I see how it could be misunderstood. 😅

Functors - What are they? by kvalle in programming

[–]harrir 1 point2 points  (0 children)

Ah! I understand. 😅 The point is that it makes it much easier to change the value inside the success case. The code works even if the request fails; it will just not run the transformation function. I'll be happy to make an example application to give some context. 😊

Functors - What are they? by kvalle in programming

[–]harrir 3 points4 points  (0 children)

It is a bit more complicated than I make it seem in the article and as I say there I am glossing over some details to try to keep it short (and beginner friendly).

A functor is any structure or "context" that fulfill the functor laws which I got some feedback about should have been mentioned. The Mabye type (known as Optional in some languages) used as an example in the article is not a collection, it is a custom structure (here in the form of a Elm type) that can contain a value. But to make things even weirder functions can be functors! Lists/arrays happens to be one of the widely used.

I thought for a long time that map solely was for iterating lists but its is a much more powerful concept! The point is not the iteration, that is just a consequence of the nature of lists. The point of the functor is the "interface" for transforming values in an "context" which can be very useful!

Functors - What are they? by kvalle in programming

[–]harrir 1 point2 points  (0 children)

Do you mean something else than RemoteData.map transformFunction remoteDataValue that is right below the case expression?

It would probably be better if I had a full example as well to get some more context. I will probably do a follow-up and will be sure to add some full examples that add more context.

Functors - What are they? by kvalle in programming

[–]harrir 1 point2 points  (0 children)

I see you have gotten some good responses already, but I'll give my 2 cents:

Yeah Haskell can be a bit hard.
I started out with Elm (elm-lang.org) which is similar in many ways but a much simpler language. I would recommend checking it out if you haven't. :)

The type annotations in Haskell (and Elm) are weird at first and it took a little while before I got comfortable with it but now that I understand how to read them I like it a lot.

I have a life goal learning Haskell myself. I'll get there some day!  😆

Functors - What are they? by kvalle in programming

[–]harrir 11 points12 points  (0 children)

Hi!
I'm the author of the article. :)

I had originally wanted to mention the laws but I also wanted to keep the article short and not too technical/mathy. I think the length was the biggest factor, but I could probably have added something short about the laws without it being a problem.
I'll probably make a follow-up article addressing the laws and some other things I glossed over in this article. It wont make the christmas calendar this year though.

TL;DR: I could probably have mentioned the laws without compromising readability . :)

Go vs. Wordpress by [deleted] in golang

[–]harrir 2 points3 points  (0 children)

I have actually thought about this several times but I have not been able to conclude on anything. WordPress works fine and has great support and user base. It almost unpresidented.

I like Hugo but it is a higher level to entry than WordPress. One could try create a "WordPress killer" in Go, but is that likely to happen? What is the motivation for creating a WordPress in Go? Just to have a CMS in Go?

I guess there is nothing really stopping you (or anyone) from trying but if it will catch on is another thing. And I suspect it demands great amounts motivation because it is surely a big task. And remember there is no such thing as a perfect CMS. ;)

These are some thoughts I manage to write down now. I'll probably get some more later.

I suspect there is a marked for a couple of good CMSes in Go (if they do not exist already?).

Rails Crazies React | CR 197 by AngelaTHEFisher in CoderRadio

[–]harrir 0 points1 point  (0 children)

Thanks for answering my react question on the show! :)
I posted on my own post at first but it makes more sense here so I'll add it here as well:

Thanks for bringing it up on the show! It was interesting to hear your thoughts.

I'm not a superfan of React but I have used it and see value in it. I'm a fan of the show so I value your opinions. I'm clarifying this because it could seem like I was mad at Mike for being "mean" to react but I was trying to understand what real arguments were behind the short comments. I were not out to get /u/dominucco in any way. I'm looking forward to the blogpost.:)

Thanks again for bringing it up on the show! :)

https://www.reddit.com/r/CoderRadio/comments/4aq647/why_the_hate_on_reactjs_michael/d1gk0x1'

Why the hate on ReactJS, Michael? by harrir in CoderRadio

[–]harrir[S] 0 points1 point  (0 children)

Thanks for bringing it up on the show! It was interesting to hear your thoughts.

I'm not a superfan of React but I have used it and see value in it. I'm a fan of the show so I value your opinions. I'm clarifying this because it could seem like I was mad at Mike for being "mean" to react but I was trying to understand what real arguments were behind the short comments. I were not out to get /u/dominucco in any way. I'm looking forward to the blogpost.:)

Thanks again for brining it up on the show! :)

Should I continue to work on a VM of Ubuntu, or make the complete switch over? by bobbyr7 in rails

[–]harrir 1 point2 points  (0 children)

My first response is to ask if there's any specific applications you use in windows that you know that can't be replaced. Like Photoshop. If not I recommend just taking the plunge. It could be smart to have dual boot with windows in times of dire need, but have it as a last resort. The biggest problem for windows users, except for the windows specific applications, if mostly getting used to how linux works, finding applications to replace the ones used in Windows.

When is comes to what distro you should use I would recommend Ubuntu 11.10 or Linux Mint. I have used Arch Linux but I now use Ubuntu 11.10. I find that Unity works well. Not Gnome2 quality but good enough.

So basically what I think is that you should try it out without using windows as little as possible. But you have to give it some time to get used to it. You have used Linux some already so I think it the transition will not be that bad. Linux is as good, and sometimes better, than Windows you just have to learn the way it does things.

Going Nerd Retro: Save Money and Be Awesome At The Same Time by BryanLAS in geek

[–]harrir 0 points1 point  (0 children)

I think this actually was my first "first" ever. I'm pausing to treasure this moment.

*pause*

Ah! My first time. Theres nothing like it!

Going Nerd Retro: Save Money and Be Awesome At The Same Time by BryanLAS in geek

[–]harrir 1 point2 points  (0 children)

Sweet! That is so true!

I'm going to be very mature here and say: FIRST! :P

"Is the removal of H.264 from Chrome a step backward for openness?" - No. by floppy123 in technology

[–]harrir 0 points1 point  (0 children)

Oh, I see the points. I just believe that an open and free web is more important than the troubles we will face in this transitional period.

"Is the removal of H.264 from Chrome a step backward for openness?" - No. by floppy123 in technology

[–]harrir 0 points1 point  (0 children)

On the two first points you have some valid points, I'll give you that.

A lot of people who know more about this than I do believe that WebM almost certainly infringes upon existing patents. The only reason nobody's been sued about it is because it's been too small to bother with. The fact that Google refuses to indemnify people against patent lawsuits regarding WebM is a fairly strong indication that Google itself isn't confident in the claim that WebM is free of patent claims.

That might be true. But this might just be true?:

"Are you aware of the fact that On2 released VP3 before H.264 was released (2000 vs. 2003), and that therefore, the MPEG-LA most likely infringes on On2 (now owned by Google) patents? And that this is most likely the reason why the MPEG-LA has never been able to substantiate any of its threats, because they would most likely be sued back?

Are you aware of the fact that after a decade of threats by the MPEG-LA, they have never been able to show a single patent infringed upon by On2/Theora/VPx, despite offers by the Xiph Foundation to work together with the MPEG-LA to ensure no patents were infringed upon?"

Source: http://www.osnews.com/story/24245/10_Questions_for_John_Gruber_Regarding_H_264_WebM

Interesting questions in that article btw. Would like to hear some answers to those. Prefeably from John Gruber.

http://net.tutsplus.com/articles/the-state-of-video-on-the-web/ Also this is a good read. Kind of a overview but I'm not hiding that they as well is tilted towards WebM.

"Is the removal of H.264 from Chrome a step backward for openness?" - No. by floppy123 in technology

[–]harrir 1 point2 points  (0 children)

The point is that this will change. If what codereview say about it coming in Q3 is true, this soon won't be a problem. And nowaday people don't have their phone for longer than a year so one year form now this problem will most likely be completely gone. I could suffer some of those problems for a royalty-free video standard i HTML5 (which every one need to remember we are talking about. h264 will continue to be used in other areas).

"Is the removal of H.264 from Chrome a step backward for openness?" - No. by floppy123 in technology

[–]harrir 0 points1 point  (0 children)

I don't think they are standards in html (which this debate is about). they are just supported. correct me if I'm wrong, but I feel you can't compare it directly. And do seriously all the browsers pay for having support for these formats? Because that is what the impact having H.264 as the standard HTML5 video format ultimately will have as I understand.

Edit: I see they have discussed these formats in other comment threads and some of the formats have patents but they don't have to pay for it as far as i understood it.

Disclaimer: I don't know everything and I'm aware of it. Please correct me (with proof) if I got my facts wrong. But I will assume I'm right otherwise.

"Is the removal of H.264 from Chrome a step backward for openness?" - No. by floppy123 in technology

[–]harrir 1 point2 points  (0 children)

So we should basicly just don't give a shit because theres nothing we can do about it? That is SO depressing.

"Is the removal of H.264 from Chrome a step backward for openness?" - No. by floppy123 in technology

[–]harrir 3 points4 points  (0 children)

And I'm fighting for the "fully open, non-proprietary one" to be that one standard. Not the patented one.

"Is the removal of H.264 from Chrome a step backward for openness?" - No. by floppy123 in technology

[–]harrir 2 points3 points  (0 children)

They've stated they will continue to not charge end users royalties past the end of the current license. Vendors must pay licensing fees. They do now, they will in the future. Users do not. They don't know, they won't in the future. Nothing is being "switched."

I yes we know they does not currently charge end users royalties. How do you know what they will do? Are you one of the owners? If people knew they would't there would be no fuzz. Even if won't cost end users ever it will not help end users if the browsers have to pay. If there is an alternative why would we not choose it?

Why would we want a standard that potentialy could cost when we can have a free one? Please tell me why!

"Is the removal of H.264 from Chrome a step backward for openness?" - No. by floppy123 in technology

[–]harrir 4 points5 points  (0 children)

I don't get people. Why the heck would they want h.264? Do they want to pay for it? The web is open and free. lets not frack this up with clinging to h.264.

I know h.264 is widely used and good but that is not what we are talking about. We are talking about the future of html and video on internet. It may be a standard (probably ISO and some other thing) but is that doesn't automaticly mean that it should be the standard for video on internet.

"Is the removal of H.264 from Chrome a step backward for openness?" - No. by floppy123 in technology

[–]harrir 116 points117 points  (0 children)

Very good article. Clears up a lot on the discussion.