I learnt how to make a script to kill a port (to stop a localhost server) by calling an npm command that runs a js file that runs a PowerShell script. Works like magic.
It was my first time touching a PowerShell script so this gave me extra points :D
This week I learned more about the Net Core Request Pipeline.
Especially, that when using a controller with non default ActionResult return type, like for example BadRequest(), that these ActionResults will get wrapped in another ActionResult, which makes unit testing kind of tedious. E.g.:
// controller method[Route("{id:int}")][HttpGet][ProducesResponseType(StatusCodes.Status200OK)][ProducesResponseType(StatusCodes.Status404NotFound)]publicasyncTask<ActionResult<Author>>GetOneById(intid){Authorresult=await_authorService.GetById(id);if(result!=null){returnresult;}else{returnNotFound();}}// tests[Fact(DisplayName="Should return correct author by id")]publicasyncTaskShould_Return_Author_By_Id(){// arrangevarexpected=fixture.authorList.Where(author=>author.Id==1).FirstOrDefault();// actvarresult=awaitcontroller.GetOneById(1);// assertAssert.IsType<ActionResult<Author>>(result);Assert.Equal(expected,result.Value);// Using Value since ReturnType is ActionResult<Author>, so we need to access the value}[Fact(DisplayName="Should return NotFound()")]publicasyncTaskShould_Return_Author_NotFound(){// actvarresult=awaitcontroller.GetOneById(999);// assertAssert.Null(result.Value);Assert.IsType<ActionResult<Author>>(result);// check method return type matchesAssert.IsType<NotFoundResult>(result.Result);// check actual return is as expected}
I've learned about Chakra UI. Also learned this week that UI Fabric decreases my productivity, so I will be better away from it. Last but not least, learned how to integrate Remote Func with Next.js
Ease of Styling: Chakra UI contains a set of layout components like Box and
Stack that make it easy to style your components by passing props
Learn more
Flexible & composable: Chakra UI components are built on top of a React UI
Primitive for endless composability.
Accessible. Chakra UI components follows the WAI-ARIA guidelines
specifications and have the right aria-* attributes.
Dark Mode 😍: Most components in Chakra UI are dark mode compatible.
Support Chakra UI 💖
By donating $5 or more you can support the ongoing development of this project. We'll appreciate some support. Thank you to all our supporters! 🙏 [Contribute]
Got some time to clean up my bash prompt by adding a random emoji to it. This was way more fun that I thought it would be.. (also there’s a bug here that’s fixed in a follow up commit 😅)
How’s it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK 🇬🇧
Education
11 plus years* active enterprise development experience and a Fine art degree 🎨
I learnt to incorporate different React Native libs with each other + with React Hooks!
Also learnt a bit of GraphQL for making a schema for a custom api :)
I learnt how to make a script to kill a port (to stop a localhost server) by calling an npm command that runs a js file that runs a PowerShell script. Works like magic.
It was my first time touching a PowerShell script so this gave me extra points :D
This week I learned more about the Net Core Request Pipeline.
Especially, that when using a controller with non default ActionResult return type, like for example BadRequest(), that these ActionResults will get wrapped in another ActionResult, which makes unit testing kind of tedious. E.g.:
Mario approves. He's just not sure which pipeline to jump into 😉
I've learned about Chakra UI. Also learned this week that UI Fabric decreases my productivity, so I will be better away from it. Last but not least, learned how to integrate Remote Func with Next.js
I haven’t tried it yet, but I’ve heard great things about Chakra UI.
⚡️Simple, Modular & Accessible UI Components for your React Applications
Build Accessible React Apps with Speed⚡️
Chakra UI provides a set of accessible, reusable and composable React components that make it super easy to create websites and apps.
Looking for the documentation?
Here over here => chakra-ui.com
Features
BoxandStackthat make it easy to style your components by passing props Learn morearia-*attributes.Support Chakra UI💖
By donating $5 or more you can support the ongoing development of this project. We'll appreciate some support. Thank you to all our supporters!🙏 [Contribute]
Individuals
Organizations
Support this project…
Got some time to clean up my bash prompt by adding a random emoji to it. This was way more fun that I thought it would be.. (also there’s a bug here that’s fixed in a follow up commit 😅)
I've learned about writing example tests on Golang, to show the code on
godoc.I also learned how to deploy an application on GCP App Engine. :D
Finally understood a lot on react and got my hands dirty with it. Hoping to learn more and go down further
Noice!
That I am more versatile than I think I am.
Developed an application on Springboot. Exposed rest end points. Created automated tests using Postman. It was a fun excercise.
I learnt to incorporate different React Native libs with each other + with React Hooks!
Also learnt a bit of GraphQL for making a schema for a custom api :)
Got my hands dirty with jQuery and DataTables.
Today I learned about twitter.com/visualizevalue hands down the best twitter account to follow 🤘🚀
did you use Buefy? it's really good!
Finally learned how to lift up state in React. T_T I'm still a little bit confused about the subject but at least I got my app to work.
What are you confused about? Is there anything I can help you with? Been coding with React Native + React for a year now :)
I made my first typescript github actions, and in another one, I use awk, which for some reasons I neglected before.
I learned a PHP class to generate PDF barcodes from the Square API to generate barcode labels for my retail shop.
Learned the basics of VueJS! I'm already making my first app
Vue and CommonLISP. Both are cool!
Noice!