Categories
Mastering Development Software

How do I use Rest Data Source API with access tokens?

I’m trying to get data back from an API without having to loop through an RDD, and I found the Rest Data Source Library on Git hub: https://github.com/sourav-mazumder/Data-Science-Extensions/tree/master/spark-datasource-rest The issue I’m running into is how to incorporate Access Tokens in with parameter mapping. When it comes to the supported options the descriptions has this for […]

Categories
Mastering Development Software

Python Refactoring on if-else and multiple print statements

I have started learning Python and have a scenario in the current project to benchmark a code snippet using refactoring in Python and increase the performance. Once finalized I will deploy it on larger data sets. I’m trying from my side and also looking for suggestions/guidance from you all. Thanks!! def test(x1, x2): if x2 […]

Categories
Mastering Development Software

How do document databases (like mongodb) store data behind the scenes?

For a couple of reason which need not be mentioned here, because they are rather complex, I need to program my own NoSQL document database in node.js. However, I am quite confused as to what is the best way to store this data. I’ve searched around on google, but most information is on how to […]

Categories
Mastering Development Software

Can DDD entity operate with other services/repository

I’m a DotNet developer and I try to design my project follow the DDD. What’s the operation(method) than a DDD Entity can do? For example, my entity class Node have the standard method Add, Edit. But now I need to return the NodeConfig, the node config is a class(dto) that have a subdata of Node […]

Categories
Mastering Development Software

“counters” tool “is not supported by the current version of Macos” on Catalina with latest Xcode

I’m trying to count cache misses using The Counters tool in Instruments, but it gives me an error that says "counters is not supported by the current version of Macos." I couldn’t find any announcement of that feature being removed, and rebooting my machine didn’t help. Can anyone confirm that counters has actually been deprecated/removed? […]

Categories
Mastering Development Software

Design an ASP.NET Core app with Azure Data Warehouse

For my company, I have to explore existing apps and architectures for an azure app. My requirements are to use C#, ASP.NET Core, and Azure. The datas are provided by an internet app (which follows the above requirements) which downloads CSV files in some classes. I am rather sure it will be done like this […]

Categories
Mastering Development Software

Structuring data effectively on cloud firestore

Situation: There is N number of users and n number of user groups (N >= n) where each user belongs to a user group. For example: group1 = [user1, user2], group2 = [user3, user4, user5], etc. How to structure this in a NoSQL database? The main issue here is that in some cases I need […]

Categories
Mastering Development Software

What is AUTOSAR? Is it a file structure?

I’ve gone through AUTOSAR Layered Software Architecture and understood that it is something like a file structure in which it is defined to have all the hardware abstraction in one directory and called as MCAL, and so on. Am I correct? Does a proper File Structure make a project AUTOSAR Compliant? If it is a […]

Categories
Mastering Development Software

c++ Novice: Issues assigning values to a custom type (union)

This is my very first post so I must start with an apology if I have failed to follow any of the site’s protocols. I am new to C++ and slowly getting my head around it so please bear with me. Basically I am figuring out the different built in datatypes/structures – vectors, pairs, tuples […]

Categories
Mastering Development Software

Worked example of a refactoring, with a high-level “architectural” diff

A long time ago, I saw an excellent presentation centered around a worked-out refactoring exercise. The presenter showed a working program, then applied various refactoring, and discussed the results. The thing that stuck to me the most was the visual diff used to highlight the changes. Blocks of source text were colored, based on their […]