6 ms·
I like Ruby/Rails, I like Go. I like frameworks that make your life easier when starting a new project. I don't think Go is anywhere near the list of languages
by colbyh 11y ago
I like Ruby/Rails, I like Go. I like frameworks that make your life easier when starting a new project.
I don't think Go is anywhere near the list of languages to build a Rails successor on top of. Rails can do so much of the cool stuff it does because Ruby is an incredibly flexible language.
Go, on the other hand, could be described as "inflexible as a feature". You have a beautifully simple language that optimizes for concurrency and other issues that simply aren't considerations in the Ruby world.
The two languages are worlds apart and designed to solve vastly different problems. I support new tools for Go, but I just don't see a monolithic web framework being high up on the list of "must haves".
- navd 11y ago> I just don't see a monolithic web framework being high up on the list of "must haves". And I think that's what makes Go so welcome to many people. In fact, I'm tired of frameworks that do everything for me because they tend to do everything just "well enough". And I noticed the OP is using Martini - which isn't necessarily bad - but it's not needed. It does make learning a language like Go a lot easier for newcomers though... I do think this sheds some wrong light on how people should be using Go. Martini isn't the answer, you should be using interfaces to make your code easier to work with, especially since they are implemented in Go so well.
- alexrbarlow 11y agoI totally agree and yeah, I used Martini to make it a little easier to read
- navd 11y agoUnderstood, the community really needs more idiomatic examples for building web apps. Someone should take this up.
- xasos 11y agoIn fact, Go's standard library is fantastic, so you don't need Martini for many things. I think it provides a nice layer on top of the code for comprehensibility when reading through code
- higherpurpose 11y agoI for one would like to see a serious Go-based alternative to Wordpress. Virtually every major CMS out there uses PHP, and all of them are highly prone to hacking.
- arxpoetica 11y agoI've had the same thought, but using Node (which is more accessible to a wider group of people). Part of the (sad) state of affairs that made WordPress so popular was accessibility to the code. Can't be overlooked.
- jlhonora 11y agoGhost (https://ghost.org https://ghost.org) is built with Node
- atjamielittle 11y agoWould you say that they are prone to hacking solely because they are written in PHP? Is secure PHP impossible?
- lojack 11y agoSecure PHP is certainly possible, and not even that difficult. The problem is that insecure PHP is even easier to write. In my experience, most vulnerabilities tend to come from insecure, poorly written, unvetted third party plugins and libraries. Someone writes a plugin that creates a widget, security is either a non-thought or an afterthought. They think someone else might like the widget so they publish it. Thousands of people find it useful, even years after originally released. They are all unknowingly using an insecure piece of software.
- apertoire 11y agoThere's already http://gohugo.io/ http://gohugo.io/, along with a starter project described in both these places: https://medium.com/@juanbrodriguez/hugulp-a-hugo-gulp-toolchain-94f72ccc3577 https://medium.com/@juanbrodriguez/hugulp-a-hugo-gulp-toolch... http://jbrodriguez.io/mobile-friendly-website-2/ http://jbrodriguez.io/mobile-friendly-website-2/
- 0xdeadbeefbabe 11y agoThe idea that programming languages are "worlds apart" and "vastly different" is hyperbole that would make Turing frown or maybe giggle. Have you considered that Ruby is written in C [0], and that you can do plenty of things with a general purpose programming language and some good ideas? Edit: Would you care to substantively explain the downvote(s)? The parent is so preoccupied with frameworks he's overlooking the basics. [0] http://en.wikipedia.org/wiki/Ruby_%28programming_language%29 http://en.wikipedia.org/wiki/Ruby_%28programming_language%29
- billsix 11y agoA car salesman matched a competitors price, and rounded down two dollars. He told me he is offering me a better price than the competitor. I said, "it is true you are beating their price, but not in a way that matters to me". Different languages have tradeoffs which matter to people.
- 0xdeadbeefbabe 11y agoDifferent people conflate languages and frameworks to their detriment.
- chc 11y agoYour blood is 92% water. Seawater is somewhere around 95% water. Despite being incredibly similar, replacing one with the other in any great amount would be catastrophic. You share half of your DNA with a banana, but you're still completely different from a banana in any way anyone cares about. The fact that Prolog, Fortran and Ruby are all Turing-complete is useful to know from a computer science standpoint, but from a perspective of actual use, it just isn't that relevant. A language — whether human or computer — isn't just about the algorithms it can express, but about the ways it lets you express them, understand them and combine them. And Turing equivalence tells us very little about that sort of thing. This is a bit abstract, so here's a tiny but concrete example of how differences in how you express an algorithm can have a tangible effect: f = open("somefile.txt") f.write("Hello world") f.close() with open("somefile.txt") as f: f.write("Hello world") They're effectively the same, and could conceivably even be compiled to the same object code, but the latter is less error-prone — we can't accidentally leave the file open. A language that only allows the former is inherently more brittle. There's a whole world of variation like this (and also a lot unlike this) that doesn't affect whether the language is equivalent to a Turing machine, but does have a real impact on your program. So I think it is quite possible for languages to be worlds apart while still being able to compute everything a Turing machine can.