Categories
Mastering Development Software

React routing in next

I am using next.js for the first time. I have previously used ejs I spa generated through create-react-app the browser needs to download/load bundle file once and then we can use something like router to navigate to different pages without requiring to download bundle over and over agin. In case of server side rendering (at-least […]

Categories
Mastering Development Software

boat and boat register program in C++

Create the following two classes. 1. Boat – this class contains: i. a private instance variable name of type String which is initialised to “unknown” ii. a private instance variable, boatClass, of type String initialised to “unknown” iii. a private instance variable, regNum, of type int initialised to -1 iv. a method called toString that […]

Categories
Mastering Development Software

Is it typical for there to be no real design prior to someone being assigned a task?

I’m a junior engineer, but I’ve worked at two companies now. In both cases I’ve found that my colleagues and I are assigned tasks with no thought put into the design before being told to do it. Typically I spend about 90% of my time writing down on paper how I’m going to do the […]

Categories
Mastering Development Software

Warning: include_once(): Failed opening ‘.\config\config.php’ for inclusion (include_path=’.:/opt/alt/php73/usr/share/pear’)

hello i am having difficulty intergrating my website to the server, i used XAMPP during development and when adding my files to the server and running i get the error attached : see first image i’d like to access the php.ini file and allow the connection to pear, i think it has to do with […]

Categories
Mastering Development Software

How to handle manual corrections to data in ETL pipeline

We receive product data from vendors on a regular basis to be incorporated into our catalog. The data looks like this: [ { id: 123, collection: Spring, name: New Beginnings, size: 8, price: 29.99, … }, … { id: 456, collection: SUMER, name: The Escape, size: 6, price: 49.99, … } ] There will often […]

Categories
Mastering Development Software

Flat or nested classes

Im new to object design and Im trying to figure out which design is better. I have a Material entity which can have multiple versions. I have two designs, one is with nested classes, and the other is flat, more like a database table. Nested example (pseudo code): class Material name path = “some/path/” + […]

Categories
Mastering Development Software

Parameters optimization role in industry or academia?

I have a question about the role/advantages of parameters optimization in various domains? For example, if we have to work on ML algorithms, so if we optimize the parameters of these ML algorithms via some optimization algorithms. I want to ask who will be the most beneficiary of these optimized settings? Researchers in industries or […]

Categories
Mastering Development Software

Seeking a Pattern

First off, I totally understand that an interface cannot contain a static method because what would the method act on – that is clear. Suppose I want an interface to mandate a method that is particular to a class but acts statically (and as an interface method may be shared by many classes.) To propose […]

Categories
Mastering Development Software

Apple Pie Language [closed]

Looking at https://esolangs.org/wiki/Apple_Pie and was wondering if anyone knew of a compiler for it? Thanks

Categories
Mastering Development Software

Is it a good idea to violate the DRY rule for keeping the action in proper context?

Maybe that’s simple, but it confuses me. I have such a code now: describe VarnishLogExaminer::Entry do let(:entry) do file_string = File.read(‘./spec/assets/varnish_example.xml’) first_entry_string = file_string.split(“\n”).first described_class.new(first_entry_string) end describe ‘initialize’ do context ‘when a proper Varnish log line is given’ do it ‘saves remote host properly’ do expect(entry.remote_host_ip).to eql ‘85.164.152.30’ end # … end end describe ‘to_h’ […]