menu
Wednesday, 18 October 2023
Explicit call to RequireJS in TypeScript
I’m working on a mobile application with Apache Cordova ((http://cordova.apache.org)) technology. And one of the tasks was to load a JSON localization file from the content folder. The first idea and actually the most correct (as for me) is to load the file with RequireJS text plugin ((https://github.com/requirejs/text)). The plugin allows loading text file in the same way as usual modules and do not evaluate the content, but return it as a string. So you just specify something like the following. When using TypeScript we can write And this will give us the following JS code of the module (In case of AMD mode in compiler) Unfortunately, it’s not enough in case of localization, because we have to load a specific html file for a specific locale (text!/locale/en/module.html). And we have to a...
Wednesday, 18 October 2023
How to protect your startup from being killed by developers. Part 2 – Should I use Scrum or other Agile practices? I have worked with startups as a tech consultant for over a decade. A tech startup is not just a technical solution. Many important things like funding and marketing make a business successful. hard I...