#go-nuts

/

      • Vendan
        `var std = New(os.Stderr, "", LstdFlags)` just FYI
      • curioususr33
        I got another question :) So I'm just a Go beginner. Give it to me straight, guys and gals: I know that you can't run Go on an embedded microcontroller with 256 KB of RAM. It's just not used there. So now tell me HONESTLY: is it used to make interactive desktop programs with a Gui toolkit? Just give it to me striaght. Obviously it COULD be. But is it?
      • Vendan
        I've done it, but at the level of raw win32 API calls
      • like olden days C programming
      • not the nicest thing
      • curioususr33
        Vendan - but why? surely there was some super super super lightweight wrapper of some kind? Nobody made one?
      • Vendan
        Go is far more "servers and network" level stuff, much less desktop
      • sedition
        there's a supposedly good QT package but I've not met anyone who's used it
      • curioususr33
        I'm also interested in a windows gui. doesn't have to be QT and stuff, cross platform etc.
      • Vendan
        I'm sure there's people that have, but meh
      • wkalt joined the channel
      • curioususr33
        Vendan - can you speculate on why nobody wrapped the win32 api calls in a simple library? I mean why it's not a common usage case.
      • Vendan
        I just posted a link to a library that wraps the win32 api calls
      • curioususr33
        Vendan but nobody uses it...
      • Vendan
        cause desktop apps isn't the strong point of Go
      • use the right tool for the right job
      • you wouldn't use a hammer to clean your windshield
      • Kyros has quit
      • sedition
        i'd be more likely to write any interface as CLI or web app
      • Vendan
        for all the effort I put into something to do GUI in Go, I could have something done in half the time with C#
      • sedition
        i still wanna try and make an android app though
      • curioususr33
        sedition if you used a local web app with Go (running on your own computer, you just access it via chrome) then what framework would you use for the front end? just something simple.
      • xn0px90 has quit
      • Vendan
        I build my frontend in Go, just to spite isomorphic frenzied JS developers
      • KermitoniT joined the channel
      • doublek has quit
      • I also have an immediate mode terminal UI library that interfaces with an ssh server
      • sedition
        curioususr33: i'd just use net/http
      • if you need extra fun stuff, you could use Gorilla
      • Vendan
        dat's your backend, silly
      • doublek joined the channel
      • sedition
        really?
      • would the frontend be like
      • bootstrap?
      • carbocation_sky
        plaintext
      • Vendan
        react/redux/flux
      • sedition
        i assumed 'front end' devs wrote like
      • websites
      • Vendan
        BUZZWORD BINGO
      • sedition
        in general
      • carbocation_sky
        <html><body><pre>Hello</pre></body></html>
      • Vendan
        nah, frone end devs do SPA's
      • mperillo has quit
      • and ladle megabytes of JS on top of a kilobyte of content
      • sedition
        curioususr33: in that case, i'd probably use something like bootstrap or zurb. been wanting to try skeletoncss
      • Vendan: i dont know much javascript
      • Vendan
        gopherJS to the rescue
      • write Go, run it in the browser!
      • sedition
        i figured it would be clunky
      • and awful
      • Vendan
        oh, it's clunky
      • JS says "f*** your concept of static types"
      • Kyros joined the channel
      • so trying to do anything with the DOM is like wrestling a couple of gallons of spaghetti into a trashbag using only chopsticks with your feet
      • lemmi
        carbocation_sky: is just use html/template and net/http
      • curioususr33
        Vendan, do you have an opinion on Vue.js?
      • Vendan
        nope
      • Shawn has quit
      • curioususr33
        did anyone here used to be a node.js dev? I am wrestling with whether to use node for a low-traffic stuff and just Go for high-traffic microservices. Or if I should try to figure out how to use Go with Vue or React etc.
      • I don't do front-end at all yet unfortunately.
      • sh1ro has quit
      • Vendan
        "how to use Go with Vue or React" the same way you'd use node with them?
      • I'm like 90% sure neither of them actually have anything to do with talking to your backend
      • they are just client side rendering and state management and such
      • lemmi
        this was my view until i had to work on a gwt project
      • that shit will twist your mind
      • ebsen joined the channel
      • bjoern23
        well, it's JS...
      • litheum
        curioususr33: you don't do front-end at all... but you're talking about creating win32 GUIs and asking about React? what on earth are you doing?
      • mikey joined the channel
      • curioususr33
        oh sorry I was just getting a feel for Go! The front-end question has ZERO to do with it!!
      • I have some autohotkey scripts and it is easy for me to throw up a gui. I was just wondering if later I'd do the same thing in Go as autohotkey is kind of weird syntax etc. The answer is a resounding NO I'm not going to program my own gui's in Go. Not even close to ever, no haha
      • I meant the GUI question has zero to do with it.
      • litheum
        o.0
      • curioususr33
        Now the thing is I also need to put up some full stack pages, and I am not a front-end dev . I want to do stuff I can read about online such as put up some dashboards and so on. Basically whatever has the highest payoff from simple google searches. Now because I dont do front-end work (I don't know javascript) it means I don't really get how the pieces fit together
      • steven_ joined the channel
      • Sorry people this was two different things. I asked about desktop gui development. Then I asked about front-end web site development. unrelated questions.
      • ebsen joined the channel
      • it sounds like the archtitecture I want is node.js and then I can use NPM, to get the low-traffic sites, and then maybe use Go microservices for the node to call to get things done fast, right?
      • this is a typical solution?
      • safe joined the channel
      • bjoern23
        It depends.
      • ebsen has quit
      • neoncontrails
        curioususr33: have you checked out React native? Or Angular2? Both frameworks have been eking closer and closer to some sort of singularity that blurs the distinction between desktop/web apps
      • lluad has quit
      • antims has quit
      • curioususr33
        I'm trying to install delve by copying and pasting the instructions from the delve page. I get this error: http://i.imgur.com/EPCXKp2.png
      • No, I was put off by the react license controversy. Angular2 sounds interesting - but I wouldn't use both vue.js and angular2. Does angular2 make more sense? can I then easily get like "native-like" android and ios apps later? (with built-in widgets, not web stuff)?
      • Oh I found it - weird, delve apparently actually only works on 64-bit, not 32-bit. Oh well -- https://github.com/derekparker/delve/issues/638
      • ebsen joined the channel
      • Vendan
        why the heck are you using 32bit?
      • doublek has quit
      • curioususr33
        Vendan - cuz I wanna. I'm too lazy to upgrade and have a lot of stuff and projects installed on this thinkpad.
      • KermitoniT joined the channel
      • neoncontrails
        Vue as I understand it is strictly a lightweight implementation of VDOM (apparently using some cool render-to-texture algebra tricks). I don't know if it really integrates with the backend in a meaningful way
      • curioususr33
        does angular2 have pretty wide adoption? Would I find a lot of resources by googling? Is the learning curve pretty good? (Like Go) - meaning can I gets started without learning a lot?
      • Vendan
        uhh....
      • you're asking about a JS framework
      • in a Go channel
      • neoncontrails
        I haven't personally used it, but I think the resources tend to be pretty good. Its parents are Google and Microsoft -- together! Both of them!
      • ebsen has quit
      • bfrog joined the channel
      • ebsen joined the channel
      • decached joined the channel
      • pepee joined the channel
      • curioususr33
        Vendan - do you have a better channel suggestion for me? I like Go because I'd love to use it to drive the solution. Plus angular2 is just a javascript framework, right? It's not like Node. It would still be powred by Go?
      • Vendan
        uhhh, no, it'd be powered by the browser and JS?
      • Go is the backend
      • andyhuzhill joined the channel
      • akurniawan joined the channel
      • you should probably go ask people on https://github.com/AngularClass/awesome-angular... about angular
      • mikey__ joined the channel
      • curioususr33
        Vendan - I guess, okay.
      • Vendan
        I mean, we can help with backend, if you do go with Go for that
      • but angular should be completely agnostic about what's actually powering your backend
      • ebsen joined the channel
      • darklava has quit
      • ganbold joined the channel
      • lluad joined the channel
      • KermitoniT joined the channel
      • bmurt joined the channel
      • curioususr33
        Vendan, thanks.
      • solarfly has quit
      • phaji has quit
      • lluad has quit
      • KermitoniT has quit
      • KermitoniT joined the channel
      • doublek joined the channel
      • doublek has quit
      • doublek joined the channel
      • kingarmadillo joined the channel
      • chachasmooth joined the channel
      • skypuke_ has quit
      • juggler joined the channel
      • rcat has quit
      • tomterl has quit
      • turtil has quit
      • tomterl joined the channel
      • ahutsona joined the channel
      • decached has quit
      • s33se_ joined the channel
      • atlask joined the channel
      • s33se has quit
      • LennardW|afk joined the channel
      • wallyworld has quit
      • cads joined the channel
      • __charly__ joined the channel
      • ebsen has quit
      • postit has quit