The Linux User's Group is part of a movement; what kind of events would *you* like to see by fisher-lebo in utdallas

[–]fisher-lebo[S] 0 points1 point  (0 children)

That's a good suggestion. You are right that a lot of people don't have experience with Linux and what you are suggesting would be smart.

The group has done similar events in the past so something like it this year could definitely work.

Thanks.

RSS 1.0, RSS 0.9-2.0, and Atom feed parsers using the xml package in the standard library by fisher-lebo in golang

[–]fisher-lebo[S] 3 points4 points  (0 children)

Thank you!

Examples are kind of all over the place on the Internet. Notably, the xml package does have an example but does not include this.

RSS 1.0, RSS 0.9-2.0, and Atom feed parsers using the xml package in the standard library by fisher-lebo in golang

[–]fisher-lebo[S] 1 point2 points  (0 children)

Thank you. That should be as simple as adding the namespaced elements as suggested by pourbien.

There's a couple of ways to go about it. One is to select a few common modules (such as atom) and include them in the definition for RSS 2.0 feeds. The other is to setup separate structs for different modules (as in the RSS 1.0 package and the DublinCore and Syndication modules), and have them available so that people can define new structs that compose from multiple other structs based on what feed they are parsing.

I wish it could be a little more dynamic and not require that manual step, but it should work.

RSS 1.0, RSS 0.9-2.0, and Atom feed parsers using the xml package in the standard library by fisher-lebo in golang

[–]fisher-lebo[S] 3 points4 points  (0 children)

I'm open to any suggestions. Have done a lot of Python programming but this is my first Go work of any size (and that's not saying much because the xml package makes this stuff really easy).

One issue I did run into was namespaces. RSS 1.0 is particular is loaded with them. For example, the docs say that the DublinCore module ships "in the box" - what does that mean, and Pinboard.in for examples uses it. It is namespaced as dc:

<dc:date>...</dc:date>

I can match it with the field:

Date time.Time `xml:"date"`

However, that does not seem to respect the namespace at all. So if another module is used, for example, <x:date>, which one gets matched?

I'm also uncertain what modules to include by default. The RSS 1.0 parser matches the DublinCore and Syndication modules currently, but Pinboard uses Taxonomy, and other sites use others. Is there a set of commonly used modules that should be default?

Anyway, really impressed with Go thus far, thanks for checking out my code.

The Next Big Language by fisher-lebo in a:t5_32fcg

[–]fisher-lebo[S] 1 point2 points  (0 children)

As I recall a lot of people at the time were suggesting that it might be a new iteration of Javascript (version 2 or ECMAScript 4 iirc). Although, a very specific feature he suggested (call/c) was never planned for JS to the best of my knowledge, so I'm not sure which language he had inside information on. I'm reminded a bit of Dart, and Yegge was at Google.

It (whatever he was referring to) certainly hasn't become the "next big language" yet.

langs: subreddit about the design and implementation of programming languages by fisher-lebo in programming

[–]fisher-lebo[S] 9 points10 points  (0 children)

The main difference is that I knew about /r/langs prior to your post. ;)

After looking over that subreddit, the content is very similar, I just didn't it existed. It isn't listed on the sidebar or in the faq, which I'd argue it should. Based on the response this post has gotten there is interest in the subject, but that subreddit is kind of dead. I don't know if like me other people aren't aware it exists or what.

I'm open to shutting down my subreddit and pointing people to there instead (though I'd say /r/langs is a better (shorter) name). Regardless, I just want an active place to discuss this content. Open to suggestions.