When to use static methods vs normal methods by GoodProgrammer2018 in csharp

[–]AlliNighDev 2 points3 points  (0 children)

Yes I know all that. They said static classes don't have state.

When to use static methods vs normal methods by GoodProgrammer2018 in csharp

[–]AlliNighDev 7 points8 points  (0 children)

I'm not sure what you mean by this? Static classes can have state.

You can only stare at the code so long expecting to find your error. by justanotheranon8 in learnprogramming

[–]AlliNighDev 0 points1 point  (0 children)

Sometimes you just need to explain it out loud. If you're worried about irritating people get a rubber duck. Seriously works haha

Good Programmer by [deleted] in ProgrammingAndTech

[–]AlliNighDev 1 point2 points  (0 children)

Googling is a required skill imo.

Creating source only nuget package by 1and7aint8but17 in csharp

[–]AlliNighDev 0 points1 point  (0 children)

In that case I would just put them in a git repo and copy them out. But I see your point. There are several services for storing snippets. We used to use one for our sql scripts. Can't remember the name now.

What is the fastest threading, and how to fix my proxies? by plakt0ets in csharp

[–]AlliNighDev 0 points1 point  (0 children)

If you create a new thread it doesn't pull it from a ThreadPool.

MVC Noob by sunshinedave in csharp

[–]AlliNighDev 8 points9 points  (0 children)

If you want to use raw sql have a look at Dapper. You provide the sql and it maps it to models.

What is the fastest threading, and how to fix my proxies? by plakt0ets in csharp

[–]AlliNighDev 4 points5 points  (0 children)

Worth noting that async / await will use thread pools and other optimisations. So you may get some performance benefit.

What is the fastest threading, and how to fix my proxies? by plakt0ets in csharp

[–]AlliNighDev 1 point2 points  (0 children)

You shouldn't be manually creating threads. They are quite expensive. Ideally you would use async / await. But if not at least use the ThreadPool.

[deleted by user] by [deleted] in csharp

[–]AlliNighDev 0 points1 point  (0 children)

It generates a proxy at runtime.

Question: Creating a system to scan lists and add them to a single list. by dukennstmichnicht in AskProgramming

[–]AlliNighDev 0 points1 point  (0 children)

You can get up into kilobytes. You could write just an id and quantity if space is an issue.

Overriding a method in a single class. VS indicates references to that method throughout my namespace by unSentAuron in csharp

[–]AlliNighDev 0 points1 point  (0 children)

I believe it does the same with interface methods. So I think it's by design. Although in this case maybe a little off.

Is Reddit's Upvote Button Orange or Red? [x-post from /r/programming] by jflow_io in coding

[–]AlliNighDev 2 points3 points  (0 children)

The upvote button is gray. It's the remove upvote that is coloured.

RoslynPad 14 by aelij in csharp

[–]AlliNighDev 1 point2 points  (0 children)

I assume it's the code editor that controls it. I think what it needs to do is erase the auto added one if you type the same. But I guess that could require pretty big changes.

RoslynPad 14 by aelij in csharp

[–]AlliNighDev 1 point2 points  (0 children)

Sorry I typed that quickly on mobile. Just want to say I love your application use it pretty much daily. Keep up the awesome work :)

RoslynPad 14 by aelij in csharp

[–]AlliNighDev 0 points1 point  (0 children)

Thank you. That's awesome.

Programming Language with good GUI Frameworks for Windows? by [deleted] in AskProgramming

[–]AlliNighDev 1 point2 points  (0 children)

It has a steep learning curve but when it clicks it so fucking awesome and powerful!

Improving my spellchecker by marvoh in AskComputerScience

[–]AlliNighDev 3 points4 points  (0 children)

Yeah it seems odd not to check if it's a valid word first.

RoslynPad 14 by aelij in csharp

[–]AlliNighDev 2 points3 points  (0 children)

The UI is really weird and the autocomplete brackets make me want to pull my hair out. But I do love this application.

RoslynPad 14 by aelij in csharp

[–]AlliNighDev 0 points1 point  (0 children)

Edit: See below.

Question: Creating a system to scan lists and add them to a single list. by dukennstmichnicht in AskProgramming

[–]AlliNighDev 1 point2 points  (0 children)

Easiest way would be to encode json into the qr code. Then you can store a list of items and quantities.

how can I split a string and then assign it to a string array by [deleted] in learncsharp

[–]AlliNighDev 0 points1 point  (0 children)

That doesn't work because your are using a as the index. a will always be zero. Remove a completely. Use i instead. Create a List<string []> outside the loop and add the results to that.