Urgent.News

What's breaking now, across hundreds of outlets.

Tech

A browser CAD or floor-plan tool still ships its geometry kernel and snapping rules

Browser-based CAD and floor-plan editors have become seriously good. You can draw walls, drop in doors, get automatic room areas, and export a dimensioned plan without installing anything. Behind that smooth experience is usually years of work on a geometry kernel: polygon offsetting, wall-join resolution, snapping heuristics, area rules, and the little tolerances that make a drawing "feel…

Web-based CAD and floor-plan applications have evolved significantly. Despite the smooth interface, a critical component remains a geometry kernel. This kernel handles tasks such as polygon offsetting, wall joins, snapping rules and area calculations. All these functions run in the browser, meaning every user downloads and executes them.

The network tab reveals large bundles containing various elements within a floor-plan editor. These include wall-join logic, snapping rules, area and perimeter calculations, opening placement constraints and export pipelines. While not secret, they form the core of a product that users are willing to pay for.

Web-based floor-plan tools often copy the core kernel by analyzing the bundle shipped with the application. They search for specific constants, strings or functions. By copying these elements, they can create a similar kernel with minimal effort.

Protecting the kernel is crucial yet challenging. Developers can move heavy computations to the server, like exporting and compliance reports. The kernel should be bundled separately and protected with stronger obfuscation techniques. This makes it harder for others to replicate it. Distinctive markers can also be added to recognize copied versions.

However, obfuscation alone is not enough to guarantee protection. The geometry kernel should remain a server-side feature, while the client serves as a convenience layer. The client should never enforce business rules. Instead, these should be handled by the API. This approach limits reverse engineering and maintains the proprietary nature of the core kernel.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

6 Common Data Import Errors in GBase Database and How to Troubleshoot Them

The same data file imports successfully in test but fails in production. This is a common database migration and data import problem.

  • Delimiter mismatch causes column count errors
  • Date format inconsistencies lead to incorrect date interpretation
  • Character encoding mismatches result in garbled non-ASCII characters

A delivery web app still ships its route-optimizer heuristic to every driver

Delivery and field-service web apps love to show an optimized stop list the moment a driver opens the shift. That snappy UX usually means the scoring heuristic — distance, time windows, vehicle…

  • Heuristic runs in driver's browser, accessible to everyone
  • Numbers in functions tied to enterprise clients' SLAs
  • Critical components must be computed on server side

Text vs Binary Export in GBase Database: A Reproducible Performance Comparison

Which database export method is faster: text or binary? There are plenty of performance comparisons online, but their results rarely apply directly to your environment.

  • Text export provides visibility and flexibility for selective review
  • Binary export is faster but less transparent and has compatibility constraints
  • Verification effort and artifact size differ between text and binary methods

More from Tuesday 24 November →