html – Visual Design Feedback on shopping cart experience

I am re-designing a shopping page experience, which is currently based on an OpenCart theme. I am seeking visual design feedback on the designs.

Some visual design changes in the redesign:

  • “Instead of a coupon” has a capital “I”. What is more appropriate – a lowercase or an uppercase?
  • An all uppercase item description – bold and fully justified. Ignore the actual words in the text, and focus only on the look and feel of the changes.

Current Design:

Current page

Proposed Design:

Proposed page

Custom offer as per client requesy for $300

Custom offer as per client requesy

Custom Offer for clients as per requirements

GUARANTIED DOMAIN AUTHORITY BOOSTS UP TO 60+

You must be looking MOZ DA increment on your site, I am here to fulfill your requirements in a secure way.

Custom Offer For my Client.

This is a personal and custom work that not refers to any service.

It`s a Special service and work.

.

versioning – Domain driven design model version

sorry for the long question, but I love DDD but there is a problem I can’t seem to resolve.

We have a problem when adding business rules to the aggregate root.

Our architecture is mostly like this when we make a query from the front-end :

For a simple example, we have a Book we want

  1. to persist
  2. fetch it.

The book has

Name which has to be 10 characters
and an Author which needs 15 characters.

Here the pseudo code in TypeScript:

class BookAggregateRoot {
   private _name: string;
   private _author: string;
   private constructor(name: string, author: string) {
       this._name= name;
       this._author= author;
   }

   static create(name: string, author: string): BookAggregateRoot {
       if(name.length < 10) {
           throw error; // not really throwing, its just to show we have an error
       }
       if(author.length < 15) {
           throw error; // not really throwing, its just to show we have an error
       }
       // all data is valid, create the Book
       return BookAggregateRoot(name, author);
   }
}

1st Scenario : save the book

Client -> DTO -> controllers -> useCases(1. calls create from Book
class) -> calls repositories(persist the data) -> database -> data is
returned, repositories(2. calls create from Book class) ->
useCases -> mapperToDTO-> controller -> client.

2nd Scenario : fetch the saved book

Fetching data is in the same way but only, dont need to persist, only
fetch the data : Client -> DTO -> controllers -> useCases(builds the
query) -> calls repositories(query) -> database -> repositories(3.
calls create from Book class) -> useCases -> mapperToDTO-> controller
-> client.

As long as the business rules don’t change, it’s fine as the data stored and the data fetched has the same business rules.

The problem lies in the creating of the AggregateRoot. Let’s say now my Book needs a publishedDate, all data that previously doesn’t satisfy the data fetched from the database and will fail at step 3.

The class now becomes :

class BookAggregateRoot {
   private _name: string;
   private _author: string;
   private _publishedDate: Date;
   private constructor(name: string, author: string, publishedDate: Date) {
       this._name= name;
       this._author= author;
       this._publishedDate = publishedDate;
   }

   static create(name: string, author: string, publishedDate: Date): BookAggregateRoot {
       if(name.length < 10) {
           throw error; // not really throwing, its just to show we have an error
       }
       if(author.length < 15) {
           throw error; // not really throwing, its just to show we have an error
       }
       if(publishedDate.invalid) {
           throw error; // not really throwing, its just to show we have an error
       }
       // all data is valid, create the Book
       return BookAggregateRoot(name, author, publishedDate);
   }
}

the data will always fail at step 3. above as the create requires a date.

We could create a migration to fix all the data… but is that the right approach?

thanx in advance and let me know if there is anything to better the design. 🙂

architecture – Design Patterns for an Interaction Heavy App

For an app like Figma, for example, how do engineers deal with the various states a user can be in?

A user can select an element. This element is now surrounded by a thin blue line to indicate it was selected.
The user can then hover over another element. The thin blue line on the original element remains but the element that currently has the mouse’s focus is highlighted in purple. On right-click, a context menu will show different options depending on what the user is currently hovering over.

Of course you can use state machines to model these sort of interactions but that also begs the question of when do certain actions occur:

  • If I click an element, does it notify a global state machine of this click (GlobalSM.send('click', { type: 'UI-Rect', id: 'xxx' })) and then that state machine handles notifying other state machines (in this example, notifying the Selected state machine and ContextMenu state machine), or do components get access to the state machines themselves?
  • Where should the data layer come into play? Should the state machines be the only ones with access to any mutations (create, update, or delete)?

I’m not even sure if I’m asking the right questions honestly. I’ve tried creating a few interaction-heavy apps and keep coming to a sticking point where I am unsure how to deal with the complexity of state. Extending existing features takes a very long time due to poor architecture choices.

I will design a responsive wordpress web site up to 3 up to 10 pages and customization for $120

I will design a responsive wordpress web site up to 3 up to 10 pages and customization

DemoI will design a responsive site with a revolution slider.

if you need ‍any business, blog, WooCommerce one-page landing page website then you have come to the right gig.

I have been working with Word-Press for almost three years And with that, I have created many more standard and easy-to-use sites. I would like to work hard and satisfy my valuable clients and 100% support 7/24 hours.


word-press is flexible, highly customizable, and super user-friendly. I am a word-press developer and designer.

Here are some details of the services I provide:-

  • Fully functional website
  • Content upload
  • Add slider
  • Responsive design
  • Color branding
  • Social media integration, newsletter subscription, and mailchip integration
  • Fast loading pages
  • Fully secure website
  • Social share buttons
  • Easily editable admin panel
  • Theme and required plugins installation
  • E-commerce ready
  • SEO friendly structure

Why should you hire me?

  • 3 years experience
  • 30 days free support
  • Revision until 100% satisfaction
  • Money-back guarantee

I will create a Row coding project using: Html, CSS, jquery plugin, bootstrap site link: https://rezaulkarim1.github.io/BAU-RAKIB/
[NOTE:-

Don’t forget to contact me before purchasing any service as I need to know what kind of site you want and what you like. No problem if you don’t know I will help you.]

.

machine learning – Is it bad design to pass around a dictionary of arguments to all your functions?

In my machine learning pipeline, I have all the arguments collected into a dictionary.

args = {'save_model': True,
'learning_rate': 0.01,
'batch_size': 4,
'model': 'my_model',
'momentum': 0.9,
'random_brighness': 0.5,
'random_flipping': 0.5,
...}

Then I have a bunch of functions that take the entire args dictionary as an input. Each of these only uses a small subset of all the arguments. Is there anything wrong with this design?

model = get_model(args)
data = get_data(args)
transformed_data = transform_data(data, args)

from the perspective of the function, it looks like:

def get_trainer(args):
loss_function = args('loss_function')
optimizer = args('optimizer')
class_weights = args('class_weights')
...

versus:

def get_trainer(loss_function, optimizer, class_weights)
...

database design – Why if a transaction unlock a data item immediately after its final access of that data item, then serializability may not be ensured

The quote below is from Silberschatz’s Database System Concepts. It says if a transaction unlock a data item immediately after its final access of that data item, serializability may not be
ensured. Can you please explain why serializability may not be ensured?

Transaction Ti may unlock a data item that it had locked at some earlier point.
Note that a transaction must hold a lock on a data item as long as it accesses that
item. Moreover, it is not necessarily desirable for a transaction to unlock a data item
immediately after its final access of that data item, since serializability may not be
ensured.

I will design social media post Facebook post Instagram post ads for $5

I will design social media post Facebook post Instagram post ads

Hello,

Do you want to grow your business, brand or services on social media network? yes, you have found the right gig!

My goal is to help your business reach out to more people by using social media Facebook, Instagram banner/post/cover design.

Since I have been working with many niche’s like:-

Music

Corporate

Travel

Gym

Restaurant

Fashion

Product offer

Season sale

Education agency

Digital marketing

Real estate

Business solution etc.

It’s a regular task for me to research designs and spy others.

So I understand, what kind of design will make an impression.

You’ll get:-

1-Lowest price but good quality

2-Unique, eye-catching, professional design

3-Unlimited revisions

4-Life time support

5-Fast deliveries(within 1 Day)

6-Editable PSD File with JPG/PNG

MY SERVICES:-

➤ Facebook banner

➤ Banner ads

➤ Facebook cover

➤ Instagram post

➤ Instagram ads

➤ Twitter ads

➤ LinkedIn post

➤ Event banner

➤ Social media design

➤ Web banner

.(tagsToTranslate)poster(t)flyer(t)design(t)FacebookPost(t)InstagramPost(t)RestaurantPost

html – Please critique proposed page design change

Here’s the current product page, which is based on an OpenCart theme that was purchased.

Current page

And here’s the page design that’s being proposed. Ignore the actual words in the text, and focus only on the look and feel of the changes. Also imagine that the fully justified 3 blocks of bold text are aligned left and right (I had trouble doing this in my image editing software).

Proposed page

Please let me know your criticisms of either the current design, or the new design changes. I’m really just looking for impressions, such as whether the current or the new one look more professional, or if something sticks out like a sore thumb.

Also, note that in the new design, “Instead of a coupon” has a capital “I”. It is important for me to know whether you think a lower case or upper case initial “I” is most appropriate.

database design – Thoughts on adding a DB collection with a single record for version

I’m building an application with Google Firebase and Firestore that has it’s structure defined in the DB.
This structure is not very big and doesn’t change all that often. This structure is stored in different collections based on hierarchy going something like domain > chapter > unit, where each item has a list of child Ids defined.

To prevent making a ton of DB calls for a structure that doesn’t change all that often I was thinking to keep every entity retrieved from the DB in the browsers localStorage as well as a version for the current application structure. On start it would compare the local version with the DB version and if they don’t match, discard the local version.

I’m thinking to make a collection called ‘system’ or something like that with (for now) a single record called something like ‘composition version’. Each time the structure changes, a cloud function should update this record.

So my question is: does this make sense or are there better ways of doing this in Firebase?