Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Fellow self taught here; welcome to DevRant.
There is probably some cool way to go from enum to string via reflection, but I just use a function:
private string FooBarToString (int FooBar)
{
// Hardcoded to enum FooBar
switch (FooBar)
{
case 1: return “Foo”;
case 2: return “Bar”;
default: return String.Empty;
}
}
As for the 2yo cosleep thing, how comfy is your couch? -
KupoNinja427y@bkwilliams I haven't learned switch yet but when I talked to one of my old developer coworkers he brought it up when I talked to him.
As for my couch... Comfy but not 8 hr sleep comfy. I'm used to it now tho. Just actually ranting. :) -
@KupoNinja I switch between function and method, and when I’m really tired I will call them subroutines.
Related Rants
Budding Developer here...
I've tried to teach myself Web Dev over the past 10 yrs on/off... Sad. But now I'm actually in a developer role moved up from IT helpdesk a year ago.
In the past year I've learned SQL, SSRS, SSIS, database concepts, and.... VB6. I am a master at none due to having to cram so much in a year while taking on various projects, issues, and learning the organizations software infrastructure and processes. I also taught myself current HTML, CSS, and basic Javascript. Learning the different basic concepts with each.
Over the past couple months I've been given a new project and now learning ASP.NET and C#. Actually trying really hard to get adept at these as I'm finally doing Web Developing in my role...
I am also dealing with multiple major family issues and a near 2 yr old that we cosleep with that still doesn't sleep through the night.
Why the crap is it so easy to convert an enum to a string but takes 50 functions to convert a string to an enum???
Cast, convert, parse... Why so much logic???
When the online teacher says type why do I have to rifle through 7 different meanings in my head before I know what kind of type he's referring to??
rant
c#
enums
type
needsleep
life
newbie
isitoktodienow