Questions tagged [viper]

Please consider using the tags [viper-architecture], [viper-go], [viper-mode], or [viper-lang] instead of catch-all [viper]. (1) [viper-architecture] VIPER is an architectural application design pattern: {View, Interactor, Presenter, Entity, Router}. (2) [viper-mode] Viper is a Vi emulation package for Emacs. (3) [viper-go] is a configuration library for Golang. (4) [viper-lang] is for formal, separation-logic-based verifiers of programming languages.

Please consider using , , , or instead of this catch-all tag.

  1. VIPER is an application architecture, which stands for View, Interactor, Presenter, Entity, and Router. VIPER is intended to divide app’s logical structure into distinct layers of responsibility. It attempts to observe SOLID design patterns in the best way so as to keep code easily maintainable clean, reusable and testable.
  2. Viper (mode) is also a Vi emulation package for Emacs.
  3. Viper is also a configuration library for Golang at https://github.com/spf13/viper
  4. Viper is an open-source verification infrastructure, designed to simplify the development of formal, separation-logic-based verifiers for different programming languages.
35 questions
23
votes
6 answers

iOS using VIPER with UITableView

I have a view controller which contains a table view, so I want to ask where should I put table view data source and delegate, should it be an external object or I can write it in my view controller if we say about VIPER pattern. Normally using…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
9
votes
2 answers

Viper mode in all modes

I'm moving from vi to emacs and, using viper and vimpulse, it gets pretty annoying when I C-w C-w to a window and cannot get back to the original one with the same command because the other buffer, which could be a help buffer, is not in the Viper…
konr
  • 1,173
  • 12
  • 26
6
votes
9 answers

Dynamic Memory Allocation Failure Recovery

I'm working on an embedded processor (400 MHz Intel PXA255 XScale), and I thought I saw one case where there wasn't enough memory to satisfy a 'new' operation. The program didn't crash, so I assumed other threads had freed their memory and it was…
Nate Parsons
  • 14,431
  • 13
  • 51
  • 67
5
votes
4 answers

Disable ESC as meta in Emacs viper mode?

I'm a long-time vim user trying to make the switch to emacs. I'm using viper-mode in emacs and I keep typing ESC (to get out of insert mode) and then a key (say, j). I type fast and often hit them at the same time. Emacs then thinks I'm hitting…
Nate Murray
  • 3,841
  • 5
  • 32
  • 33
5
votes
2 answers

How can I remap the prefix keys 'c', 'd' etc. in Emacs viper-mode

I'm using the Colemak keyboard layout, and want to try the Vim layout from here with Vimpulse. However, the layout remaps the command prefix Vim keys 'c' and 'd' among others, and these keys don't seem to be easily remappable with the standard Viper…
rsaarelm
  • 91
  • 6
3
votes
1 answer

Hyperledger Facric CA: Override Certificate Signing Request (CSR) section by ENV

I want to overrride this section of the fabric-ca-server-config.yaml file by variables env: csr: cn: fabric-ca-server names: - C: US ST: "North Carolina" L: O: Hyperledger OU: Fabric hosts: - host1.example.com …
mplescano
  • 43
  • 1
  • 6
3
votes
2 answers

Emacs define-key, Viper-mode key binding

I'm trying to learn emacs, getting vi custom key bindings. Using Viper-mode, what is the correct way to re-bind a key? (I'm using Colemak keyboard layout(instead of qwerty) so have to change things like n->j) But would like it to work in…
Quang Van
  • 11,475
  • 12
  • 57
  • 61
2
votes
1 answer

How to get a configuration array of objects using viper in golang?

I have a config file that looks like: { "auth": { "client_id": "foo", "client_secret": "bar", "account": "foo@bar.com", "secrets_type": "auto" }, "jobs": [ { "source_folder": "folder1", …
Paco Orozco
  • 669
  • 1
  • 6
  • 17
2
votes
0 answers

VIPER: some of genes in the pathway gene list are missing in the result

I have a problem when I use VIPER with aracne networks. I used regulonbrca in aracne to calculate protein activity, The number of genes in regulonbrca is 6054. And the number of genes in regulonbrca also in my TPM file is 5918. But I got only 4506…
JS P
  • 23
  • 3
2
votes
0 answers

Error reading viper config when docker multistage

When I use multi stage in Docker, it cannot find the container config file, but when I use only the first stage, the container works fine. I need this as I'm going to reduce the size for the deployment phase, but I couldn't find a solution. I have…
Mert Özler
  • 113
  • 5
2
votes
1 answer

UINotificationFeedbackGenerator in VIPER?

This is a kind of question regarding best practice. I am using VIPER architecture in my iOS project. I use haptic feedback for some use cases. Where would be the best place to invoke UINotificationFeedbackGenerator in VIPER? I believe it is View.
iOS
  • 3,526
  • 3
  • 37
  • 82
2
votes
2 answers

What is the most possible design pattern for this Xcode project folder hierarchy?

Here is the project folder hierarchy. I would like to know what design pattern is used in this case. So far I have found out is that it is most likely to be Clean-Swift Architecture (VIP). Below is the folder hierarchy of a sample Clean-Swift…
2
votes
2 answers

viper-next-line, viper-previous-line has trouble with visual-line-mode?

Anyone else have any trouble with j and k in viper-mode when visual-line-mode is enabled? It skips many lines... is there any harm in re-binding them to next-line and previous-line, which recognizes visual "line breaks" in Emacs > version 23?
hatmatrix
  • 42,883
  • 45
  • 137
  • 231
1
vote
0 answers

Do I have to initialize viper in every package?

I am using viper for reading config files in my go module. Tree structure; . ├── README.md ├── package1 │   └── package1.go ├── config.json ├── helper │   └── helper.go └── main.go I initialized Viper in my main.go …
Nagri
  • 3,008
  • 5
  • 34
  • 63
1
vote
0 answers

Subscript out of bounds error for run_viper with dorothea regulons in R

I've got an error message when trying to do a upstream TF analysis using DoRothEA and Viper. Any suggestion would be helpful, thanks. data(dorothea_mm, package = "dorothea") regulons <- dorothea_mm %>% dplyr::filter(confidence %in% c("A", "B",…
JeanneJ
  • 11
  • 1
1
2 3