Skip to content

Commit

Permalink
Fix name ambiguities between C, C#, and C++
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Jan 1, 2020
1 parent 36b23b8 commit 56a678f
Show file tree
Hide file tree
Showing 834 changed files with 17,401 additions and 17,404 deletions.
30 changes: 15 additions & 15 deletions content/drafts/100_doors.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,20 @@ languages = [
"amigae",
"apl",
"applescript",
"applesoft_basic",
"arbre",
"argile",
"arm_assembly",
"astro",
"ats",
"autohotkey",
"autoit",
"axiom",
"awk",
"axiom",
"b",
"bacon",
"basic",
"applesoft_basic",
"basic256",
"commodore_basic",
"qbasic",
"sinclair_zx81_basic",
"bacon",
"batch_file",
"bbc_basic",
"bc",
Expand All @@ -53,10 +50,8 @@ languages = [
"bracmat",
"burlesque",
"c",
"c++",
"c_sharp",
"ceylon",
"c1r",
"ceylon",
"clarion",
"clio",
"clips",
Expand All @@ -66,13 +61,18 @@ languages = [
"coffeescript",
"coldfusion",
"commodore_basic",
"commodore_basic",
"common_lisp",
"component_pascal",
"coq",
"cpp",
"crystal",
"csharp",
"d",
"dafny",
"dart",
"qbasic",
"sinclair_zx81_basic",
]
+++

Expand Down Expand Up @@ -2884,11 +2884,11 @@ int main()
```


## C sharp
## C#

### Unoptimized with Modulus % Operator

```csharp
```c#
namespace ConsoleApplication1
{
using System;
Expand Down Expand Up @@ -2938,7 +2938,7 @@ namespace ConsoleApplication1
### Optimized for Increments


```csharp
```c#
namespace ConsoleApplication1
{
using System;
Expand Down Expand Up @@ -2979,7 +2979,7 @@ namespace ConsoleApplication1

(This version demonstrates a different thought pattern during development, where operation and presentation are separated. It could easily be refactored so that the operations to determine which doors are opened and to display the list of doors would be in separate methods, at which point it would become simple to extract them to separate classes and employ a DI pattern to switch the algorithm or display mechanism being used. It also keeps the calculation clear and concise.)

```csharp
```c#
namespace ConsoleApplication1
{
using System;
Expand Down Expand Up @@ -3008,7 +3008,7 @@ namespace ConsoleApplication1
### Unoptimized but Concise


```csharp
```c#
namespace ConsoleApplication1
{
using System;
Expand All @@ -3035,7 +3035,7 @@ namespace ConsoleApplication1
### Optimized for brevity


```csharp
```c#
namespace ConsoleApplication1
{
using System;
Expand Down
Loading

0 comments on commit 56a678f

Please sign in to comment.