3. Third Party Frameworks | Nikita Verkhoshintcev


third party frameworks
Nikita

Nikita Verkhoshintcev drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce.


Main Points

  1. Why Guest’s company uses 3rd party ones, like Angular and React, in Salesforce app development
  2. Pros & cons between Lightning Component and popular 3rd party frameworks
  3. Simple introduction of Angular and React framework
  4. How to use other frameworks and pass on data technically
  5. Using the Soap and REST APIs in Guest’s Salesforce projects
  6. Risk analysis of 3rd party framework compatibility
  7. Angular v.s. React
  8. Simple scenario walk-through: using Angular in Salesforce project
  9. What Salesforce native code is needed in the 3rd party framework project
  10. A bit more about current JavaScript status- Why Guest’s company uses 3rd party frameworks, like Angular and React, in Salesforce app development
  11. Pros & cons between Lightning Component and popular 3rd party frameworks
  12. Simple introduction of Angular and React framework
  13. How to use other frameworks and pass on data technically
  14. Using the Soap and REST APIs in Guest’s Salesforce projects
  15. Risk analysis of 3rd party framework compatibility
  16. Angular v.s. React
  17. Simple scenario walk-through: using Angular in Salesforce project
  18. What Salesforce native code is needed in 3rd party framework project
  19. A bit more about current JavaScript status

Links


Contact Me

If you enjoy this podcast, please reach me out to let me know your thoughts or simply say Hello. My (Xi’s) contact info:

Take care, until next time :)!

Transcript

AI-generated, unedited.

[00:01] You're tuning to Salesforce Way podcast episode three.

[00:08] Hello everybody, Xi Xiao here. Welcome to Salesforce Way podcast. In this episode, I sit down with our guest Nikita to talk about his invaluable experience of using popular third-party frameworks such as Angular and React in building Salesforce apps. We discussed about why third-party frameworks are used, the pros and cons comparing to Visualforce page and Lightning component, as well as some technical implementation details, among many other interesting topics. So hopefully our discussion is as useful for you as it was definite for me.

[01:08] Hello, what's up, everybody? This is another episode of Salesforce Way here. So today, actually, we are gonna talk with. Is Nikita Verkhoshintsev with a topic about third-party framework used in Salesforce. Right, so so Nikita, why wouldn't you introduce yourself? Uh, so I'm Nikita. I am the founder of the small consulting company called Digital Flask, as well as I'm the UX lead at Flow Heaven, and we are doing the license interrelationship management software in the Salesforce. So it's the basically software available in the App Exchange for Salesforce organizations. Okay. Okay. Actually, I know Nikita, you is from there. Is like a local developer user group for Salesforce in Finland, right? Ah, yeah. You were given a talk over there with a similar topic, am I right? Yeah. Basically, in January, I was given a talk. About the using Angular and React as Lightning components for the Salesforce development. Okay, that's exactly the reason I want to invite you to here. Okay, so firstly, I want to set the theme actually for this episode. So we're gonna talk about like the third-party framework in terms of Salesforce. And like, why do we use it? And what's the benefit of using that? And I understand that it's

[02:38] not just like a hobby project. You really use it in the real life, a commercial kind of complex project. Yeah, we have been using it for our clients' projects, as well as at Flow Heaven, we are using the third-party frameworks for the front end part. What is the Flow Heaven? Ah, at Flow. What does it mean? Is a company or is a project? It's the company, but we have our software like platform project. Okay, basically we are selling it as a service, like software as a service on the AppExchange platform. Okay, and your. App or the software services used in the third party framework as well. Yeah, yeah. For the front end, for the front end part, we are using Angular JS instead of, for example, Lightning Aura. Framework. Okay, let let's start from the lightning part. So, so in Salesforce we have the native lightning components, right? Yeah, and you decided to use some other third party framework. Why is actually we even decided to use before Lightning came out, but okay, like still we are going to proceed with that one. You don't want to switch, no, no, basically. Why not? Should I don't know. Should we start with the benefits or the? What do you think? I have no idea. So because to me it's really natural because you know. Lightning component Salesforce company has been you know promoted for multiple

[04:08] years already, and of course. Like developers are learning that we try to develop stuff on top of Lightning components, but your company seems like using a different route. You try to use third party. So I want to you know get the feeling and understand you why do you choose? And you mentioned that you already used it before, but you didn't want to switch. So. There must be some thinking behind. Yeah, actually, there are a lot of things. First of all, I want to make a note that you actually can build Lightning components, and you can use third-party frameworks to build those components. So technically, you could build build the Lightning component. You can you can create the managed package. For Salesforce, which eventually will be a Lightning component, but it will be built with the third-party framework, that also possible. So you will be using it natively in Salesforce, but so you mean. Wrapping the third-party framework inside a Lightning component. Uh, yeah. Previously, Salesforce didn't allow that, but then I think that there were a lot of requests to allow. Okay, because a lot of companies actually using the third-party frameworks. For the Salesforce development, okay, but and your projects were using this kind of Lightning component wrapping, or is it different? We are using it in the Visual Force, not in the Lightning component. Okay, because technically we are managing

[05:38] it via the communities in Salesforce. So we like the whole community is just a Visual Force page with third-party framework. Okay, but regarding the benefits, I can start from the end actually. Okay, because all the benefits lead to one like major benefit for the business. Actually, it saves time and money for development. Meaning that it's like the faster time to market, the low development cost, maintenance cost, and etc. But how you can save money is basically because you can build things faster. There is like the great community of those third-party frameworks because they are much more popular than the Aura, for example, which is used for Lightning components.

[06:34] Developer experience in Lightning is kind of the pure developer, pure developer experience because all the errors are think sink somewhere. So you it's like it's really hard to debug. It's hard to develop. You cannot really develop in it locally. So you always need to like push it to the cloud. You cannot really take advantage of the latest version of the JavaScript code. Uh, it's kind of slow because I haven't seen the performance result. But it's even like based on the evidence, you can notice that rendering of the elements or re-rendering in let's say React and Angular is like. Working really fast, but in Lightning components, you can notice even like a few seconds delay. It depended on your list. So such things. Also maintainability. It's really hard to manage modules. You don't really have like native tooling such as, for example, TypeScript has the auto completion. You can provide strict types for the JavaScript code, which you cannot do in Salesforce. So all the things together basically. Like okay, then you decided that maybe you don't go with the Lightning component. Then you use the third. Yeah, it's much easier. It's easier to find new talents

[08:04] to work in your company and. It's much more popular. Even if you face some bug or whatever, it's much more easier to find the answer. Okay. For example, in Stack Overflow anywhere, because there's like hundreds of thousands developers who are using this technology. Okay. But they are not really using. Like Aura technology, technically you can build everything in Lightning components, but it's just a matter of time and maintainability. Okay. You mentioned a lot of terminologies or like the name of frameworks. Let's let's just recap a little bit in case somebody, some of our audience doesn't really know what it is. So you mentioned Angular. You mentioned React. I think these two frameworks they are like very popular, the leading popular ones in the open source. Uh, yeah, basically the the most popular these two. Yeah, and now also there's the Vue JS which is becoming more popular, but I haven't really worked with that. Yeah, and then overall. Framework, which is like the baseline, the foundation for the Lightning component, right? Yes. Yes. That's also open source project. Uh, yeah. Yeah. So technically, it's not the Lightning; it's called Aura. Aura. Okay. Lightning has some extra feature on top of Aura. Uh, probably. I'm not sure. That's what I understand. Okay. Yeah, might be. And of course, in the open source area, it's like a front end developer

[09:35] world. There's so many people, so many developers, comparing to just a Salesforce developer. So a lot of people contributing like in GitHub or in Stack Overflow, answer questions. So the community is huge. Also the all the libraries, etc. You can use like a lot of stuff. Like you don't have to reinvent the wheel. Okay, I don't even know our framework is. Was it originally from Salesforce or is somebody else developed it? I actually don't remember, but I think it was developed by somebody else, and then just Salesforce was supporting it. But I'm not sure. Okay, because I understand Angular. Originally, it was published by Google. Some ah, it's still supported by Google. Okay, so basically, behind Angular, there's Google, and behind React. There's Facebook. Okay, so these two gigantic companies are behind. But I believe that Google are not using Angular in their own projects. They're using React. No, okay. I think they're using something else, just built for their project. At least I know that YouTube was built on top of Polymer. Polymer, something like that. Okay, okay, okay. Polymer, yeah, another framework. Yeah, another framework. At least the new version of YouTube was built with the Polymer. Okay, React was used at Facebook at some time back in the days. They were using I don't remember for chat

[11:05] features or something like that, and then they decided to publish it as a. Framework, and the project that you have been working with—it's been like multiple years already, right? Ah, yeah, because several years. I want your words to really back up your experience. You know, you you kind of like decided to go go with this route. Really, like the benefits you gained was originally how you thought it was, right? Like the The development experience, how the the cost saving features, this and that. Okay, okay. Basically, the whole idea of every framework is to save your time on development. Okay, could you walk us a bit more about like the Architect of this area. So, how do you really put the third-party framework into this Visual Force page or a Lightning component? How the data, you know, information is flowing. This kind of okay. So, basically, to load your. JavaScript application. The only thing you need is to HTML file, which will bootstrap all your JavaScript files, which could be either the Visual Force page or it could be Lightning component or Lightning page. And to pass the data back and forth, you have to use API. So technically, you create the

[12:36] HTTP request to either send or receive the data, and in Salesforce you can use either SOAP or REST API, and there are also like different ways to do it. So for the SOAP, you can use web services. You can even create your own like manual SOAP request, of course, but there is also the available web services in the Apex. So you can register the class and create a method with the. Annotation that it is the web service. Then there are also the native features are remote actions. I think they're using the REST API. Okay, that's also one of the native things. And you can also create your own REST API endpoints in Salesforce. To do so, you need to create a class with the annotation of REST resource. Okay, and you can use inside different methods for get resource. Get requests, post requests, etc. Okay. Delete, put, and update. I think. So we can both create a custom SOAP endpoint as well as the REST. Nice. No, you cannot create the SOAP endpoint. Okay. Only REST. Okay. But there are a bunch of native SOAP endpoints in Salesforce. For instance, you can log in as a community user via the SOQL request. You can execute

[14:07] any method as a SOQL request as well. So you just need to provide only the name of the class, name of the method, and you can invoke the action. Basically, that was what the web service does behind the scenes. It does the SOQL request. Okay, so either you can use this wrapper called Web Service, or you can make it by yourself. So the SOAP API actually is already kind of sophisticated. You can log in even with the community user account, and then you can interact with the SOAP API usually without any problems, right? Ah, yeah. Okay. How about the? It's it's it sounds like the REST API has some limitations here. Um, actually, I would say that just the SOAP is kind of. The old technology, and it's not really native for the JavaScript applications, because usually you are sending JSON back and forth, which is JavaScript Object Notation, and SOAP request uses XML. So that means that if you receive the response, you have to parse the XML. Which is kind of, yeah, not the I understand, yeah, and with the rest, Salesforce automatically serializes the JSON for you, okay, and sends it. But for example, if you're using the web service with the SOAP. You have to make your response as a string, so you have to manually serialize the object and send it as string value. Okay,

[15:37] you cannot just like. Return contact, for instance. Okay, you have to serialize it. And some of some some of your project has chosen the SOAP API, right? Basically, the SOAP API was chosen only for one purpose. Okay, in one project, the thing is in Salesforce that that's really interesting that. Every user can log in using like different kind of APIs. You can use REST. There is also even the JavaScript libraries to log in as a user. Okay, but when we are talking about communities, they are something different, and community user is the only type of user which use the different path to login, and you cannot log with that features. And you have to do the manual SOAP request to Salesforce to log in as a community user, and the problem was that one of our project was actually to build the third-party community, which is hosted on their WordPress website. And what like users can go to their website instead of the Salesforce and log in with their Salesforce credentials, and then proceed to the portal. And there was a challenge actually to figure out how to log as a community user. Okay, that's also funny because, for example, community users they have

[17:07] this global username. That means that if you are like registered in one community, for example, in US, and you go to another company and try to register with that username, then you can do that. Yeah, you can do that. And basically, username is the email address. Right. So if it's already taken. I think it's for all all type of users. It's the same thing, at least for. I'm not sure, but community definitely that's the case. The others, I think so, because you. That's why when you use the same email address, you usually put like a dot sandbox at the end or dot partial. Just you know, just make it unique. Yeah. Okay. Can we use the soap for these limitations, and then use the rest for the others, so that we can share? You know. Uh, yeah, I think why not? Okay, but basically, that's the only use case when you have to log in as a community user, and you have your community like hosted somewhere else. That the only way, like the only use case where you have to use SOAP. For like, I haven't noticed any other like case in real life where you have. Like have to use soap, so usually you're using REST for everything, and even if the, for example, your community is hosted on Salesforce and you built it with the third-party library, you like you don't have to manage the login because it will be natively done by

[18:38] Salesforce. Okay, got it. The only thing you need when you make a login is the access token, basically the session ID. So in in Salesforce, it's the global variable, so you can just take it. Okay. But for example, if you build a third party application hosted somewhere, like okay in other place, then you have to obtain the access token somewhere. And if you have to obtain it for community user, you have to use SOAP. Okay, but rest of the stuff is just the pure REST API. Okay, it's good to you know have people like you to really dig a little bit deeper into this kind of authentication, handshake, and data communication. Because usually, like me as like a junior Salesforce developer, I just use the API to do whatever. It it allow us to do like in the Visual Force page or in the Lightning component. But the third party, you definitely had something that was not originally. Or natively supported, you have to find the way to do it, and luckily it's easy in Salesforce. Yeah, it's not so hard. Okay, okay. It was hard to figure it out, but. Yeah, there's no there's no documentation. Ah, not really. Okay, but isn't such a thing a risk that maybe in future releases it will break, or do you think it's a safe thing to do like this? I think they're still keeping the

[20:08] old API. Available all the time, and that basically the one of the best practices. Even if you check, for example, Google API, you can check that they still have the version two and version one, which is like the very old endpoints. But you still can use them only because, like some services, say. Using them, okay. So they cannot really deprecate it. Take it away and say don't use it. Yeah. So that's okay. But the recent thing I heard, for example, Instagram blocked some of their API. Okay. So yeah, you never know. Yeah, you never know. But this SOAP API, it was. It is basically what Salesforce uses by themselves to authenticate. So, kind of they cannot really remove it because they are using it. If they they can probably change it a little bit, but that's just the matter of like. Be up to date and also like change it due to the new features coming out from the Salesforce. Yeah. All right. Maybe then we can talk about. Angular versus React. So you have done project for both third party. So what is the reason behind that? One with another. How do you choose? Ah. Also, when I was given the talk, I remember I was mentioning that there's like the huge fight between the Angular fans and the React fans. Yeah, yeah. If you go

[21:38] to the internet, just Google for Angular vs React. You can find the bunch of articles and so forth. I personally think that there is no difference. Like, of course, there is a difference, but in terms of performance or like. Developer experience that doesn't really matter what to choose. I would say there are like couple of like the major differences. For example, the Angular has. Like it's really opinionated. It has one right way of doing things. It is it's used TypeScript, which is like the strict types for the JavaScript because it doesn't have types by default. Okay, and. For example, React. First of all, is just a library for the UI, but when we are talking about React, we mean the whole stack. So we have to choose React. You have to choose your router and all the things together, and that might lead, for example, for junior developers, for like. They might might make a mistake by working on the stack because all the architecture, all the decisions you have to make. By yourself, whenever Angular basically leads you with the best practices of how to do things. It's a bit lazy, right? In Angular, you just follow the way. It's kind of still there, like

[23:08] other ways. How to, for example, if you build a large scale application, there's still like you need to. Think about the architecture and all the things. How you would maintain it with a huge team, for example. But in general, yeah, it has some things that you can just follow. And that's actually I like it because you know you had it has the strict rules, like which you could follow. Personally, when I was choosing the framework, it's like. For every project, not even like the frontend development, I would say that if you want to build something, like what language to choose, what. Like database to choose, I would say that it's better to choose technology which your team is more experienced with. And for example, for Salesforce development, like all all of our guys from the team, they're like Salesforce developers. They are familiar with Java, and this TypeScript syntaxes is like compelling to them. It means that. They can understand better because if you would see the normal JavaScript, it's kind of hard for them to understand, but. Angular uses this MVC or MVVM pattern, which is also familiar for the Java developers, as well as these types, etc., different annotations. It's

[24:39] it's easier for them to understand, and we already had experience with Angular, so we decided to go with that. Okay. And for the enterprise development, it's like the solid choice because of the tooling. All these strict types, etc. A lot of big companies actually using Angular. Yeah, must be. No, Angular is slightly older than React, right? Ah, yeah. Yeah. In terms of like the documentation and the senior developers, maybe Angular has a bit more advantage over React. Yeah, okay, but I would say that in most like enterprise use cases, they use Angular. For example, for startups and like small companies, it's probably easier to go with React because there are a lot of talents. Is easier for juniors to start with because you don't have to learn some. Really,

[25:30] it's different from my experience. You know, I used to try to learn a bit React, and then searching the internet, there is so many articles, so many GitHub repos telling you, okay, you just follow these articles. It's a long list that you get to understand what React is. But Angular, in the other way, is like a. It's easy to follow, to me, and MVC is kind of like a really understandable way, at least to me, as like a kind of traditional guy here. So yeah. Probably the tutorials and documentation is better, but at least in React you don't have to learn the Angular specific syntaxes, for instance. And NG stuff. Yeah, at least a lot of things pointed out. But I don't know. I didn't like. I haven't found any problems with learning that. Okay. Okay. Not really hard. It's your talent. Yeah, yeah. Might be. But at least I heard from a lot of people that React is easier to learn. To start with, for the junior developers, one advantage that I think React has it has this React Native. That can help people to build the mobile applications. Actually, for Angular, there is also the framework called Ionic, which allow you to build applications for mobile devices. Okay, okay. And you can also add Electron JS and build application for desktop. So technically, out of the box, if you combine all these

[27:00] three, you will have one. Project with Angular code, which could be published to web, every mobile device, and every desktop application. Okay. And for instance, Slack, Spotify, or WhatsApp—they basically are JavaScript applications. Just used Electron to run it on the desktop. Okay, that's that's cool. Yeah. So. That's that's really nice that you can build just one application and publish it like everywhere ecosystem. Yeah, publish everywhere. Okay, that actually means that you can create your Salesforce community or Salesforce application and install it on your mobile phone or on the desktop. Okay. Also, kind of nice. There is no such a thing that you miss from Lightning components or the native Visual Force features that you don't have in the third party. Or. Hmm, I think no. We're kind of opinionated in this episode, but yeah. Okay, I want to come back to one really interesting feature you mentioned. It's that, like the the Angular, for example, the Angular framework, we can debug, we can develop on the local environment. Uh yeah right, but the Lightning component, the Visual Force page, we cannot because it's a cloud. It's running in the cloud. You always have to push

[28:30] your code to the cloud and refresh the the browser to see what's the the difference, right? Uh yeah because they compile the code in the cloud yeah yeah and sometimes it takes like it doesn't refresh on the first time you know that that might happen I see that yeah but can you like hundred percent be sure that everything you render in the local environment is exactly how you will see in the cloud because maybe there's a little gap. It really depends on how you will build your application, but technically, the you are using the same browser locally and. In the cloud, so it should render the same way. Okay, because the only difference is, it's not really difference, but you have to pull the data from, for example, cloud from the Salesforce database, right? Yeah, but the things how you render them, they're the same on local machine and in the cloud, so there is like okay, no difference in that term.

[29:38] Cool. Um, I want I want you to walk me through. Let's give example a simple Angular project. I want to insert into Salesforce Org. To make sure it will run over there, do you like upload all the Angular static files like HTML, JS, CSS to static resource folder in Salesforce, and then somehow yeah request from as alternative, you can reference it from somewhere else. But yeah, you can like a CDN. Yeah, you can use CDN for that purpose. Okay. If we are talking about the Lightning components. I think it's even possible to have as an iframe your application because they are using it. For example, if you will add in the App Builder Visualforce page to a Lightning component. Or Lightning page. Okay, they will render it inside the iframe because they're using iframes for everything. And technically, you can reference your application from outside to this iframe. But usually, what we have been doing, we have been loading it, uploading it to the static resource. Okay, and then reference it from the static resource either in Visualforce page or in the Lightning container or component. And that's it. And that's it. Yeah. Because technically, Visualforce page is rendered as the HTML file, and it will just load all the scripts which you will provide. Okay, the same thing with the Lightning component.

[31:09] Okay, so the developers locally develop the page, the Angular page, let's say, and then test the debug, and then once it's ready, they can somehow upload this this static. Files into the static resource in Salesforce, and then see the final result. Yeah, that's that's like the development process, right? Yeah. Hmm. Interesting. So you don't debug in the cloud anymore, unless you see this kind of difference. Then you come back to the. Either you can make it so that, like, on every change, you will even publish the static resource to the cloud to see the real-time changes with the real, kind of environment. Yeah, but I think if you can obtain the access token or session ID, for example, by logging from your ID, you can use it to retrieve data directly from Salesforce on your local machine. Meaning that you can run your local server on your local machine. Run your application, and it will just get the data, real data from your org via the API, but it will work on your local machine, and will have this. Hot refreshing that when you make changes it will like reload the app. So instead of directly call the remote Salesforce API, you call the local server. Local server fetches the data from remote from Salesforce from Salesforce. But your JavaScript application will run on the local server.

[32:40] Okay, that only to render the page and then fetch the data and display in the in the page on your local environment. Yeah. Also, as alternative, you can even make the mock data. Then you don't even have to make any real request to the Salesforce, and you can develop with your mock data. Let's then zoom out to the project level. For all these projects you have done so far with the third-party framework, you basically on the Salesforce side you only write the Apex code for remote service. Ah, yeah. When you are using the third-party frameworks, yes. But from my experience, I also been working with Lightning as well. Okay, and with Visualforce page a lot. Okay, so is the what type of code do you need to write in the Salesforce native, like a Visualforce page? If you are using third party, you have to write only Apex. Okay. And the only thing you'll need is to bootstrap your application in either Visual Force, or Lightning Component. Okay. And everything else is done in your JavaScript app, which will be located in static resource. Okay. And that's also the good thing to use these third party libraries to. To make it not so heavy for the Apex, because you actually can perform a lot of actions on the front end side, and

[34:11] it's kind of it's more scalable in terms that it doesn't matter how many users are using the application at the same time. It doesn't load. The system because like every user perform all the actions in their own browser. Right, right. So that actually helps shift the computing from the server side to the client as much as possible. Okay. Because sometimes I know why my my power uses so quickly my mobile nowadays. Yeah. Okay. But a lot of things you just don't have to perform on the backend side. For example, some of the re-rendering features. If you use the native Visual Force with these Apex tags, you know you can like sort the list. For example, if you want to sort the list, what you would do? You have this Apex repeat with the list elements, right? Right. You have to make the call. You have to change it in the controller and re-render it. And it actually really slow in the like Visualforce, but in Angular or React, for example, they use in this Shadow DOM, which basically, like, the I don't know boilerplate for the original DOM in the browser and. It performs this sorting almost instantly. You can even sort like thousands, ten of thousands lines or objects, and it will re-render them also like instantly, really, really fast.

[35:41] And you can use the pagination and like the only thing you change is like to update the value in the controller, so it will be sorted. You don't have to make the call, a necessary call to the backend. Like, please sort this list. Give me back. Then it will re-render the whole page, etc. So that helps in terms of performance. And for example, if we are talking about. Data visualization that will be really hard to implement on the Salesforce native. Okay, unless you use the native dashboards, reports. Uh, yeah, yeah, they they of course have this native, but I even know that in your company you had these customers which are like were needed the custom data visualization. Right. Yeah. So that still like appears. Okay. And if you want to really make some, like. Custom and really complicated stuff, because usually I don't know. I I remember I have seen one webinar from IBM. There is this data visualization, and they were thinking about the design-driven data visualization. When you don't really like visualize the data, you create environment for your users that they can manipulate with the whole environment. Like, so they can go deeper. They can see different metrics. They can like filter, etc. Okay, it doesn't really like possible with the

[37:11] dashboards if you want to try to make it interactive. Okay, it's like a visualization two point zero or point nine. I don't know. I don't know either. But okay, yeah. I mean. Totally, we understand. Like in the front end area, it's exploding. It's like every day there's a new framework out there in the GitHub, and people just like massively contribute their time to the Angular, to React, and people really love those those framework. But not even the frameworks, even the language itself, it improved a lot for the past like three or four years. JavaScript, yeah, JavaScript. Because when came ES two thousand fifteen, the ES six, it's also called, did bring so many new features and it's like become really popular. And now, actually, I really like to work with the JavaScript. But I know that a lot of people even not consider it as a language, but yeah, yeah. Yeah, it used to be just like a toy, a toy, in the browser, just to display something and change something. But nowadays, it's really yeah. The current state of the language is really good. If any audience, any listener didn't know how how powerful JavaScript nowadays is, then really go to the GitHub to check how many GitHub repositories about JavaScript. Go to Stack Overflow to see how many. Questions of over there about JavaScript, right?

[38:41] Yeah, and there is also the new modern trend is the progressive web applications. I don't know if you heard about them. Progress is okay. Tell me. Basically, now the JavaScript allows you to run the application on all devices, as we already know. And Google and Microsoft are really pushing it forward. That instead of the native applications on your phone, you have to use. Web technology and the progressive web applications. You can use them offline, meaning that you there is the new thing called service worker, and you can cache the data and use it offline. And the coolest thing is that you actually can cache the REST API requests. So, for example, if you load API request to retrieve contacts from Salesforce once, it will remember it, and if you don't have. Access to internet on your mobile phone. You can open it, and it will load the previously returned value from the API. Ah, so the data will cached. In the service worker. Yeah, you can specify if you go to an airplane, then it's like a yeah because though we have like the really good internet, but it's not really good everywhere. Like still hotels, trains, airplanes, or some countries don't have like the good internet. But you still have to use something, and the progressive pop-ups

[40:11] are meant to be used in the slow networks. So mobile networks, even offline, and there are like the huge list of like what should be considered as a progressive web application, and you can just check the checklist. Even in Google Chrome, they have this audit, which is called Light. House, and you can audit your web application and see what should be done to to make it the progressive web application. And that's really good that Angular, for example, in CLI, if you will create your application and provide the flag like service worker or progressive web app, it will even prebuild it so that it will already use the service worker. But regarding the, it's not, by the way, supported in Safari browser. But they already promised it in the next release. And regarding the different like app stores, for example, Microsoft already allow you to publish your progressive web application as the native app in their store. I don't remember how does it called. Okay. But I think that in near future we will see them also in App Store and Google Play. Okay. Unfortunately, we don't have like a Salesforce expert here on the spot. At least I'm not in two months in Salesforce because I also want to ask in the Salesforce the offline feature because we have this Salesforce mobile, right? That can

[41:42] talk to the Salesforce backend to render in the mobile applications. It must support certain offline features or something. Right, but it's kind of. I'm not sure. Okay, yeah, maybe our listeners could give us give us the news later to to tell us, because it's kind of um sad here. I'm I'm kind of a newcomer in in Salesforce. There, there. Definitely, a lot of powerful things in Salesforce. Like you, you don't don't need to code everything. A lot of things you can do with a declarative, declarative way, like point and click. That's really, really powerful. But in terms of like the things you mentioned offline, or Compile develop locally those things are just are not available. Of course, also partly because because of the cloud feature, yeah. But it's kind of like competing with the front end technology. You have the service worker, and then Salesforce need to come up with its own thing. But unless we really embrace embrace the things from front end. Right. Yeah. All right. For this episode, maybe we can wrap it up. So I we talked a lot. And by the way, do you have any like a boot up template for people to play around, like in GitHub? Do you have? Ah, I don't really have any. I was preparing one GitHub repository for the talk, okay, which

[43:12] I had recently for the local developer group. But does not work anymore. Ah, it does work. Okay, yeah, we can probably put the link to that repository. Yeah, we will add it to our show notes of this episode. Yeah, but that basically just a very simple example, and it like requires couple of many old tasks because it was kind of. To lazy to automate everything. Nobody will will will care about it. But now we really want to, because for me I want to have a quick look. Like how what what things I included in the package and how do you upload it to static? Can I see like a dummy page already rendered? In Salesforce, that could be okay. That's actually in place in that repository, and basically, I have different branches for different ways to like manipulate with data. Okay. So there is six branches, I think, three for Visual Force page and different methods to pass and retrieve the data, and three for Lightning components, and there is like the short description of how to use those. If you want to contribute, you can also edit the description. It's also kind of like short one. Yeah, everyone can contribute. That's the the good thing in GitHub, right? Yeah, all right. Anything else you want to say before closing? I think no. Okay, cover a lot of things. Okay, I don't know if it's kind of messy or not. But yeah, it's really good to chada like yeah, without writing code, right?

[44:42] Yeah, talk talk all the time. Yeah, good. So thank you, Nikita. What we will do is in the show notes we will put the topic we have discussed in this episode, also some links you mentioned. Some project sites and your company. Yeah, I think we also can put some links for the JavaScript, basically for third-party frameworks or different tools. So if people are interested, they can go and check. Check it out. That's good. Yeah. Thanks, Nikita. Yeah. Thank you. Talk to you later then.

Leave a Reply