Re: [go-nuts] Repository of self-contained functions

2017-08-09 Thread Henrik Johansson
https://i.redd.it/tfugj4n3l6ez.png

I am sorry, I couldn't help it!

ons 9 aug. 2017 kl 08:40 skrev Jakob Borg :

> On 7 Aug 2017, at 16:38, Lukas Senger  wrote:
> >
> > Basically the idea is to
> > encourage writing and sharing simple self-contained functions.
>
> This sounds like a good thing, but in practice it gives you npm.
>
> //jb
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Repository of self-contained functions

2017-08-07 Thread Michael Jones
i have the same. Like HAKMEM, just not as smart.

On Mon, Aug 7, 2017 at 8:22 AM, Shawn Milochik  wrote:

> I like *idea* of that idea, but I suspect that the implementation
> wouldn't work out.
>
> As the Go Proverb says: "A little copying is better than a little
> dependency."
>
> I have a similar repo for my personal use, but I copy/paste from it rather
> than import it. It's a modern version of the folder we all keep on our hard
> drives of useful little snippets.
> https://github.com/shawnmilo/uhf
>
> If we did have a community version of that, like a wiki or "cookbook"
> site, that would be cool for browsing and copy/paste, though. Just not
> actual importing.
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Michael T. Jones
michael.jo...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Repository of self-contained functions

2017-08-07 Thread Shawn Milochik
I like *idea* of that idea, but I suspect that the implementation wouldn't
work out.

As the Go Proverb says: "A little copying is better than a little
dependency."

I have a similar repo for my personal use, but I copy/paste from it rather
than import it. It's a modern version of the folder we all keep on our hard
drives of useful little snippets.
https://github.com/shawnmilo/uhf

If we did have a community version of that, like a wiki or "cookbook" site,
that would be cool for browsing and copy/paste, though. Just not actual
importing.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Repository of self-contained functions

2017-08-07 Thread Lukas Senger
Hi everybody,

I've had this idea rolling around in my head for a while now and I'm not
sure if it is worth diving into.

What do you think of importing single functions from an online
repository of functions that anybody can contribute to. Functions would
be uniquely identified by their hash (after gofmt) so you could do stuff
like this:

package main

import example "funcservice.com/somehash"

func main() {
example.SomeFunc()
}

where somehash either points to a single function or a collection of
functions (to save on import aliases) and be certain that SomeFunc never
changes (unless someone hacks funcservice.com). Basically the idea is to
encourage writing and sharing simple self-contained functions.

Apart from security implications and implementation details, is this
something anybody could see themselves using in personal or professional
projects?

--Lukas

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.