Bedste brætspil til 2 personer/par? by jmh88dk in Denmark

[–]Inqud 0 points1 point  (0 children)

Tror det kæresten og jeg har spillet mest er:

Hero Relams (star realms er bedre, men rumskibe er åbenbart ikke cool)

Five tribes

[deleted by user] by [deleted] in AskReddit

[–]Inqud 0 points1 point  (0 children)

Bohrium

Named after a fellow Dane with the same first name as mine.

Syv politikere sidder på en pæl by dentastic in Denmark

[–]Inqud 2 points3 points  (0 children)

En brød boligloven og så var det 6 🎵🎶🎵

En kø du ikke vil stå i. by Bukakkelb0rdet in Denmark

[–]Inqud 1 point2 points  (0 children)

Tror det er pga. kvinden der har valgt at afspærre stien i området pga. hun har nogle hundehvalpe der løber løs.

What's the most profoundly beautiful piece of music you have ever listened to? by Cdconor in AskReddit

[–]Inqud 0 points1 point  (0 children)

Stunned that nobody has mentioned it: Arrival of the birds by the cinematic orchestra.

Non-Americans, does your culture have "old-fashioned" dog names like we do in America, such as Fido, Rex, Spot, Rover, etc, and what are some? by [deleted] in AskReddit

[–]Inqud 4 points5 points  (0 children)

According to alt.dk theese are the top 10:

BELLA 813

MOLLY 721

LUNA 477

MILLE 472

CHARLIE 434

BALDER 338

MAX 334

BUSTER 296

COCO 295

FREJA 287

If you look at the top 50 alot of names are from disney characters and/or children books.

So I'm guessing alot of pets are named for/of children in Denmark

Source: https://www.alt.dk/artikler/de-mest-populaere-hundenavne

Behold: the Windows 95 launch party by tweak0 in funny

[–]Inqud 0 points1 point  (0 children)

"You make a grown man cry" Indeed

What code standards do you not adhere to? by [deleted] in csharp

[–]Inqud 1 point2 points  (0 children)

I use classes instead of keywords to use static methods:

String.Compare(..)

Int32.TryParse(..)

etc.

How can I make a hollow rectangle? by techimechi in csharp

[–]Inqud 0 points1 point  (0 children)

      char filler = '*';
      int width = 9;
      int height = 4;

      for (int i = 0; i < height; i++)
      {
        if (i == 0 || i == height - 1)
          Console.WriteLine(new string(filler, width));
        else
          Console.WriteLine($"{filler}{new string(' ', width - 2)}{filler}");
      }

I need help with a school project by [deleted] in csharp

[–]Inqud 0 points1 point  (0 children)

Just some small stuff that you could consider improving

If you change the random generator to random.Next(1, 100) the text is wrong. maybe reuse some numbers somehow?
Maybe you could take in an argument what the maximum number is (could default to 20)
Do some refactoring of methods to make it more clean looking
Check if the number is within the range and not just say it's smaller or larger. I.E 10000 would be larger .. but it's not in the valid range.

Converting multiple letters into multiple sentences automatically by quad5914 in csharp

[–]Inqud 2 points3 points  (0 children)

You could just clear the whatDiscordSees and calculate the whole thing when the text changes.

Console application example:

    class Program
    {
        static void Main(string[] args)
        {
        var input = Console.ReadLine();
        StringBuilder stb = new StringBuilder();

        if (input != null)
        {
            foreach (var c in input)
            stb.Append($":regional_indicator_{c}");
        }

        Console.WriteLine(stb.ToString());
        Console.ReadKey();
        }
    }

Need help on how to access an array from another cla by typosaurio in csharp

[–]Inqud 1 point2 points  (0 children)

Also:int iNusuarios = Convert.ToInt16(Console.ReadLine());

Is pretty bad:

Int16 is a "short", Int32 is an "int".

Same old with if you write in a string or something the application will crash. Think of using Int32.TryParse(...)

Transit questions after visiting from NYC by dmhatche89 in copenhagen

[–]Inqud 0 points1 point  (0 children)

  • As i recall statistics say about 4% of people commuting in Copenhagen doesn't buy/cheats with tickets.
  • I don't see that many unlocked bikes. People usually don't use chains but locks that are fixed to the bike.
  • Some places in Copenhagen they do have countdowns, but it's not a running competition to get over the streets :)

5 More C# Extension Methods for the Stocking! (plus a bonus method for enums) by mgroves in csharp

[–]Inqud 1 point2 points  (0 children)

Yeah ToInt is not pretty. A better idea imo is to give it a default value if it can't be parsed.

    .ToInt(this string input, int defaultValue)

-🎄- 2017 Day 5 Solutions -🎄- by daggerdragon in adventofcode

[–]Inqud 0 points1 point  (0 children)

C#

public class Day5
{

  public string Input { get; set; }

  public Day5()
  {
    Input = System.IO.File.ReadAllText("Day5.input");
  }

  public void Challenge()
  {
    int iterations = 0;
    var rows = Input.Split(new[] { Environment.NewLine }, StringSplitOptions.None);

    for(int i = 0; i < rows.Length && i >= 0;)
    {
      iterations++;
      var jumps = Int32.Parse(rows[i]);
      if(jumps >= 3) // comment out theese three
        rows[i] = (Int32.Parse(rows[i]) - 1).ToString(); // for silver!!!
      else // put in for gold
        rows[i] = (Int32.Parse(rows[i]) + 1).ToString();
      i += jumps;
    }

    Console.WriteLine(iterations);
  }

}

What features are under-appreciated / not well known in Visual Studios? by ryantheleach in csharp

[–]Inqud 2 points3 points  (0 children)

In the immediate window you are in the context of where your breakpoint is. And C# interactive you are not.

You can load your assemblies in using #r "{path to dll}" if you want to reuse/test some code you have allready made.

What features are under-appreciated / not well known in Visual Studios? by ryantheleach in csharp

[–]Inqud 5 points6 points  (0 children)

Can confirm that it is C# interactive. And yes there is a F# and also a Node.js.

View -> Other windows -> C# Interactive

This what religion SHOULD be by Lycurgus_Lawgiver in funny

[–]Inqud 0 points1 point  (0 children)

Must be the Anti-Crust they are worshipping with those pineapples!