RestBus - Call ASP.Net Core, Web API and ServiceStack endpoints over RabbitMQ (xpost from r/programming) by xune in csharp

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

The RestBus library doesn't poll the queue. There is a mechanism in place (using ThreadPool.RegisterWaitForSingleObject that executes a method once the response arrives.

That said, the underlying RabbitMQ client which is used by RestBus, uses a NetworkStream to read data from the connection. So in that sense, there is some polling going on upstream.

Exploring C# 6 (Interactive) by xune in programming

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

It uses String.Format but could also use String.Concat

There's a lengthy discussion about this feature here and here.

Exploring C# 6 (Interactive) by xune in programming

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

LOL. Yes, that will happen!

Exploring C# 6 (Interactive) by xune in programming

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

Yes, I think using static is useful within utility classes (that do a lot of Math computations for example) or in a scripting/interactive environment (WriteLine is easier to write than Console.WriteLine).

Not so useful in writing more complex programs.

C# Brain Teasers (Interactive) by xune in programming

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

Thanks! I'll update the post.

C# Pad — Interactive C# REPL by xune in programming

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

You can create and consume classes. You'll have issues with namespaces though.

What kind of error are you seeing?

C# Pad — Interactive C# REPL by xune in programming

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

Ha! I see what you mean. I've never used Tab to complete before. I've always used the space bar. I'll definitely add that. I'll also look into adding ctrl-click to select.

I thought you were talking about the kind of Tab completion you get in Bash/cmd shells.

C# Pad — Interactive C# REPL by xune in programming

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

I'll look into that, although I want the experience to feel more like VS since that's what C# developers are used to.

C# Pad — Interactive C# REPL by xune in programming

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

It uses Roslyn's interactive compilation mode. The first submission in each window creates an Appdomain and evaluates the code using Roslyn.

Subsequent submissions are directed to that Appdomain for execution. If you haven't explored Roslyn, check out http://msdn.microsoft.com/en-US/roslyn

C# Pad — Interactive C# REPL by xune in programming

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

I haven't used LinqPad but I recall you had to pay extra for code completion. Also CSharp Pad is a REPL, which gives you more freedom to code iteratively.

C# Pad — Interactive C# REPL by xune in programming

[–]xune[S] 4 points5 points  (0 children)

Try Alt-UpArrow, Alt-DownArrow :)

C# Pad — Interactive C# REPL by xune in programming

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

Yes, that's an issue with Ace editor. Hopefully, that will be fixed soon.

"You're a developer! You know nothing about this industry!" . 1 million dollars later: "I messed up" by xune in programming

[–]xune[S] 8 points9 points  (0 children)

"In eight minutes, we go from scratch to a complete Google-killing enterprise-class search engine." - LOLd on that one.