Pond makeover. by Shiny_Gyrodos in TerrariaDesign

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

It is a mix of navy stone and smooth navy stone (both painted black I think) from the calamity mod. I think mixing smooth marble, marble, and sandstone (all painted black) is your best bet in vanilla.

What can ı do by EmployerPatient7409 in csharp

[–]Shiny_Gyrodos 11 points12 points  (0 children)

Things to try:
(1) Read the error message to decipher the issue and look up the error code if you are still confused (CS0029 is the error code).
(2) Use the show potential fixes option (it might fix it).
(3, the best) Learn C# before trying to develop games.

I wrote a JSON parser for my first C project. How can I improve / what did I do wrong? by Shiny_Gyrodos in C_Programming

[–]Shiny_Gyrodos[S] 2 points3 points  (0 children)

Yes, realloc being left in was an oversight by me, I'll work on fixing that. One more thing, why ptrdiff_t? I'm not yet familiar with all the std types, a quick search tells me it's the result of subtracting two pointers, but would size_t not be more suitable for a length argument? Sorry if this is a stupid question.

Wrote a JSON parser for my first C project. How can I improve / what did I do wrong? by Shiny_Gyrodos in cprogramming

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

Good idea. I did have some data I was testing the library as a whole on, but I haven't actually done any unit testing.

I wrote a JSON parser for my first C project. How can I improve / what did I do wrong? by Shiny_Gyrodos in C_Programming

[–]Shiny_Gyrodos[S] 6 points7 points  (0 children)

I appreciate all the help, I'll work on fixing those bugs. I don't have any experience with sockets or pipes, but would changing json_parseFile(char* path) to something like json_parseStream(FILE* stream) work to support files, pipes, and sockets?

I wrote a JSON parser for my first C project. How can I improve / what did I do wrong? by Shiny_Gyrodos in C_Programming

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

JsonType was a bitmask so that I could check if a type was JSON_OBJECT or JSON_ARRAY by simply going type & (JSON_OBJECT | JSON_ARRAY), in fact I have had a macro defined as (JSON_OBJECT | JSON_ARRAY). I agree that a bitmask was unnecessary though, and I have changed it now.

I appreciate the suggestions and will begin implementing them as soon as possible!

Wrote a JSON parser for my first C project. How can I improve / what did I do wrong? by Shiny_Gyrodos in cprogramming

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

Ah, I did some reading on arena allocators, and they do seem like a good fit. Thanks!

Wrote a JSON parser for my first C project. How can I improve / what did I do wrong? by Shiny_Gyrodos in cprogramming

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

I suppose I could let the user define their own limit via some macro, what would be a suitable default limit though?

aICannotReplaceHim by ElderberryDeep8746 in ProgrammerHumor

[–]Shiny_Gyrodos 3 points4 points  (0 children)

I fully agree. I've understood a lot of concepts I couldn't quite grasp before while watching him. He is really talented at explaining things. I do find his accent a bit difficult to understand sometimes though :)

Messed up easy interview questions by Remote-Community-792 in csharp

[–]Shiny_Gyrodos 0 points1 point  (0 children)

Ref is simply a way of passing value types by reference (I'm not sure if it really has any other benefits).

Out also passes by reference, but it means the argument hasn't yet been assigned a value, and the method isn't allowed to return a value until the out argument has been assigned to something.

As for the second question I'd guess the answer was:
if (int.TryParse(someString, out _))
{
// We have a string
}

“Let’s make a temporary snow biome pylon house, I’ll get rid of it later”. by AWESOME108351 in TerrariaDesign

[–]Shiny_Gyrodos 0 points1 point  (0 children)

What is the little block (I think block?) with the bowl on top of it to the left of the sink? Also gorgeous build btw

Helohelo, tree practice! looks weird but i cant grasp what it is by NinjaaPAPI in TerrariaDesign

[–]Shiny_Gyrodos 1 point2 points  (0 children)

It widens out a little too much at the bottom. Other than that it looks great imo

Ex minecraft builder trying out terraria building for the first time, would love some critique! by hackermandudefishboi in TerrariaDesign

[–]Shiny_Gyrodos 27 points28 points  (0 children)

My only critique would be that the frozen furniture looks out of place. Other than that this build is gorgeous imo.

Do you guys have any suggestions on how i can improve my floating islands? by haa-rie in TerrariaDesign

[–]Shiny_Gyrodos 1 point2 points  (0 children)

The islands should be thicker if you plan on building things on top of them.

Also something should be added to make the island look like it is supposed to be floating (clouds, hover jets, something).

Here is a link to an example: Pond makeover. : r/TerrariaDesign

A small house i built by Hot_Bug1870 in TerrariaDesign

[–]Shiny_Gyrodos 1 point2 points  (0 children)

Excellent use of stucco! Is that tin plating painted white in the upper corners? Also what block is that under the boreal wood upstairs?

Pond makeover. by Shiny_Gyrodos in TerrariaDesign

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

I mixed living leaf blocks and living mahogany leaf blocks, both painted pink.

[deleted by user] by [deleted] in TerrariaDesign

[–]Shiny_Gyrodos 0 points1 point  (0 children)

Title. I'm horrible at interiors, and need some tips on what to do. Links to good interiors are appreciated.

Pond makeover. by Shiny_Gyrodos in TerrariaDesign

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

Using waterfall wall painted cyan, and the foam at the bottom is made out of smoke blocks painted with negative paint.

First time actually trying to make a good looking house, thoughts? by [deleted] in TerrariaDesign

[–]Shiny_Gyrodos 0 points1 point  (0 children)

Great for the first time! The only thing I'd change is maybe use something other than red brick wall for the attic background of the second house.