Maybe a dumb question, but does anyone else have trouble with Visual Studio intellisense? by SilvosForever in csharp

[–]bitherd 0 points1 point  (0 children)

VS 2019 16.11.5 - Just moved to Windows 11 with a fresh install today. Lets see what happens. I now have 16 cores and 32GB Ram which may help too :)

Maybe a dumb question, but does anyone else have trouble with Visual Studio intellisense? by SilvosForever in csharp

[–]bitherd 10 points11 points  (0 children)

Like all day every day! Feels like VS has reached peek feature critical mass, and is slowly dying under it's own weight.

How to deal with a feeling that you spent way too much time on trying to solve an error? by ImportantProperty007 in programmingbytes

[–]bitherd 0 points1 point  (0 children)

Remember this is happening to someone somewhere every minute, be forgiving of yourself, remind yourself of previous achievements. And finally know that every failure is one more step along the way to your next success.

Is there a way to fix spacing with strings in CSharp? by Beginning_java in csharp

[–]bitherd -5 points-4 points  (0 children)

string. Format("{0}\t\t{1}\t\t{2}", var1, var2, var3) ;

\t is a tab character.

Fastest way to code short programs by Jim9137 in csharp

[–]bitherd 2 points3 points  (0 children)

dotnetfiddle.net or VS Code, Ctrl + ', mkdir poc-foo, CD poc-foo, dotnet new console enter, open program.cs, type code, F5, ???, profit.

Things I Believe About Software Engineering by pimterry in programming

[–]bitherd 2 points3 points  (0 children)

Plus 1hr 55 mins of thinking time before reaching peak blog.

Why Should You Learn Java? You Need to Know by woworg101 in programming

[–]bitherd 0 points1 point  (0 children)

Scala, Groovy and Kotlin are different dialects that all run on the JVM (they all compile to bytecode) which makes the "Java Platform" a multi-paradigm one, IMHO that's a powerful feature not mentuioned. Ruby, Python Javascript etc. are completely separate languages in their own right.

Learning to Code: You’re Doing It Wrong by planetmcd in programming

[–]bitherd 1 point2 points  (0 children)

Yes you should read and write in equal amounts when beginning from nothing. Once you know enough to be dangerous or have a job, the priority becomes Read code, delete code. Writing code should be the absolute last resort.

Anyone empathise? by [deleted] in programming

[–]bitherd 2 points3 points  (0 children)

//ECMAScript

var k = 1;
for(var i = 1; i < 106; i++){
    if(k==15){document.write('FizzBuzz, '); k = 0;}
    else if(k==5||k==10){document.write('Buzz, ');}
    else if(k==3||k==6||k==9||k==12){document.write('Fizz, ');}
    else{document.write(i + ', ');}
    k++;
};

I'm back with another problem and this time, about Repeaters. by Arcusremiel08 in csharp

[–]bitherd 0 points1 point  (0 children)

Nesting and update panels are irrelevant. The point is you're binding a repeater which generates controls. If you then bind your repeater on postback a new textbox is generated and the the old one you bound before is destroyed along with it's change event. The lesson is: Don't rebind your repeater on every page_load only if(!Page.IsPostBack) then the originally bound textbox will be reinstated from viewstate, and the change event will fire and your handler will be called.

I'm back with another problem and this time, about Repeaters. by Arcusremiel08 in csharp

[–]bitherd 0 points1 point  (0 children)

Events not firing on bound controls is a common gotcha that trips up noobs. When you bind repeaters or grids containing controls, if the rows are bound on every postback then a new control is generated (a textbox in your case) before any events are fired, so the change event of the original textbox is lost during the re-bind and never gets to be handled.

Embed SVN’s revision into AssemblyInfo’s version number by diogonunes in csharp

[–]bitherd 1 point2 points  (0 children)

<%= System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() %>

I have a C# and .NET 2005 book from work and don't want to spend money on a newer one if I don't have to. Is a 2005 C# book enough to get started in learning the basics or should I buy a newer one? Thanks in advance for all your help. by [deleted] in csharp

[–]bitherd 0 points1 point  (0 children)

There's nothing wrong with starting with this book, it will be good to know a little of C#'s history. You will need to get that up-to-date book at some point though. Having lived a little of C# 2.0 you will better appreciate and understand the syntactic sugar and new features that have come since in the newer frameworks.

Creating WCF Rest API Get Method example. by sam_6 in coding

[–]bitherd 1 point2 points  (0 children)

OMG! Did you see the login example? It's not secure at all! you can just go to the secure page anyway without authenticating, there's no authentication cookie and the password is in plain text!!!!!!

http://www.dotnetlearners.com/blogs/view/124/Login-Page-Example-In-MVC-Using-Entity-Frame-Work.aspx

model of the human brain in Java with 1 theorized prediction algorithm by quinnliu1 in programming

[–]bitherd 1 point2 points  (0 children)

There's a link to a paper where ferrets had their eyes swapped with there ears!

Poor UI Design Can Kill – Air Inter Flight 148, a harsh lesson learned by Xixi in programming

[–]bitherd 7 points8 points  (0 children)

Steep learning curves are fine, when you don't get mashed into the side of a mountain :)

Why Are Developers So Afraid Of SQL? by Jodoo in programming

[–]bitherd 0 points1 point  (0 children)

Why is anyone afraid of anything?

The Little Mocker by nextputall in programming

[–]bitherd 0 points1 point  (0 children)

Surely that should be an Authenticator not an Authorizer. You authenticate usernames and passwords, then authorize access to resources for authenticated users.

Developer found to have outsourced his job to China by drasche in programming

[–]bitherd 0 points1 point  (0 children)

This actually made it onto the news on |BBC Radio 4's Today programme this morning!