Where to go from here...
Ive been learning Web API for around a month and a half now and am unsure where to go from here, i can understand most "intermediate" Web API code but sort of struggle writing it from scratch as it feels theres a lot to remember.
Ive made some CRUD projects and id like to continue making more but it feels a bit pointless as most of them feel like the same code just repackaged to do something different.
If any other people experienced in Web API could give me some sort of advice as where to go/what to do from here i would be VERY grateful!
16 Replies
Most API's, by design, are simple CRUD projects with the complex business logic implemented in another service. That's how things are generally handled where I work at least.
What exactly do you classify as "intermediate" API code? It sounds like a very subjective definition.
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/just something like this, i understand everything in this but id struggle writing it from scratch without having it on a monitor to reference
https://paste.mod.gg/udxlbxxzntxh/0
BlazeBin - udxlbxxzntxh
A tool for sharing your source code with the world!
yeah, i just still feel very beginner in comparison to people ive spoken to & people i see
The only way you'll get more comfortable is by picking up more complex projects for yourself to work on.
100%, i just struggle for find a median between "i actually have no idea what the code im writing does or why im writing it" OR "this is too easy and i just feel im repackaging my old code".
do you have any recommendations or somewhere i can find open source projects to use as reference, ive spent some time searching github but can mostly just find projects made like 12 years ago with logic that doesnt apply now haha
Personally, I wouldn't use a sample project as a reference.
$projects
Collections of application ideas that anyone can solve in any programming language to improve coding skills:
https://github.com/dotnet/dotnet-console-games
https://github.com/karan/Projects
https://github.com/florinpop17/app-ideas
most of those things there come as the more u work with it, repetition... and u will eventually naturally remember most of it
and for every new thing u start working with u will have the entry barrier of rememring having to check docs and whatnot
its not uncommon
this is very reassuring to hear, i definitley can write more from scratch than i used to be able to but it feels like people you see on youtube or in here are on a whole other, unachievable, level
when you work with asp for say 10 years and write nearly the same code for that amount of time yeah
things comes naturally
nearly the same code by that I mean the API of what u work with
like routers
etc
u know what they are how they work, so u know what u will write to do what u need
and those things come with experience, practice, and working with it
thank you both for the advice, ill keep going at it, making new projects, & hopefully continue improving!
My recommendation, if you've already got the basics of ASP.net down, is to try and create a basic image gallery webapp. Can start out extremely simple and is easy to tack on more features to as you progress.
yeah I concur with ded
get your hands dirty
Entity Framework, Custom DTO mapping and with mppers to learn both
pick projects idea that interests u and try to build them
i.e.: api for image gallery or api for url shortering
or real state search
air bnb blog ideias are every where
just dont set the bar too high that u wont reach it or that it will be a lot more work then u can account for
go small do smaller parts
and do them well
and then put the pieces together
sounds good! will defintley try that, thank you for all the advice!