Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
3 replies
64 views

I’m studying and implementing the Composite design pattern in C# for a university project. In most textbook examples (GoF, Refactoring.Guru, etc.) the class hierarchy looks like this: Component ├── ...
user31880897's user avatar
1 vote
0 answers
72 views

I am really confused. I have this postgis query : with f as ( SELECT ST_AsGeoJSON(p.geompos)::json As geometry, row_to_json((p.id_client, p.design_site, p.adresse)) As properties FROM ...
عبد القادر كعوان's user avatar
0 votes
1 answer
159 views

I have a LazyRow containing multiple Card items that the user can scroll through. I wanted this to be snapping to each of these items, so I added flingBehavior to the LazyRow. My question now is: How ...
dennisklad's user avatar
0 votes
0 answers
80 views

Here i given below my table schema Schema::create('yarn_work_order_items', function (Blueprint $table) { $table->id(); $table->foreignId('yarn_work_order_id')->constrained('...
Anis's user avatar
  • 161
0 votes
1 answer
78 views

I have 1:N relation where parent table LOCATIONS contains fields server_id and location_id and table DEVICES is related to the LOCATIONS throught fields server_id and location_id. How can I establish ...
Čamo's user avatar
  • 4,413
0 votes
0 answers
37 views

I have the following DB model (all fields are not nullable): File SourceTypes ----------- ----------- country PK country PK filename PK sourcetype PK sourcetype sourcename ...
David Caballero's user avatar
0 votes
1 answer
213 views

Just to give some background, we are refactoring our action for fetching secrets and we are trying to keep it compatible with our old action, so that we don't have to rewrite all of the workflows to ...
Erik B's user avatar
  • 43.1k
0 votes
1 answer
748 views

I hope to ask a question about composite report building. Context: I am building a composite report showing the number of leavers and active headcount by Country. So far, I have a matrix report as sub-...
Hoang To Duc's user avatar
0 votes
1 answer
52 views

I have created a composite template. for every document added in the composite template , there is same signing tab is added in the document eg- 3 documents then 3 tabs one over above. I want one tab ...
surabhi chaurasia's user avatar
2 votes
1 answer
174 views

I have WooCommerce 8.0.3 installed on my e-shop. In short, let's say I have an order with ID 123 in status processing. In a specific situation, I'm running this code: // Make sure e-mails are ...
Pavel Vybíral's user avatar
0 votes
0 answers
785 views

I have a job that calls a composite action as below: CHANGE_ORDER: needs: - SETVARS runs-on: 'windows-latest' steps: - name: Process CO Change Order uses: mmctech/...
Ashar's user avatar
  • 3,195
0 votes
1 answer
977 views

I would like to add a composite unique index like this on Town having Zip as a ValueObject and Country as a navigation property whose Id is not explicitly specified : x.HasIndex(t => new { t.Zip....
ThierryCattel's user avatar
0 votes
2 answers
83 views

I just started learning coding (mainly Java) for about 6 months at a University and now we just covered section of Composite design pattern (with Component, Leaf and Composite classes). My class ...
Tlmua's user avatar
  • 3
0 votes
1 answer
75 views

This is the new Composite class for a Multiply(Overlay) effect made by Kristopher Ives(Howto perform a MULTIPLY composite effect using Graphics2D). As far as I can tell he's been inactive for quite ...
TheRatKing's user avatar
1 vote
1 answer
424 views

I have a series of PNG images (ABC_a.png, ABC_b.png, XYZ_a.png, XYZ_b.png, BCA_a.png, BCA_b.png etc.) and would like to compose every image of the same code (i.e. the name of an image without _a or _b)...
sparani's user avatar
  • 31
0 votes
1 answer
504 views

I'm trying to build a File system such that contains the following classes: FileSystem, Directory, File. My code is: public class FileSystem { private List<Directory> ld; public ...
Xavi's user avatar
  • 125
0 votes
0 answers
89 views

I am trying really hard to make my code to print the files and the directories in the same way that the command 'tree' in unix print. What do I need to do so it will work? I'm stuck on it to much ...
May Sohatchevzzki's user avatar
0 votes
2 answers
535 views

so Im trying to get my code to print out a message that returns 'This is Bob Martin from USA'. This is what I did so far. I've been trying to figure out what went wrong but can't seem to get this to ...
Niko Nota's user avatar
0 votes
0 answers
118 views

original file Watermark img After apply watermark Code for PSD to PNG conversion: /usr/local/bin/convert /tmp/1657736296-sample1.psd /tmp/sample1.png Code for watermark apply on converted PNG file ...
Rams's user avatar
  • 59
2 votes
1 answer
98 views

I have this design which I self-proclaim to be Composite Pattern, though I'm not entirely sure about that. So I'm aksing for your statement on this. This is the interface which collectively describes ...
Ngọc Hy's user avatar
  • 300
0 votes
1 answer
1k views

I'm trying to create in image generator where I can create all permutations of an image given different elements on 3 layers. I have managed to get the three folders into arrays and am trying to use ...
James Stephen Brown's user avatar
0 votes
1 answer
113 views

Given two sets of integers P and C of the same length. How can I find ALL matching sums of consecutive elements at the same starting and ending positions in the two sets, including overlapping subsets?...
Ali Adams's user avatar
2 votes
1 answer
148 views

I have a class Vehicles with three list fields, namely: turboVehicles : List<ITurboVehicle>, trailerVehicle : List<ITrailerVehicle>, vehicles : List<IVehicle>, (containing all ...
hi there's user avatar
0 votes
1 answer
280 views

First to clarify the title, I know there is no such thing as interface literals in Go but I couldn't come up with another name for this issue. I was reading some Go code and found a weird construct, ...
fresanov's user avatar
0 votes
0 answers
103 views

Does the composite design template adhere to the principles of solid? if all the compositing method are declared at the component its violation of the Interface Segregation Principle. if compositing ...
Itay Shwartz's user avatar

1
2 3 4 5
20