Menu
  • HOME
  • TAGS

Aspect of DB architecture

database,database-design,architecture

That depends on how you estimate the degree in which your models will diverge with passing time. If you expect them to be too different, I would say - create separate tables. If you expect them to share much - go for one table. There is no rule of the...

Application & Database architechture

.net,database,database-design,architecture

Converting from one DB type to another is really quite rare: in 35 years I've done it once: from Oracle to SQL Server. That was an exceptional circumstance: a very old version of Oracle running on a VAX that had not been supported by anyone for years and which had...

Why doesn't JavaScript get its own thread in common browsers?

javascript,browser,architecture,software-design

User Actions Require Participation from JS Event Handlers User actions can trigger Javascript events (clicks, focus events, key events, etc...) that participate and potentially influence the user action so clearly the single JS thread can't be executing while user actions are being processed because, if so, then the JS thread...

How to asynchronously send data to a client via a different application path?

web-applications,architecture,scalability

Not sure what you mean by in a typical web environment the client is connected, or tethered, to a specific server, say server A Usually, you would still have several web servers behind a load balancer to handle high volume and when a user is navigating through a site the...

Salt minion inside docker container?

architecture,docker,salt-stack

You can do either or both. The two options have different purposes. Here's different ways you could use configuration management: Salt for building an image Rather than writing a more complex Dockerfile to install and set up your code, your Dockerfile just says something like FROM saltstack/ubuntu-14.04 RUN salt-call <...>...

Should I create another model for admins? Or what's the best way to do it in Ruby on Rails?

ruby-on-rails,database-design,architecture

Though your question can have a wide range of answers to it, yet I shall suggest you the following: You can use cancan for authorisation and access management, or you can use pundit There is however another option rolify, which is used for role management and can be used in...

Corba Async call issue

java,asynchronous,architecture,corba

I've understood the problem and solved myself, posting github link: PJS

How to use single object and fill its properties throughout all sub process in single webapi request?

c#,design-patterns,architecture,asp.net-web-api2,simple-injector

I assume this ProcessDetail object is some sort of entity that you want to persist in your database (using EF or another O/RM of some sort). How to do this, depends a bit on your exact scenario. In case command handlers don't get nested (my prefered approach) and you don't...

Architecturing method inheritance / hiding method in child class

java,oop,design-patterns,architecture

If I get your example correctly, you can achieve that by Generics: class Graph<T extends Node> { public void addNode(T node) { ... } } class DFA extends Graph<State> { @Override public void addNode(State node) { ... } } ...

More generic TryParse() of line of a PLY file

c#,parsing,inheritance,architecture

Disclaimer: So this is more like a code review (you have deleted your question to early on http://codereview.stackexchange.com), but it should address your question. Based on the nameing guidelines input parameters should be named using camelCase casing. I don't see a reason, why you have overloaded TryParse() methods for the...

How can I share a class library between multiple applications?

asp.net,dll,architecture

Don't do this. Everything will be fine for ages, and then an error will creep in and all your sites will go down at once. Instead look at automating your build, test and deploy cycle with tools like TeamCity, NUnit and OctopusDeploy that so that you can regression test each...

mips converting to assembly

architecture,mips

Do not use $1, it's usually reserved for assembler as $at for pseudoinstructions. Your code could look like this addui $5, $1, 0xFFEC # or a-20 in twos complement, but it should be the same addu $5, $5, $2 # addu $5, $5, $3 # subu $5, $5, $4 #...

C# Code design / Seperate classes for each TabControl

c#,oop,architecture,software-design,code-design

Place a UserControl on each tab.

Some doubts related this Swing MVC implementation. Opening a database connection should be a Controller task?

java,swing,design-patterns,model-view-controller,architecture

So, MVC doesn't actually explicitly address persistence. There are really two schools of thought here. Bake it into the model, so that the model becomes "self persisting". Or do it in the controller. Opening it in the view layer is absolutely not accepted practice. There is a definite mixing of...

Communication between desktop application and web frontend

html5,architecture,go,websocket

Are you trying to connect to the JavaScript Frontend from your desktop application? If so, I can think of the following options WebRTC. It's supported by Chrome (and Opera) and Firefox. Chrome Native Messaging, this only works for chrome obviously, sends/receives info from stdin/out of your desktop application. Overall I...

Database externalization in Onion/Hexagonal architecture

architecture,domain-driven-design,onion-architecture

Is it ok that ARepository implementation makes some SQL joins to "B" tables? Yes, an aggregate can load shared pieces with other aggregates. Is it ok to design some generic filter criteria object and each UseCase will create own criteria and use it to pass to ARepository::filterByCriteria()? Is it...

How Do SaaS Companies Deal With Corporate Clients That Have Restrictive Firewalls

security,architecture,firewall,saas

in company I've worked we had very similar problem. The solution was really easy, if the firewall was the true problem, client had to add an exception to firewalls rules for the application.

architecture layering and unit of work pattern

architecture,repository-pattern,unit-of-work

There is many concepts in your question that don't relate only to the technical part. I've been there trying to solve it technically but this always fails in the long run. What is important is also what a business expert have to say. This is where Domain Driven Design shines...

Indirect Addressing Mode

architecture,mode,operand,addressing

For the purposes of the question, assume that an address is stored in memory location 10. After all, this is what a real CPU does. If the address turns out to be invalid, the CPU will likely send a signal or terminate the offending process. Assume memory contains: 10: 100...

Referencing two adjacent rows in a relational database

sql,database,architecture

First, there is no such thing as "adjacent" rows in a relational database. Tables represent unordered sets. If you have a concept of ordering it needs to be implementing using data in the rows. Let me assume that you have some sort of "id" or "creation date" that specifies the...

Get instances using runtime data in Simple Injector

c#,architecture,dependency-injection,inversion-of-control,simple-injector

After doing some more searching I found some documentation on resolving instances by key and implemented an ActionFactory which manually registers each type. public class ActionFactory : IActionFactory { private readonly Container _container; private readonly Dictionary<string, InstanceProducer> _producers; public ActionFactory(Container container) { _container = container; _producers = new Dictionary<string, InstanceProducer>(StringComparer.OrdinalIgnoreCase);...

Where to format collections / objects

javascript,backbone.js,architecture,project-structure

[...] models, views, controllers, repositories, presenters, components and services. Where would you expect it? services, mos def. This is a interception service for parsing data. Should I call it a formatter? A transformer? Well, trasformer (or data transformer) is actually quite good IMO. data interceptor also comes to mind,...

Segregating the read-only and read-write in Spring/J2EE Apps

mysql,jpa,design-patterns,architecture,spring-data

When using MySQL, it is common for Java developers to use Connector/J as the JDBC driver (since this is the official JDBC driver from MySQL). Developers typically use the com.mysql.jdbc.Driver class as the driver, with a URL such as jdbc:mysql://host[:port]/database. Connector/J offers another driver called the ReplicationDriver that allows an...

MVC Web application architectural concern

c#,asp.net-mvc,web-applications,architecture

You have to split the front-end part from the back-end part. The front-end is the MVC application, consisting of models, view models, views and controllers, and in fact is your presentation layer. The backend consists of: Services layer Application layer Domain Layer Infrastructure Layer Basically, your controllers use the Services...

How to organize my code?

laravel,optimization,architecture,laravel-5

Your question is a little vague and will likely attract downvotes as being "too broad". That said, here's my take on this... The biggest issue I see is that your application structure is very different from the recommended L5 structure - or even the standard MVC structure - that it's...

Where does Elixir/erlang fit into the microservices approach? [closed]

architecture,erlang,docker,elixir,microservices

This is a very open question but I will try to illustrate why Elixir/Erlang may be the best platform out there for developing distributed systems (regardless if you are working with microservices). First, let's start with some background. The Erlang VM and its standard library were designed upfront for building...

Saving data to file - What object should be responsible?

java,junit,architecture

You definitely want the saving to be storage agnostic. I would suggest to have a (separate) abstraction of the storage and then implement it. This way (especially if you want to run different kinds of analysis on the data) you might be able to tweak performance on data persistence and...

Architecture/Design - Where to store app configuration?

php,laravel,design,architecture

There are generally two possibilities for such configuration: app/config http://laravel.com/docs/4.2/configuration config tables in DB Which one works better for your case depends on: How often does the configuration change? Almost never, then go for files. Quite often, then go for DB Who should be able to change the config? Only...

Mixing DAO and service calls

java,design,architecture

I would turn your question around and say - why not have a service layer for such a method? Is it such a pain to wrap a DAO method like: public class PersonService { ... private PersonDao personDao; ... public List<Person> findAll() { return personDao.findAll(); } ... } Client data...

Clojure Architecture like Uncle Bob did

architecture,clojure

The key element for Uncle Bob's clean architecture is dependency inversion. There are multiple ways to implement this with Clojure: using higher order functions and protocols are probably the two most relevant (shameless plug for a blog post of mine on dependency inversion in Clojure). E.g., you could define a...

How to scale a trie across multiple servers

architecture,system,scalability,distributed-computing,trie

Ok, given the assumption, that both of your machines have the same resources available, let’s first look at a simpler example: how would you scale a binary tree? Or even better - an AVL tree? There are several examples to do this: If there would be only 2 machines and...

How to integrate different data struct into one ? Any design pattern or exprience?

c++,design-patterns,data-structures,struct,architecture

The keyword here is abstraction. Here is one way of doing it : #include <iostream> struct s1 { int s1Price; int s1Volume; }; struct s2 { int s2Price; int s2Volume; }; class Idata { public: virtual ~Idata() {} public: virtual int getPrice() = 0; virtual int getVolume() = 0; };...

ASP.Net Architecture solution/suggestion

c#,asp.net,wcf,architecture,windows-services

Is this a good architecture? Agree with other commentors, you can do your entire solution in ASP.NET using something like hangfire to handle the background tasks. I have used this framework in my current project to handle different types of long running tasks and it's rock solid, especially combined...

What is meant by the most restrictive type in C?

c,architecture,malloc,long-integer,memory-alignment

CPUs often require that (or work more efficiently if) certain types of data are stored at addresses that are a multiple of some (power-of-two) value. This value is called the alignment of the data. For example, a CPU might require that four-byte integers be stored at addresses that are a...

C#, Unity IoC: Registering and resolving generic interfaces, good practices

c#,generics,architecture,unity

If each provider is a different concrete type then this approach, albeit verbose with the empty interfaces, is valid. Another, less verbose, solution would be generalise the configuration access so instead you have a single configuration 'service' that returns any one of many specific config blobs. Eg configProvider.GetConfig<IWhateverConfig>(); This way...

The maximum number of objects that can be instantiated with a Django model?

python,django,mongodb,python-2.7,architecture

How many objects can be instantiated from the model SearchQuery? If there is a limit on numbers? As many as your chosen database can handle, this is probably in the millions. If you are concerned you can use a scheduler to delete older queries when they are no longer...

Libgdx: Objects creating other objects

java,android,architecture,libgdx

From an OOD perspective, I'd have a third class that knew about creating balls. I'd instantiate it in Main, and pass it into the Ball class in the constructor. You could call this class BallFactory. The Ball class would call addRequest() when it wanted to create a Ball, and the...

CQRS and calculations

architecture,cqrs

CQRS does not say that you should pre-calculate everything in the write side. When the state of the system changes through a command, events are created and projections listen to these events and create a model that can be used for querying. What this model looks like and what it...

How to use MessageQueue in Crawler?

architecture,web-crawler,message-queue

what it does next? How it separates found links into processed, discovered and the new ones? You would set up separate queues for these, which would stream back to your database. The idea is that you could have multiple workers going, and a feedback loop to send the newly...

Consensus between DDD and Enterprise Architecture

architecture,domain-driven-design,enterprise,architectural-patterns

DDD and SOA play well together. Usually service boundaries match with your bounded contexts. You design cross-context communication using SOA and it all works. EA does not go deep into how you develop your "services" inside but DDD helps you there.

validate Username/Email REST endpoints HTTP method

rest,architecture

For a service that verifies something using the HTTP method GET would be the most appropriate. Essentially you are asking for an existing resource at it's current State, except the resource you are returning is the verification.

What options are there for transferring one particular webapp user's data onto another DB instance without suffering PK collision?

sql-server,database,web-applications,architecture,uniqueidentifier

GUIDs as primary keys are awesome, GUIDs as clustered index keys are not so awesome. While the PK does default to be clustered, it doesn't necessarily have to be. If there is another column on the table that would make sense to be clustered, you might consider converting over to...

Micro Service cross service dependencies

architecture,microservices

You microservice design is poor. You are modeling (location and items) 1 class = 1 microservice and this is not a good idea. You shoul modeling microservices like Aggregate Roots in DDD; even with its own bounded context. So, in your case, you should model an Aggregate Root with location,...

How to measure redundancy in code bases?

architecture,software-engineering,software-design,redundancy,entropy

What you are looking for is clone detection which is an established research area and there are a number of tools available to detect clones in you code. The central metric used to quantify the amount of redundancy in the code is called clone coverage. It measures the percentage of...

Is there any tool to generate uml diagrams for Ruby on Rails [closed]

ruby-on-rails,architecture,uml

Try Google using gem rails uml... https://www.ruby-toolbox.com/categories/Rails_Class_Diagrams...

How to handle fail situation into a simple Java application?

java,java-ee,exception,architecture,exception-handling

In command line applications, the main() method is effectively the UI layer. It's a very bare-bones UI, but still, if you structure your app so that the main class is invoking a controller layer, and the controller layer is throwing an exception, you should catch that exception in the main()...

What visual studio project template should I use for a project consisting mainly of classes?

c#,.net,wcf,architecture

As CodeCaster commented, I was looking for Class Library

Architecture/Design with Interfaces (Refactoring help)

c#,architecture,rss,solid-principles

Use generics: public interface IDataService { Task<List<T>> GetDataAsync<T>(string url, IParser<T> parser); } public interface IParser<T> { List<T> ParseRawData(string rawData); } Then your implementation looks like this: public class DataService : IDataService { public async Task<List<T>> GetDataAsync<T>(string url, IParser<T> parser) { // Do work return parser.ParseRawData("blah"); } } public class ItemParser...

Data flow of MVC application architecture

c#,asp.net-mvc,architecture

Seems already quite good. Typically I have following layering: Presentation layer: contains MVC web site with models, controllers, views and view models. Services layer: contains services exposed to everything in presentation layer (in the form of WCF service or web API or even just a class library). Application layer: contains...

How to model data for in-memory processing

java,performance,design,architecture,data-modeling

It totally depends on what kind of data you are working with and what kind of searches you want to perform on it. For example, with hash based structures you can not support partial word searches. You could go for an in-memory relational db if your data is really relational...

WCF service architecture query

asp.net,architecture,wcfserviceclient

As long as you are able to use the exact same contract for all the versions the web application does not need to know which version of the WCF service it is accessing. In the configuration of the web application, you specify the URL and the contract. However, besides the...

Architecture for creating a JavaScript framework

javascript,architecture,frameworks

Just return a function from the framework module. return { isValidState: function() { ... } commonTask1: function () { ... }, commonTask2: function () { ... } } The isValidState function could then check the internal state. // isValidState function() { if (validState()) { return true; } return false; }...

Replacement for Excel/Tableau-centered Analytics Architecture

sql-server,excel-vba,architecture,analytics,tableau

Thank you all. We'll explore SSAS and PowerPivot.

Xcode 6 Error - “Missing Required Architecture i386” When Building for iOS Simulator

ios,architecture,frameworks,xcode6,i386

The issue was that the framework was not compiled for the iOS Simulator's architecture, which is i386. Xcode only compiles a framework for the target architecture, so if I built the framework for the iOS Simulator, it wouldn't work on a device, and if I built the framework for a...

C# - would memory mapped files help me handle large amount of data without considerable performance degrade

c#-4.0,architecture,memory-mapped-files

I suppose that data is sparse. Why don't you try to compress it and store in RAM before doing aggregation?

How to propose web application demo with data to user?

angularjs,node.js,mongodb,architecture

You could make a separate database for your demo environment, which gets reset every day. This demo environment might need a bit of extra code to auto authenticate users, or prevent the user from deleting the user account or whatever. You might start ending up with spam issues, but I...

How to integrate RequireJS module into AngularJS application?

javascript,angularjs,architecture,requirejs

Heres how you can use RequireJS modules and AngularJS modules system together. I have kept each AngularJS component in a separate require module so you can load it as and when you needed. because of require dependencies, RequireJS will make sure of loading all other angular modules needed in current...

How to handle MixedQuery with CQRS?

architecture,cqrs,event-sourcing

It seems you're basically talking about sacrificing Command-Query Separation, which is a prerequisite to CQRS and an all-time good development practice anyway. If I were to move to a CQRS approach, I'd start by conforming to CQS if anything, separating queries from commands just at a method level, before bringing...

What is the best way to deal with this Namespace JavaScript Structure?

javascript,architecture

You can use a pattern like this - var Application = (function() { var Module1 = { function1 : function() { console.log("function1"); Module2.function2(); } }; var Module2 = { function2 : function() { console.log("function2"); } }; var Module3 = { function3 : function() { console.log("function3"); } }; return { Module1:...

How to look at a .NET project architecture at a glance

c#,.net,architecture

One thing I know of is Visual Studio 2013 Ultimate edition has Architecture tab (I know 2010 and 2012 also have it, but never used in them), that can be used to generate dependency graph of all projects in a particular solution. That can be used to generate dependencies within...

Web services, architectural design advice for central logging

web-services,logging,architecture

When you say the central database will be a bottleneck, do you mean that it will be too slow to keep up with the logging requests? Or are you saying you are expecting database changes for each logging request type? I would define a more generic payload for logging (figure...

Scheduled, long running user queries

c#,wcf,encryption,service,architecture

My data can be huge, will a WCF rest service be good enough to transfer large files over the wire ? Can I transfer files over wire or I need to transfer data as JSON ? What is the best approach. When you say huge, how huge? Are we...

Symfony: Issuing request to another bundle in same app to get data

php,symfony2,architecture,soa

I think You should communicate between bundles using services (Dependency Injection). Symfony2 Service Container Docs If you register service in one bundle, and you named it "myDataLayerService", you can inject it into services of another bundle(Like any other services - request service, entity manager, router, etc.) or, you can get...

How to structure app in purescript

haskell,architecture,purescript

There's no reason you can't have a middle layer for abstracting over dependencies. Let's say you want to use a router for your application. You can define a "router abstraction" library that would look like the following: module App.Router where import SomeRouterLib -- Type synonym to make it easy to...

How to pass different parameters to different http request classes that implement the same interface

c#,oop,design,interface,architecture

Can you do the following: public class GetItemPriceRequest: IRequest { public string ItemNumber {set;get;} public string UserName {set;get;} } public GetItemHistoryRequest: IRequest { // my properties } and so forth for each request. And have a response class for each request. That way is more cleaner and organizing. Moreover, you...

Why do Examples of the Repository Pattern never deal with Database Connection Exceptions?

architecture,exception-handling,repository-pattern

I honestly think that it isn't addressed because of the ongoing (and emotional) debate about what to do with exceptions. There is a constant back and forth over whether exceptions should be handled locally (where there is a greater chance of understanding them and doing something intelligent, like retrying) or...

How to change architectures in static libraries?

ios,xcode,architecture,static-libraries,arm64

There isn't any way to convert the architecture of an existing library. You'll need to go back to the original source and recompile it with the new architecture added.

Difference between switch & bus architecture?

architecture,operating-system

Switch architecture and bus architecture are two aspects of computer networks. The main differences between the two are that in Bus architecture, the paths to different of the network are shared and the response time is usually slow especially when a large number of users are there because of single...

In MVC is the View allowed to see but not talk to the model?

architecture,design-patterns,model-view-controller

"Can the Views see Model Objects?" Yes, View can see "inside" the Model as long as you don't change anything through the View. "Is this still following MVC?" Definitely. In the MVC architecture, Model should be independent of Controller and View, and in case of the "passive" implementation (your...

Where does ASP.NET Web API fit in terms of solution architecture?

asp.net,asp.net-web-api,architecture

It is best to keep things simple, here is the structure I have on a large (1000's users) enterprise app: 2 ASP.net Projects, with 3 further class libs. 1st asp.net Project - Is a standard MVC application, however mostly this is just used as a container for all HTML/cshtml, javascript...

What does this mean? #if !(arch(x86_64) || arch(arm64))

swift,if-statement,architecture

#if condition // Code in here #endif This is a conditional compilation directive - it is used to hide blocks of code from the compiler. The code in the block is only compiled if the condition is true. It's supported in many languages, notably C and C++. It is often...

Accessing a signal in both structural and behavioural architecture

architecture,signals,vhdl,counter

Your question while showing a declaration in one architecture for counter doesn't show a declaration for signal inSignal (it's a signal because it shows up in the sensitivity list of a process). Nor do you show the component declaration for MODULE. my_enity is end entity; architecture structural of my_entity is...

How can I add a whole directory structure into a solution?

visual-studio-2013,architecture,solution,visual-studio-2015

From How do I add an existing directory tree to a project in Visual Studio? Add the folders to your folder directory Show all files Include the subdirectory in the solution ...

Correct way to write a resource to get states from a country in a RESTful API?

php,rest,url,architecture,restful-architecture

If your domain model only exposes states as resources and not countries, you could go with the first option. You would expose states as resources and filter them by their country. Also consider if this might ever change, i.e. might countries become resources at some point? If countries are considered...

Parameter validation vs property validation

validation,oop,architecture

This question can spread out into wider topic. First, let's see what Martin Fowler has said: One copy of data lies in the database itself. This copy is the lasting record of the data, so I call it the record state. A further copy lies inside in-memory Record Sets within...

Reference a property in another unrelated View Controller

ios,osx,cocoa,swift,architecture

You can create your own Singleton Class for that. Like AppNameDataManager then create properties and set them from the view controller where you have to set and get in view controller where you have to get. #define SINGLETON_FOR_CLASS(classname)\ + (id) sharedManager { static dispatch_once_t pred = 0;\ static id _sharedObject...

Managing hierarchical tasks with module/mediator/facade pattern

javascript,design-patterns,architecture

Are you sure you really need to use so much design patterns here? If you have just a series of nested isolated tasks, why not to structure them like matryoshka doll? You may have one abstract Task class, which allows itself to have children. There can be no children also....

What is a good practice to promote a microservice to a public API?

design,architecture,microservices

The API Gateway pattern is a good way to implement a public API in front of a set of microservices: http://microservices.io/patterns/apigateway.html

Java generic class that contains an instance of implementation of generic interface

java,generics,interface,architecture

It looks like what you want is : public class B<S,T extends A<S>> { private T t; public S getTsSomething(){ return t.f1(); } } ...

Subtypes of an interface only compatible with a subtype of another interface

oop,design-patterns,design,architecture,solid-principles

It appears you are using Java. If so you can use generics to restrict the type of the parameter in feed public interface Animal<T extends AnimalFood> { void feed(T food); } public class Dog implements Animal<DogFood> { public void feed(DogFood food){ // can only eat dog food } } public...

With the MESI protocol, a write hit also stalls the processor, right?

caching,architecture,multiprocessing,vhdl,mesi

Do not confuse latency with throughput. Invalidation messages will take multiple cycles to complete but you can pipeline the process. It is possible to built a pipelined cache, that is able to start the processing of new invalidation messages before the previous ones have been completed. The MESI protocol does...

Java: Programming stations and the time it takes to move from 1 station to the other (need idea's) [closed]

java,data-structures,architecture

Like this: int nStations = ...; int[][] travelTime = new int[nStations][nStations]; for (int i = 0; i < nStations; i++) { travelTime[i][i] = 0; //distance from the station to itself //is equal to zero, because you are already there } then you have to assign values like this travelTime[source][destination] =...

How does ETL (database to database) fit into SOA?

database,architecture,soa,etl,decoupling

All of these answers are good and helpful. As I now understand SOA is not about implementing application, but about Architecture ("A"), mainly Enterprise Architecture. Enterprise main management method is delegation of responsibility for Services ("S"). So if there are two different business functions in the enterprise structure with two...

os kern error : “ld: symbol(s) not found for architecture x86_64”

c++,architecture,compiler-errors,x86-64,clang++

Your compilation isn't including anything from ncrs.cpp, which is where both NCRS::Start() and NCRS::End() are defined. You probably want clang++ crspro.cpp ncrs.cpp -lncurses -o crspro Or if you want to build the object files separately and then link them: clang++ -c crspro.cpp -c clang++ -c ncrs.cpp -c clang++ crspro.o ncrs.o...

Large scale and full extensable web application architecture

web,architecture,software-engineering,onion-architecture

When you say "large", I'm assuming you are talking at least a million lines of code. Assuming that is correct, you should really look at a SOA architecture to separate your "modules". Depending on the language you are using, there are lots of nice RESTful architectures that are ideal for...

Equivalent to Interfaces in Embbeded C / Code organization

c,architecture,preprocessor,c-preprocessor

I modified my code so it get clearer, based on your answer. I have now only one BSP_gpio.h file where I have my definitions and all the prototypes: /*============================================================================*/ /* File : BSP_gpio.h */ /* Processor : EFM32GG980F1024 */ /*----------------------------------------------------------------------------*/ /* Description : gpio driver */ /*----------------------------------------------------------------------------*/ #ifndef BSP_GPIO_H #define...

What does BEAM stand for in iex for the Elixir programming language?

architecture,elixir,acronym,beam,lightweight-processes

It stands for "Bogdan/Björn's Erlang Abstract Machine" - it is just the name of the VM, much like JVM (Java Virtual Machine). Almost everyone uses "the new BEAM", where BEAM stands for Bogdan/Björn's Erlang Abstract Machine. This is the virtual machine supported in the commercial release. http://www.erlang.org/faq/implementations.html The name probably...

Best practices : Symfony comments

symfony2,interface,architecture

well a good implementation would be if Recipes and News extend an abstract class use Doctrine\ORM\Mapping\MappedSuperclass; /** * Abstract base class * * @MappedSuperclass */ abstract class EntityWithComments { /** * *@ORM(many-to-bla) */ private $comments; public function addComment(){...}; public function removeComment(){...}; public function getComments(){...}; ... and your classes extend it,...

NodeJS run code in X minutes architecture

node.js,mongodb,architecture,cron,queue

You would use setTimeout() for that and save the timer ID that it returns because you can then use that timer ID to cancel the timer. To schedule the timer: var timer = setTimeout(myFunc, 60 * 60 * 1000); Then, sometime later before the timer fires, you can cancel the...

simple model when requesting collection and extended model when requesting resource - how

rest,architecture,restful-architecture

I suggest using the approach suggested here with a fields query parameter. If the API is going to be open to everyone to use and client usage is going to be unpredictable, then by default you probably need to limit the fields that you return. Just make sure you document...

Android application backend

android,architecture,cloud,backend,pull

Yes, you will need a server. You can start building the server software on the same machine as your Android emulator and create them in parallel. You'll need to choose a language and most likely a web server framework that suits your thought process and style. If you want to...

Error getting Ninject and WebApi v1 (MVC4) to work

asp.net-mvc-4,asp.net-web-api,architecture,dependency-injection,ninject

The first part of your question is right, but your DmpeController depends on Logger and you're not registering that dependency. Please, update your RegisterServices to register that dependency, and it will work. I suppose NInject can handle concrete types registering and resolution. If that's not possible, extract the ILogger interface,...

What's the recommended way to load an object graph from Data Access Layer?

c#,architecture,domain-driven-design,data-access-layer,software-design

What the author (Dino Esposito) is missing in his book is the clear separation of concerns that CQRS brings. If I'm not mistaking, this pattern is completely missing from his book. In Esposito's latest MSDN article, he explains CQRS, so I think he just wasn't that experienced at the time...

Is this pseudo-derivative END function executable?

assembly,architecture

As instructed, I have assumed it works like an x86 instruction set and masm or a masm compatible assembler. Note it can't actually be an x86 instruction set as without more R1, R2 etc. are not registers. If you want to know exactly what it does, you'll need to tell...

Location of Shared Kernel in Onion Architecture

architecture,domain-driven-design,onion-architecture

Put your "Shared kernel" in Domain Layer. This kernel share your domain model between many bounded contexts, and there no need some translation mechanism between contexts

Client-Server architecture: 100% Android (Android as a server) or J2EE+Android?

android,java-ee,architecture,client-server,distributed-computing

Q: Which of the following solutions [ 1) 2) 3) ] is the best practice? A: price-wise / time-wise / performance-wise the 1) but scaleability-wise may get into issues once moving from 1:15 answers summary per day to some 1:1.000.000 or 1:10.000.000 range. ZeroMQ would be my option of a...

Batch script not running

windows,batch-file,architecture,batch-processing

The batch script appears to work fine. It will not echo if your machine is not Windows 7 though. Try the following: @echo off set os_ver="unknown!" set os_bits="unknown!" ver | findstr "5\.1" > nul if %ERRORLEVEL% EQU 0 ( set os_ver="xp" ) ver | findstr "6\.1" > nul if %ERRORLEVEL%...

How to do Constructor Dependency Injection in Netbeans Platform

java,netbeans,architecture,dependency-injection,netbeans-platform

I think I found a solution that solves part of the problem. Normally my TopComponents are getting accessed trough Window -> TopComponentNameHere action (Which is generated by the Annotations I use for the TopComponent?). The thought was that you can also initialize the TopComponent inside of Actions and show them...